You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RTL/frontend/main.b053c5601412ebb8.js

1 line
2.8 MiB

(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{429:(ke,J,p)=>{"use strict";p.d(J,{$A:()=>me,$W:()=>ce,BL:()=>W,CN:()=>h,CX:()=>I,EG:()=>w,EK:()=>S,El:()=>ne,HI:()=>r,HJ:()=>T,I8:()=>N,JK:()=>Le,Lu:()=>G,Ly:()=>he,Ni:()=>f,Nr:()=>ve,OG:()=>P,QJ:()=>De,RX:()=>L,Rd:()=>Ie,SN:()=>E,Sf:()=>U,TM:()=>l,UH:()=>de,UR:()=>k,VD:()=>Y,WM:()=>ue,WO:()=>y,Wi:()=>Ee,X3:()=>ee,YP:()=>$,YX:()=>_,Z8:()=>ae,ZH:()=>X,Zu:()=>Ce,_9:()=>jt,_E:()=>re,aL:()=>Ge,as:()=>b,cQ:()=>i,d7:()=>Wt,dh:()=>Se,e9:()=>Rt,eF:()=>R,eM:()=>we,en:()=>hi,g3:()=>K,g6:()=>ut,i9:()=>Ye,kL:()=>D,n7:()=>nt,oV:()=>u,oo:()=>a,pW:()=>n,pd:()=>d,u0:()=>Oe,uT:()=>gt,v_:()=>Pe,wD:()=>M,xH:()=>C,xS:()=>Q,yl:()=>j,z:()=>pe});var t=p(9653),e=p(7731);const f=(0,t.PH)(e.AB.UPDATE_API_CALL_STATUS_CLN,(0,t.Ky)()),C=(0,t.PH)(e.AB.RESET_CLN_STORE,(0,t.Ky)()),a=(0,t.PH)(e.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,t.Ky)()),M=(0,t.PH)(e.AB.FETCH_PAGE_SETTINGS_CLN),d=(0,t.PH)(e.AB.SET_PAGE_SETTINGS_CLN,(0,t.Ky)()),R=(0,t.PH)(e.AB.SAVE_PAGE_SETTINGS_CLN,(0,t.Ky)()),h=(0,t.PH)(e.AB.FETCH_INFO_CLN,(0,t.Ky)()),I=(0,t.PH)(e.AB.SET_INFO_CLN,(0,t.Ky)()),E=(0,t.PH)(e.AB.FETCH_FEES_CLN),L=(0,t.PH)(e.AB.SET_FEES_CLN,(0,t.Ky)()),T=(0,t.PH)(e.AB.FETCH_FEE_RATES_CLN,(0,t.Ky)()),N=(0,t.PH)(e.AB.SET_FEE_RATES_CLN,(0,t.Ky)()),w=(0,t.PH)(e.AB.FETCH_BALANCE_CLN),G=(0,t.PH)(e.AB.SET_BALANCE_CLN,(0,t.Ky)()),K=(0,t.PH)(e.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),Q=(0,t.PH)(e.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,t.Ky)()),re=(0,t.PH)(e.AB.GET_NEW_ADDRESS_CLN,(0,t.Ky)()),ce=((0,t.PH)(e.AB.SET_NEW_ADDRESS_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_PEERS_CLN)),ae=(0,t.PH)(e.AB.SET_PEERS_CLN,(0,t.Ky)()),ne=(0,t.PH)(e.AB.SAVE_NEW_PEER_CLN,(0,t.Ky)()),ee=((0,t.PH)(e.AB.NEWLY_ADDED_PEER_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.ADD_PEER_CLN,(0,t.Ky)())),pe=(0,t.PH)(e.AB.DETACH_PEER_CLN,(0,t.Ky)()),S=(0,t.PH)(e.AB.REMOVE_PEER_CLN,(0,t.Ky)()),i=(0,t.PH)(e.AB.FETCH_PAYMENTS_CLN),r=(0,t.PH)(e.AB.SET_PAYMENTS_CLN,(0,t.Ky)()),u=(0,t.PH)(e.AB.SEND_PAYMENT_CLN,(0,t.Ky)()),l=(0,t.PH)(e.AB.SEND_PAYMENT_STATUS_CLN,(0,t.Ky)()),y=(0,t.PH)(e.AB.GET_QUERY_ROUTES_CLN,(0,t.Ky)()),D=(0,t.PH)(e.AB.SET_QUERY_ROUTES_CLN,(0,t.Ky)()),k=(0,t.PH)(e.AB.FETCH_CHANNELS_CLN),b=(0,t.PH)(e.AB.SET_CHANNELS_CLN,(0,t.Ky)()),n=(0,t.PH)(e.AB.UPDATE_CHANNEL_CLN,(0,t.Ky)()),_=(0,t.PH)(e.AB.SAVE_NEW_CHANNEL_CLN,(0,t.Ky)()),W=(0,t.PH)(e.AB.CLOSE_CHANNEL_CLN,(0,t.Ky)()),P=(0,t.PH)(e.AB.REMOVE_CHANNEL_CLN,(0,t.Ky)()),U=(0,t.PH)(e.AB.PEER_LOOKUP_CLN,(0,t.Ky)()),me=(0,t.PH)(e.AB.CHANNEL_LOOKUP_CLN,(0,t.Ky)()),nt=(0,t.PH)(e.AB.INVOICE_LOOKUP_CLN,(0,t.Ky)()),Pe=(0,t.PH)(e.AB.SET_LOOKUP_CLN,(0,t.Ky)()),Oe=(0,t.PH)(e.AB.GET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),De=(0,t.PH)(e.AB.SET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),ue=(0,t.PH)(e.AB.FETCH_INVOICES_CLN,(0,t.Ky)()),ve=(0,t.PH)(e.AB.SET_INVOICES_CLN,(0,t.Ky)()),Ie=(0,t.PH)(e.AB.SAVE_NEW_INVOICE_CLN,(0,t.Ky)()),$=(0,t.PH)(e.AB.ADD_INVOICE_CLN,(0,t.Ky)()),Ge=(0,t.PH)(e.AB.UPDATE_INVOICE_CLN,(0,t.Ky)()),ut=(0,t.PH)(e.AB.DELETE_EXPIRED_INVOICE_CLN,(0,t.Ky)()),Ee=(0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_CLN,(0,t.Ky)()),he=((0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_UTXOS_CLN)),de=(0,t.PH)(e.AB.SET_UTXOS_CLN,(0,t.Ky)()),we=(0,t.PH)(e.AB.FETCH_OFFER_INVOICE_CLN,(0,t.Ky)()),Y=(0,t.PH)(e.AB.SET_OFFER_INVOICE_CLN,(0,t.Ky)()),j=(0,t.PH)(e.AB.FETCH_OFFERS_CLN),Ce=(0,t.PH)(e.AB.SET_OFFERS_CLN,(0,t.Ky)()),Se=(0,t.PH)(e.AB.SAVE_NEW_OFFER_CLN,(0,t.Ky)()),X=(0,t.PH)(e.AB.ADD_OFFER_CLN,(0,t.Ky)()),Ye=(0,t.PH)(e.AB.DISABLE_OFFER_CLN,(0,t.Ky)()),Le=(0,t.PH)(e.AB.UPDATE_OFFER_CLN,(0,t.Ky)()),gt=(0,t.PH)(e.AB.FETCH_OFFER_BOOKMARKS_CLN),Wt=(0,t.PH)(e.AB.SET_OFFER_BOOKMARKS_CLN,(0,t.Ky)()),Rt=(0,t.PH)(e.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),jt=(0,t.PH)(e.AB.DELETE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),hi=(0,t.PH)(e.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,t.Ky)())},4947:(ke,J,p)=>{"use strict";p.d(J,{J:()=>ee});var t=p(493),e=p(7579),f=p(9646),C=p(5577),a=p(2722),M=p(4004),d=p(262),R=p(2340),h=p(1786),I=p(5566),E=p(7731),L=p(7861),T=p(429),N=p(9828),w=p(1462),G=p(4650),K=p(529),Q=p(9653),re=p(5986),ie=p(62),ce=p(5043),ae=p(9116),ne=p(7998),le=p(6895);let ee=(()=>{class pe{constructor(i,r,u,l,y,D,k,b,n){this.actions=i,this.httpClient=r,this.store=u,this.sessionService=l,this.commonService=y,this.logger=D,this.router=k,this.wsService=b,this.location=n,this.CHILD_API_URL=R.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.FETCH_INFO_CLN),(0,C.z)(_=>(this.flgInitialized=!1,this.store.dispatch((0,L.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,T.Ni)({payload:{action:"FetchInfo",status:E.Bn.INITIATED}})),this.store.dispatch((0,L.ac)({payload:E.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+R.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(E.pg.SET_SELECTED_NODE))),(0,M.U)(W=>(this.logger.info(W),W.chains&&W.chains.length&&W.chains[0]&&"object"==typeof W.chains[0]&&W.chains[0].hasOwnProperty("chain")&&W?.chains[0].chain&&W?.chains[0].chain.toLowerCase().indexOf("bitcoin")<0&&W?.chains[0].chain.toLowerCase().indexOf("liquid")<0?(this.store.dispatch((0,T.Ni)({payload:{action:"FetchInfo",status:E.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:E.m6.GET_NODE_INFO})),this.store.dispatch((0,L.ts)()),setTimeout(()=>{this.store.dispatch((0,L.qR)({payload:{data:{type:E.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:E.pg.LOGOUT}):(this.initializeRemainingData(W,_.payload.loadPage),this.store.dispatch((0,T.Ni)({payload:{action:"FetchInfo",status:E.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:E.m6.GET_NODE_INFO})),{type:E.AB.SET_INFO_CLN,payload:W||{}}))),(0,d.K)(W=>{const P=this.commonService.extractErrorCode(W),U="ETIMEDOUT"===P?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(W);return this.router.navigate(["/error"],{state:{errorCode:P,errorMessage:U}}),this.handleErrorWithoutAlert("FetchInfo",E.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:P,error:U}),(0,f.of)({type:E.pg.VOID})})))))),this.fetchFeesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.FETCH_FEES_CLN),(0,C.z)(()=>(this.store.dispatch((0,T.Ni)({payload:{action:"FetchFees",status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API))),(0,M.U)(_=>(this.logger.info(_),this.store.dispatch((0,T.Ni)({payload:{action:"FetchFees",status:E.Bn.COMPLETED}})),{type:E.AB.SET_FEES_CLN,payload:_||{}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchFees",E.m6.NO_SPINNER,"Fetching Fees Failed.",_),(0,f.of)({type:E.pg.VOID}))))),this.fetchFeeRatesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.FETCH_FEE_RATES_CLN),(0,C.z)(_=>(this.store.dispatch((0,T.Ni)({payload:{action:"FetchFeeRates"+_.payload,status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/feeRates/"+_.payload).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"FetchFeeRates"+_.payload,status:E.Bn.COMPLETED}})),{type:E.AB.SET_FEE_RATES_CLN,payload:W||{}})),(0,d.K)(W=>(this.handleErrorWithoutAlert("FetchFeeRates"+_.payload,E.m6.NO_SPINNER,"Fetching Fee Rates Failed.",W),(0,f.of)({type:E.pg.VOID})))))))),this.fetchBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.FETCH_BALANCE_CLN),(0,C.z)(()=>(this.store.dispatch((0,T.Ni)({payload:{action:"FetchBalance",status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.BALANCE_API))),(0,M.U)(_=>(this.logger.info(_),this.store.dispatch((0,T.Ni)({payload:{action:"FetchBalance",status:E.Bn.COMPLETED}})),{type:E.AB.SET_BALANCE_CLN,payload:_||{}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchBalance",E.m6.NO_SPINNER,"Fetching Balances Failed.",_),(0,f.of)({type:E.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,C.z)(()=>(this.store.dispatch((0,T.Ni)({payload:{action:"FetchLocalRemoteBalance",status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,M.U)(_=>(this.logger.info(_),this.store.dispatch((0,T.Ni)({payload:{action:"FetchLocalRemoteBalance",status:E.Bn.COMPLETED}})),{type:E.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:_||{}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",E.m6.NO_SPINNER,"Fetching Balances Failed.",_),(0,f.of)({type:E.pg.VOID}))))),this.getNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.GET_NEW_ADDRESS_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:E.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"?type="+_.payload.addressCode).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.uO)({payload:E.m6.GENERATE_NEW_ADDRESS})),{type:E.AB.SET_NEW_ADDRESS_CLN,payload:W&&W.address?W.address:{}})),(0,d.K)(W=>(this.handleErrorWithAlert("GenerateNewAddress",E.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"?type="+_.payload.addressId,W),(0,f.of)({type:E.pg.VOID})))))))),this.setNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.SET_NEW_ADDRESS_CLN),(0,M.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.peersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.FETCH_PEERS_CLN),(0,C.z)(()=>(this.store.dispatch((0,T.Ni)({payload:{action:"FetchPeers",status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PEERS_API).pipe((0,M.U)(_=>(this.logger.info(_),this.store.dispatch((0,T.Ni)({payload:{action:"FetchPeers",status:E.Bn.COMPLETED}})),{type:E.AB.SET_PEERS_CLN,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchPeers",E.m6.NO_SPINNER,"Fetching Peers Failed.",_),(0,f.of)({type:E.pg.VOID})))))))),this.saveNewPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.SAVE_NEW_PEER_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:E.m6.CONNECT_PEER})),this.store.dispatch((0,T.Ni)({payload:{action:"SaveNewPeer",status:E.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PEERS_API,{id:_.payload.id}).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"SaveNewPeer",status:E.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:E.m6.CONNECT_PEER})),this.store.dispatch((0,T.Z8)({payload:W||[]})),{type:E.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:W.find(P=>0===_.payload.id.indexOf(P.id?P.id:""))}})),(0,d.K)(W=>(this.handleErrorWithoutAlert("SaveNewPeer",E.m6.CONNECT_PEER,"Peer Connection Failed.",W),(0,f.of)({type:E.pg.VOID})))))))),this.detachPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.DETACH_PEER_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:E.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.PEERS_API+"/"+_.payload.id+"?force="+_.payload.force).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.uO)({payload:E.m6.DISCONNECT_PEER})),this.store.dispatch((0,L.jW)({payload:"Peer Disconnected Successfully!"})),{type:E.AB.REMOVE_PEER_CLN,payload:{id:_.payload.id}})),(0,d.K)(W=>(this.handleErrorWithAlert("PeerDisconnect",E.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+R.NZ.PEERS_API+"/"+_.payload.id,W),(0,f.of)({type:E.pg.VOID})))))))),this.channelsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.FETCH_CHANNELS_CLN),(0,C.z)(()=>(this.store.dispatch((0,T.Ni)({payload:{action:"FetchChannels",status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/listChannels"))),(0,M.U)(_=>{this.logger.info(_),this.store.dispatch((0,T.Ni)({payload:{action:"FetchChannels",status:E.Bn.COMPLETED}}));const W={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return _.forEach(P=>{"CHANNELD_NORMAL"===P.state?P.connected?W.activeChannels.push(P):W.inactiveChannels.push(P):W.pendingChannels.push(P)}),{type:E.AB.SET_CHANNELS_CLN,payload:W}}),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchChannels",E.m6.NO_SPINNER,"Fetching Channels Failed.",_),(0,f.of)({type:E.pg.VOID}))))),this.openNewChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.SAVE_NEW_CHANNEL_CLN),(0,C.z)(_=>{this.store.dispatch((0,L.ac)({payload:E.m6.OPEN_CHANNEL})),this.store.dispatch((0,T.Ni)({payload:{action:"SaveNewChannel",status:E.Bn.INITIATED}}));const W={id:_.payload.peerId,satoshis:_.payload.satoshis,feeRate:_.payload.feeRate,announce:_.payload.announce};return _.payload.minconf&&(W.minconf=_.payload.minconf),_.payload.utxos&&(W.utxos=_.payload.utxos),_.payload.requestAmount&&(W.request_amt=_.payload.requestAmount),_.payload.compactLease&&(W.compact_lease=_.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API,W).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,T.Ni)({payload:{action:"SaveNewChannel",status:E.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:E.m6.OPEN_CHANNEL})),this.store.dispatch((0,L.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,T.EG)()),this.store.dispatch((0,T.Ly)()),{type:E.AB.FETCH_CHANNELS_CLN})),(0,d.K)(P=>(this.handleErrorWithoutAlert("SaveNewChannel",E.m6.OPEN_CHANNEL,"Opening Channel Failed.",P),(0,f.of)({type:E.pg.VOID}))))}))),this.updateChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.UPDATE_CHANNEL_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:E.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/setChannelFee",{id:_.payload.channelId,base:_.payload.baseFeeMsat,ppm:_.payload.feeRate}).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.uO)({payload:E.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,L.jW)("all"===_.payload.channelId?{payload:{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}}:{payload:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})),{type:E.AB.FETCH_CHANNELS_CLN})),(0,d.K)(W=>(this.handleErrorWithAlert("UpdateChannel",E.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API,W),(0,f.of)({type:E.pg.VOID})))))))),this.closeChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.CLOSE_CHANNEL_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:_.payload.force?E.m6.FORCE_CLOSE_CHANNEL:E.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/"+_.payload.channelId+(_.payload.force?"?force="+_.payload.force:"")).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,L.uO)({payload:_.payload.force?E.m6.FORCE_CLOSE_CHANNEL:E.m6.CLOSE_CHANNEL})),this.store.dispatch((0,T.UR)()),this.store.dispatch((0,T.g3)()),this.store.dispatch((0,L.jW)({payload:"Channel Closed Successfully!"})),{type:E.AB.REMOVE_CHANNEL_CLN,payload:_.payload})),(0,d.K)(P=>(this.handleErrorWithAlert("CloseChannel",_.payload.force?E.m6.FORCE_CLOSE_CHANNEL:E.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+R.NZ.CHANNELS_API,P),(0,f.of)({type:E.pg.VOID})))))))),this.paymentsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.FETCH_PAYMENTS_CLN),(0,C.z)(()=>(this.store.dispatch((0,T.Ni)({payload:{action:"FetchPayments",status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PAYMENTS_API))),(0,M.U)(_=>(this.logger.info(_),this.store.dispatch((0,T.Ni)({payload:{action:"FetchPayments",status:E.Bn.COMPLETED}})),{type:E.AB.SET_PAYMENTS_CLN,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchPayments",E.m6.NO_SPINNER,"Fetching Payments Failed.",_),(0,f.of)({type:E.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.FETCH_OFFER_INVOICE_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:E.m6.FETCH_INVOICE})),this.store.dispatch((0,T.Ni)({payload:{action:"FetchOfferInvoice",status:E.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.OFFERS_API+"/fetchOfferInvoice",_.payload).pipe((0,M.U)(W=>{this.logger.info(W),setTimeout(()=>{this.store.dispatch((0,T.Ni)({payload:{action:"FetchOfferInvoice",status:E.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:E.m6.FETCH_INVOICE})),this.store.dispatch((0,T.VD)({payload:W||{}}))},500)}),(0,d.K)(W=>(this.handleErrorWithoutAlert("FetchOfferInvoice",E.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",W),(0,f.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.SET_OFFER_INVOICE_CLN),(0,M.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.sendPaymentCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.SEND_PAYMENT_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:_.payload.uiMessage})),this.store.dispatch((0,T.Ni)({payload:{action:"SendPayment",status:E.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PAYMENTS_API,_.payload).pipe((0,M.U)(W=>{this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"SendPayment",status:E.Bn.COMPLETED}}));let P="Payment Sent Successfully!";W.saveToDBError&&(P="Payment Sent Successfully but Offer Saving to Database Failed."),W.saveToDBResponse&&"NA"!==W.saveToDBResponse&&(this.store.dispatch((0,T.e9)({payload:W.saveToDBResponse})),P="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,T.UR)()),this.store.dispatch((0,T.EG)()),this.store.dispatch((0,T.cQ)()),this.store.dispatch((0,L.uO)({payload:_.payload.uiMessage})),this.store.dispatch((0,L.jW)({payload:P})),this.store.dispatch((0,T.TM)({payload:W.paymentResponse}))},1e3)}),(0,d.K)(W=>(this.logger.error("Error: "+JSON.stringify(W)),_.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",_.payload.uiMessage,"Send Payment Failed.",W):this.handleErrorWithAlert("SendPayment",_.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API,W),(0,f.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.GET_QUERY_ROUTES_CLN),(0,C.z)(_=>(this.store.dispatch((0,T.Ni)({payload:{action:"GetQueryRoutes",status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/getRoute/"+_.payload.destPubkey+"/"+_.payload.amount).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"GetQueryRoutes",status:E.Bn.COMPLETED}})),{type:E.AB.SET_QUERY_ROUTES_CLN,payload:W})),(0,d.K)(W=>(this.store.dispatch((0,T.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",E.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/getRoute/"+_.payload.destPubkey+"/"+_.payload.amount,W),(0,f.of)({type:E.pg.VOID})))))))),this.setQueryRoutesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.SET_QUERY_ROUTES_CLN),(0,M.U)(_=>_.payload)),{dispatch:!1}),this.peerLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.PEER_LOOKUP_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:E.m6.SEARCHING_NODE})),this.store.dispatch((0,T.Ni)({payload:{action:"Lookup",status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/listNode/"+_.payload).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"Lookup",status:E.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:E.m6.SEARCHING_NODE})),{type:E.AB.SET_LOOKUP_CLN,payload:W})),(0,d.K)(W=>(this.handleErrorWithAlert("Lookup",E.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/listNode/"+_.payload,W),(0,f.of)({type:E.pg.VOID})))))))),this.channelLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.CHANNEL_LOOKUP_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:_.payload.uiMessage})),this.store.dispatch((0,T.Ni)({payload:{action:"Lookup",status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/listChannel/"+_.payload.shortChannelID).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"Lookup",status:E.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:_.payload.uiMessage})),{type:E.AB.SET_LOOKUP_CLN,payload:W})),(0,d.K)(W=>(_.payload.showError?this.handleErrorWithAlert("Lookup",_.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/listChannel/"+_.payload.shortChannelID,W):this.store.dispatch((0,L.uO)({payload:_.payload.uiMessage})),this.store.dispatch((0,T.v_)({payload:[]})),(0,f.of)({type:E.pg.VOID})))))))),this.invoiceLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.INVOICE_LOOKUP_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:E.m6.SEARCHING_INVOICE})),this.store.dispatch((0,T.Ni)({payload:{action:"Lookup",status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"?label="+_.payload).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"Lookup",status:E.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:E.m6.SEARCHING_INVOICE})),W.invoices&&W.invoices.length&&W.invoices.length>0&&this.store.dispatch((0,T.aL)({payload:W.invoices[0]})),{type:E.AB.SET_LOOKUP_CLN,payload:W.invoices&&W.invoices.length&&W.invoices.length>0?W.invoices[0]:W})),(0,d.K)(W=>(this.handleErrorWithoutAlert("Lookup",E.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",W),this.store.dispatch((0,L.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:E.pg.VOID})))))))),this.setLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.SET_LOOKUP_CLN),(0,M.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.GET_FORWARDING_HISTORY_CLN),(0,C.z)(_=>{const W=_.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,T.Ni)({payload:{action:"FetchForwardingHistory"+W,status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/listForwards?status="+_.payload.status).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,T.Ni)({payload:{action:"FetchForwardingHistory"+W,status:E.Bn.COMPLETED}})),_.payload.status===E.OO.FAILED?this.store.dispatch((0,T.QJ)({payload:{status:E.OO.FAILED,totalForwards:P.length,listForwards:P}})):_.payload.status===E.OO.LOCAL_FAILED?this.store.dispatch((0,T.QJ)({payload:{status:E.OO.LOCAL_FAILED,totalForwards:P.length,listForwards:P}})):_.payload.status===E.OO.SETTLED&&this.store.dispatch((0,T.QJ)({payload:{status:E.OO.SETTLED,totalForwards:P.length,listForwards:P}})),{type:E.pg.VOID})),(0,d.K)(P=>(this.handleErrorWithAlert("FetchForwardingHistory"+W,E.m6.NO_SPINNER,"Get "+_.payload.status+" Forwarding History Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API+"/listForwards?status="+_.payload.status,P),(0,f.of)({type:E.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.DELETE_EXPIRED_INVOICE_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:E.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.INVOICES_API+(_.payload?"?maxexpiry="+_.payload:"")).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,L.uO)({payload:E.m6.DELETE_INVOICE})),this.store.dispatch((0,L.jW)({payload:"Invoices Deleted Successfully!"})),{type:E.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,d.K)(P=>(this.handleErrorWithAlert("DeleteInvoices",E.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+R.NZ.INVOICES_API,P),(0,f.of)({type:E.pg.VOID})))))))),this.saveNewInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.SAVE_NEW_INVOICE_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:E.m6.ADD_INVOICE})),this.store.dispatch((0,T.Ni)({payload:{action:"SaveNewInvoice",status:E.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.INVOICES_API,{label:_.payload.label,amount:_.payload.amount,description:_.payload.description,expiry:_.payload.expiry,private:_.payload.private}).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"SaveNewInvoice",status:E.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:E.m6.ADD_INVOICE})),W.msatoshi=_.payload.amount,W.label=_.payload.label,W.expires_at=Math.round((new Date).getTime()/1e3+_.payload.expiry),W.description=_.payload.description,W.status="unpaid",setTimeout(()=>{this.store.dispatch((0,L.qR)({payload:{data:{invoice:W,newlyAdded:!0,component:I.y}}}))},200),{type:E.AB.ADD_INVOICE_CLN,payload:W})),(0,d.K)(W=>(this.handleErrorWithoutAlert("SaveNewInvoice",E.m6.ADD_INVOICE,"Add Invoice Failed.",W),(0,f.of)({type:E.pg.VOID})))))))),this.saveNewOfferCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.SAVE_NEW_OFFER_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:E.m6.CREATE_OFFER})),this.store.dispatch((0,T.Ni)({payload:{action:"SaveNewOffer",status:E.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.OFFERS_API,{amount:_.payload.amount,description:_.payload.description,vendor:_.payload.vendor}).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"SaveNewOffer",status:E.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:E.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,L.qR)({payload:{data:{offer:W,newlyAdded:!0,component:w.k}}}))},100),{type:E.AB.ADD_OFFER_CLN,payload:W})),(0,d.K)(W=>(this.handleErrorWithoutAlert("SaveNewOffer",E.m6.CREATE_OFFER,"Create Offer Failed.",W),(0,f.of)({type:E.pg.VOID})))))))),this.invoicesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.FETCH_INVOICES_CLN),(0,C.z)(_=>(this.store.dispatch((0,T.Ni)({payload:{action:"FetchInvoices",status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"?num_max_invoices="+(_.payload.num_max_invoices?_.payload.num_max_invoices:1e6)+"&index_offset="+(_.payload.index_offset?_.payload.index_offset:0)+"&reversed="+(!_.payload.reversed||_.payload.reversed)).pipe((0,M.U)(me=>(this.logger.info(me),this.store.dispatch((0,T.Ni)({payload:{action:"FetchInvoices",status:E.Bn.COMPLETED}})),{type:E.AB.SET_INVOICES_CLN,payload:me})),(0,d.K)(me=>(this.handleErrorWithoutAlert("FetchInvoices",E.m6.NO_SPINNER,"Fetching Invoices Failed.",me),(0,f.of)({type:E.pg.VOID})))))))),this.offersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.FETCH_OFFERS_CLN),(0,C.z)(_=>(this.store.dispatch((0,T.Ni)({payload:{action:"FetchOffers",status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.OFFERS_API).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"FetchOffers",status:E.Bn.COMPLETED}})),{type:E.AB.SET_OFFERS_CLN,payload:W.offers?W.offers:[]})),(0,d.K)(W=>(this.handleErrorWithoutAlert("FetchOffers",E.m6.NO_SPINNER,"Fetching Offers Failed.",W),(0,f.of)({type:E.pg.VOID})))))))),this.offersDisableCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.DISABLE_OFFER_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:E.m6.DISABLE_OFFER})),this.store.dispatch((0,T.Ni)({payload:{action:"DisableOffer",status:E.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.OFFERS_API+"/"+_.payload.offer_id).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"DisableOffer",status:E.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:E.m6.DISABLE_OFFER})),this.store.dispatch((0,L.jW)({payload:"Offer Disabled Successfully!"})),{type:E.AB.UPDATE_OFFER_CLN,payload:{offer:W}})),(0,d.K)(W=>(this.handleErrorWithoutAlert("DisableOffer",E.m6.DISABLE_OFFER,"Disabling Offer Failed.",W),(0,f.of)({type:E.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,C.z)(_=>(this.store.dispatch((0,T.Ni)({payload:{action:"FetchOfferBookmarks",status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.OFFERS_API+"/offerbookmarks").pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"FetchOfferBookmarks",status:E.Bn.COMPLETED}})),{type:E.AB.SET_OFFER_BOOKMARKS_CLN,payload:W||[]})),(0,d.K)(W=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",E.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",W),(0,f.of)({type:E.pg.VOID})))))))),this.peidOffersDeleteCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.DELETE_OFFER_BOOKMARK_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:E.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,T.Ni)({payload:{action:"DeleteOfferBookmark",status:E.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.OFFERS_API+"/offerbookmark/"+_.payload.bolt12).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"DeleteOfferBookmark",status:E.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:E.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,L.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:E.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:_.payload.bolt12}})),(0,d.K)(W=>(this.handleErrorWithAlert("DeleteOfferBookmark",E.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+R.NZ.OFFERS_API+"/offerbookmark/"+_.payload.bolt12,W),(0,f.of)({type:E.pg.VOID})))))))),this.SetChannelTransactionCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.SET_CHANNEL_TRANSACTION_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:E.m6.SEND_FUNDS})),this.store.dispatch((0,T.Ni)({payload:{action:"SetChannelTransaction",status:E.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.ON_CHAIN_API,_.payload).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"SetChannelTransaction",status:E.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:E.m6.SEND_FUNDS})),this.store.dispatch((0,T.EG)()),this.store.dispatch((0,T.Ly)()),{type:E.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:W})),(0,d.K)(W=>(this.handleErrorWithoutAlert("SetChannelTransaction",E.m6.SEND_FUNDS,"Sending Fund Failed.",W),(0,f.of)({type:E.pg.VOID})))))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.FETCH_UTXOS_CLN),(0,C.z)(()=>(this.store.dispatch((0,T.Ni)({payload:{action:"FetchUTXOs",status:E.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/utxos"))),(0,M.U)(_=>(this.logger.info(_),this.store.dispatch((0,T.Ni)({payload:{action:"FetchUTXOs",status:E.Bn.COMPLETED}})),{type:E.AB.SET_UTXOS_CLN,payload:_.outputs||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchUTXOs",E.m6.NO_SPINNER,"Fetching UTXOs Failed.",_),(0,f.of)({type:E.pg.VOID}))))),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.FETCH_PAGE_SETTINGS_CLN),(0,C.z)(()=>(this.store.dispatch((0,T.Ni)({payload:{action:"FetchPageSettings",status:E.Bn.INITIATED}})),this.httpClient.get(R.NZ.PAGE_SETTINGS_API).pipe((0,M.U)(_=>(this.logger.info(_),this.store.dispatch((0,T.Ni)({payload:{action:"FetchPageSettings",status:E.Bn.COMPLETED}})),{type:E.AB.SET_PAGE_SETTINGS_CLN,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchPageSettings",E.m6.NO_SPINNER,"Fetching Page Settings Failed.",_),(0,f.of)({type:E.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(E.AB.SAVE_PAGE_SETTINGS_CLN),(0,C.z)(_=>(this.store.dispatch((0,L.ac)({payload:E.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,T.Ni)({payload:{action:"SavePageSettings",status:E.Bn.INITIATED}})),this.httpClient.post(R.NZ.PAGE_SETTINGS_API,_.payload).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.Ni)({payload:{action:"SavePageSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:E.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,L.jW)({payload:"Page Layout Updated Successfully!"})),{type:E.AB.SET_PAGE_SETTINGS_CLN,payload:W||[]})),(0,d.K)(W=>(this.handleErrorWithAlert("SavePageSettings",E.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",R.NZ.PAGE_SETTINGS_API,W),(0,f.of)({type:E.pg.VOID})))))))),this.store.select(N.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(_=>{_.FetchInfo.status!==E.Bn.COMPLETED&&_.FetchInfo.status!==E.Bn.ERROR||_.FetchFees.status!==E.Bn.COMPLETED&&_.FetchFees.status!==E.Bn.ERROR||_.FetchChannels.status!==E.Bn.COMPLETED&&_.FetchChannels.status!==E.Bn.ERROR||_.FetchBalance.status!==E.Bn.COMPLETED&&_.FetchBalance.status!==E.Bn.ERROR||_.FetchLocalRemoteBalance.status!==E.Bn.COMPLETED&&_.FetchLocalRemoteBalance.status!==E.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,L.uO)({payload:E.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(_=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(_)),_)switch(_.event){case E.nM.INVOICE:this.logger.info(_),_&&_.data&&_.data.label&&this.store.dispatch((0,T.aL)({payload:_.data}));break;case E.nM.SEND_PAYMENT:case E.nM.BLOCK_HEIGHT:this.logger.info(_);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(_))}})}initializeRemainingData(i,r){this.sessionService.setItem("clUnlocked","true");const u={identity_pubkey:i.id,alias:i.alias,testnet:"testnet"===i.network.toLowerCase(),chains:i.chains,uris:i.uris,version:i.version,api_version:i.api_version,numberOfPendingChannels:i.num_pending_channels};this.store.dispatch((0,L.ac)({payload:E.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,L._V)({payload:u}));let l=this.location.path();l.includes("/lnd/")?l=l?.replace("/lnd/","/cln/"):l.includes("/ecl/")&&(l=l?.replace("/ecl/","/cln/")),(l.includes("/login")||l.includes("/error")||""===l||"HOME"===r||l.includes("?access-key="))&&(l="/cln/home"),this.router.navigate([l]),this.store.dispatch((0,T.wD)()),this.store.dispatch((0,T.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,T.SN)()),this.store.dispatch((0,T.UR)()),this.store.dispatch((0,T.EG)()),this.store.dispatch((0,T.g3)()),this.store.dispatch((0,T.HJ)({payload:"perkw"})),this.store.dispatch((0,T.HJ)({payload:"perkb"})),this.store.dispatch((0,T.$W)()),this.store.dispatch((0,T.Ly)()),this.store.dispatch((0,T.cQ)())}handleErrorWithoutAlert(i,r,u,l){if(this.logger.error("ERROR IN: "+i+"\n"+JSON.stringify(l)),401===l.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.kS)()),this.store.dispatch((0,L.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,L.uO)({payload:r}));const y=this.commonService.extractErrorMessage(l,u);this.store.dispatch((0,T.Ni)({payload:{action:i,status:E.Bn.ERROR,statusCode:l.status.toString(),message:y}}))}}handleErrorWithAlert(i,r,u,l,y){if(this.logger.error(y),401===y.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.kS)()),this.store.dispatch((0,L.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,L.uO)({payload:r}));const D=this.commonService.extractErrorMessage(y);this.store.dispatch((0,L.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:y.status,message:D,URL:l},component:h.H}}})),this.store.dispatch((0,T.Ni)({payload:{action:i,status:E.Bn.ERROR,statusCode:y.status.toString(),message:D,URL:l}}))}}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}}return pe.\u0275fac=function(i){return new(i||pe)(G.LFG(t.eX),G.LFG(K.eN),G.LFG(Q.yh),G.LFG(re.m),G.LFG(ie.v),G.LFG(ce.mQ),G.LFG(ae.F0),G.LFG(ne.d),G.LFG(le.Ye))},pe.\u0275prov=G.Yz7({token:pe,factory:pe.\u0275fac}),pe})()},9828:(ke,J,p)=>{"use strict";p.d(J,{AS:()=>C,Ao:()=>ne,Bo:()=>Q,EQ:()=>pe,Hz:()=>le,JG:()=>I,OL:()=>ce,PP:()=>R,Rn:()=>G,T4:()=>N,Wi:()=>h,Wj:()=>K,Y_:()=>ee,ZW:()=>w,ey:()=>a,gc:()=>T,hx:()=>L,jK:()=>ae,lK:()=>ie,lw:()=>f,xQ:()=>re,yA:()=>d,zm:()=>E});var t=p(9653);const e=(0,t.ZF)("cln"),f=(0,t.P1)(e,i=>i.nodeSettings),C=(0,t.P1)(e,i=>({pageSettings:i.pageSettings,apiCallStatus:i.apisCallStatus.FetchPageSettings})),a=(0,t.P1)(e,i=>i.information),d=((0,t.P1)(e,i=>i.apisCallStatus.FetchInfo),(0,t.P1)(e,i=>i.apisCallStatus)),R=(0,t.P1)(e,i=>({payments:i.payments,apiCallStatus:i.apisCallStatus.FetchPayments})),h=(0,t.P1)(e,i=>({peers:i.peers,apiCallStatus:i.apisCallStatus.FetchPeers})),I=(0,t.P1)(e,i=>({fees:i.fees,apiCallStatus:i.apisCallStatus.FetchFees})),E=(0,t.P1)(e,i=>({feeRatesPerKB:i.feeRatesPerKB,apiCallStatus:i.apisCallStatus.FetchFeeRatesperkb})),L=(0,t.P1)(e,i=>({feeRatesPerKW:i.feeRatesPerKW,apiCallStatus:i.apisCallStatus.FetchFeeRatesperkw})),T=(0,t.P1)(e,i=>({listInvoices:i.invoices,apiCallStatus:i.apisCallStatus.FetchInvoices})),N=(0,t.P1)(e,i=>({utxos:i.utxos,apiCallStatus:i.apisCallStatus.FetchUTXOs})),w=(0,t.P1)(e,i=>({activeChannels:i.activeChannels,pendingChannels:i.pendingChannels,inactiveChannels:i.inactiveChannels,apiCallStatus:i.apisCallStatus.FetchChannels})),G=(0,t.P1)(e,i=>({balance:i.balance,apiCallStatus:i.apisCallStatus.FetchBalance})),K=(0,t.P1)(e,i=>({localRemoteBalance:i.localRemoteBalance,apiCallStatus:i.apisCallStatus.FetchLocalRemoteBalance})),Q=(0,t.P1)(e,i=>({forwardingHistory:i.forwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryS})),re=(0,t.P1)(e,i=>({failedForwardingHistory:i.failedForwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryF})),ie=(0,t.P1)(e,i=>({localFailedForwardingHistory:i.localFailedForwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryL})),ce=(0,t.P1)(e,i=>({information:i.information,nodeSettings:i.nodeSettings,balance:i.balance})),ae=(0,t.P1)(e,i=>({information:i.information,balance:i.balance,numPeers:i.peers.length})),ne=(0,t.P1)(e,i=>({information:i.information,balance:i.balance})),le=(0,t.P1)(e,i=>({information:i.information,nodeSettings:i.nodeSettings,apisCallStatus:[i.apisCallStatus.FetchInfo,i.apisCallStatus.FetchForwardingHistoryS]})),ee=(0,t.P1)(e,i=>({offers:i.offers,apiCallStatus:i.apisCallStatus.FetchOffers})),pe=(0,t.P1)(e,i=>({offersBookmarks:i.offersBookmarks,apiCallStatus:i.apisCallStatus.FetchOfferBookmarks}))},5566:(ke,J,p)=>{"use strict";p.d(J,{y:()=>ut});var t=p(5412),e=p(2687),f=p(7579),C=p(2722),a=p(7731),M=p(9828),d=p(4650),R=p(5043),h=p(62),I=p(7009),E=p(9653),L=p(6895),T=p(2216),N=p(1576),w=p(5829),G=p(4859),K=p(3546),Q=p(4850),re=p(1572),ie=p(266),ce=p(658),ae=p(5199),ne=p(3390);function le(Ee,ye){if(1&Ee&&d._UZ(0,"qr-code",33),2&Ee){const he=d.oxw();d.Q6J("value",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))("size",he.qrWidth)("errorCorrectionLevel","L")}}function ee(Ee,ye){1&Ee&&(d.TgZ(0,"span",34),d._uU(1,"N/A"),d.qZA())}const pe=function(Ee){return{"mr-0":Ee}};function S(Ee,ye){if(1&Ee&&d._UZ(0,"span",35),2&Ee){const he=d.oxw();d.Q6J("ngClass",d.VKq(1,pe,he.screenSize===he.screenSizeEnum.XS))}}function i(Ee,ye){if(1&Ee&&d._UZ(0,"span",36),2&Ee){const he=d.oxw();d.Q6J("ngClass",d.VKq(1,pe,he.screenSize===he.screenSizeEnum.XS))}}function r(Ee,ye){if(1&Ee&&d._UZ(0,"span",37),2&Ee){const he=d.oxw();d.Q6J("ngClass",d.VKq(1,pe,he.screenSize===he.screenSizeEnum.XS))}}function u(Ee,ye){if(1&Ee&&d._UZ(0,"qr-code",33),2&Ee){const he=d.oxw();d.Q6J("value",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))("size",he.qrWidth)("errorCorrectionLevel","L")}}function l(Ee,ye){1&Ee&&(d.TgZ(0,"span",38),d._uU(1,"QR Code Not Applicable"),d.qZA())}function y(Ee,ye){1&Ee&&d._UZ(0,"mat-divider",39),2&Ee&&d.Q6J("inset",!0)}function D(Ee,ye){if(1&Ee&&(d.TgZ(0,"div",19)(1,"div",40),d._UZ(2,"fa-icon",41),d.TgZ(3,"span"),d._uU(4),d.qZA()()()),2&Ee){const he=d.oxw();d.xp6(2),d.Q6J("icon",he.faExclamationTriangle),d.xp6(2),d.Oqu(null==he.invoice?null:he.invoice.warning_capacity)}}function k(Ee,ye){1&Ee&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function b(Ee,ye){1&Ee&&d._UZ(0,"span",47)}const n=function(){return[]};function _(Ee,ye){if(1&Ee&&(d.TgZ(0,"div",43)(1,"div",44)(2,"span",45),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,b,1,0,"span",46),d.qZA()()),2&Ee){const he=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,(null==he.invoice?null:he.invoice.msatoshi_received)/1e3)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,n).constructor(35))}}function W(Ee,ye){if(1&Ee&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Ee){const he=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,(null==he.invoice?null:he.invoice.msatoshi_received)/1e3)," Sats")}}function P(Ee,ye){if(1&Ee&&(d.ynx(0),d.YNc(1,_,6,5,"div",42),d.YNc(2,W,3,3,"div",23),d.BQk()),2&Ee){const he=d.oxw();d.xp6(1),d.Q6J("ngIf",he.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!he.flgInvoicePaid)}}function U(Ee,ye){1&Ee&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function me(Ee,ye){1&Ee&&d._UZ(0,"mat-spinner",49),2&Ee&&d.Q6J("diameter",20)}function nt(Ee,ye){if(1&Ee&&(d.ynx(0),d.YNc(1,U,2,0,"span",23),d.YNc(2,me,1,1,"mat-spinner",48),d.BQk()),2&Ee){const he=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==he.invoice?null:he.invoice.status)||!he.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==he.invoice?null:he.invoice.status)&&he.flgVersionCompatible)}}function Pe(Ee,ye){if(1&Ee&&(d.TgZ(0,"div"),d._UZ(1,"mat-divider",25),d.TgZ(2,"div",19)(3,"div",26)(4,"h4",21),d._uU(5,"Payment Hash"),d.qZA(),d.TgZ(6,"span",24),d._uU(7),d.qZA()()(),d._UZ(8,"mat-divider",25),d.TgZ(9,"div",19)(10,"div",26)(11,"h4",21),d._uU(12,"Label"),d.qZA(),d.TgZ(13,"span",24),d._uU(14),d.qZA()()(),d._UZ(15,"mat-divider",25),d.qZA()),2&Ee){const he=d.oxw();d.xp6(7),d.Oqu(null==he.invoice?null:he.invoice.payment_hash),d.xp6(7),d.Oqu(null==he.invoice?null:he.invoice.label)}}function Oe(Ee,ye){1&Ee&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function De(Ee,ye){1&Ee&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function ue(Ee,ye){if(1&Ee){const he=d.EpF();d.TgZ(0,"button",50),d.NdJ("copied",function(we){d.CHM(he);const Y=d.oxw();return d.KtG(Y.onCopyPayment(we))}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&Ee){const he=d.oxw();d.Q6J("payload",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))}}function ve(Ee,ye){if(1&Ee){const he=d.EpF();d.TgZ(0,"button",51),d.NdJ("click",function(){d.CHM(he);const we=d.oxw();return d.KtG(we.onClose())}),d._uU(1,"OK"),d.qZA()}}const Ie=function(Ee){return{"display-none":Ee}},$=function(Ee){return{"xs-scroll-y":Ee}},Ge=function(Ee,ye){return{"mt-2":Ee,"mt-1":ye}};let ut=(()=>{class Ee{constructor(he,de,we,Y,j,Ce){this.dialogRef=he,this.data=de,this.logger=we,this.commonService=Y,this.snackBar=j,this.store=Ce,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(M.ey).pipe((0,C.R)(this.unSubs[0])).subscribe(he=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(he.api_version,"0.6.0")}),this.store.select(M.gc).pipe((0,C.R)(this.unSubs[1])).subscribe(he=>{const de=this.invoice.status,Y=(he.listInvoices.invoices||[])?.find(j=>j.payment_hash===this.invoice.payment_hash)||null;Y&&(this.invoice=Y),de!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(he)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(he){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+he)}ngOnDestroy(){this.unSubs.forEach(he=>{he.next(null),he.complete()})}}return Ee.\u0275fac=function(he){return new(he||Ee)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(I.ux),d.Y36(E.yh))},Ee.\u0275cmp=d.Xpm({type:Ee,selectors:[["rtl-cln-invoice-information"]],decls:72,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","dot green ml-1","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow ml-1","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red ml-1","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green","ml-1",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow","ml-1",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red","ml-1",3,"ngClass"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(he,de){if(1&he&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,le,1,3,"qr-code",2),d.YNc(3,ee,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.YNc(10,S,1,3,"span",9),d.YNc(11,i,1,3,"span",10),d.YNc(12,r,1,3,"span",11),d.qZA()(),d.TgZ(13,"button",12),d.NdJ("click",function(){return de.onClose()}),d._uU(14,"X"),d.qZA()(),d.TgZ(15,"mat-card-content",13)(16,"div",14)(17,"div",15),d.YNc(18,u,1,3,"qr-code",2),d.YNc(19,l,2,0,"span",16),d.qZA(),d.YNc(20,y,1,1,"mat-divider",17),d.YNc(21,D,5,2,"div",18),d.TgZ(22,"div",19)(23,"div",20)(24,"h4",21),d._uU(25),d.qZA(),d.TgZ(26,"span",22),d._uU(27),d.ALo(28,"number"),d.YNc(29,k,2,0,"ng-container",23),d.qZA()(),d.TgZ(30,"div",20)(31,"h4",21),d._uU(32,"Amount Received"),d.qZA(),d.TgZ(33,"span",24),d.YNc(34,P,3,2,"ng-container",23),d.YNc(35,nt,3,2,"ng-container",23),d.qZA()()(),d._UZ(36,"mat-divider",25),d.TgZ(37,"div",19)(38,"div",20)(39,"h4",21),d._uU(40,"Date Expiry"),d.qZA(),d.TgZ(41,"span",22),d._uU(42),d.ALo(43,"date"),d.qZA()(),d.TgZ(44,"div",20)(45,"h4",21),d._uU(46,"Date Settled"),d.qZA(),d.TgZ(47,"span",22),d._uU(48),d.ALo(49,"date"),d.qZA()()(),d._UZ(50,"mat-divider",25),d.TgZ(51,"div",19)(52,"div",26)(53,"h4",21),d._uU(54,"Description"),d.qZA(),d.TgZ(55,"span",22),d._uU(56),d.qZA()()(),d._UZ(57,"mat-divider",25),d.TgZ(58,"div",19)(59,"div",26)(60,"h4",21),d._uU(61),d.qZA(),d.TgZ(62,"span",24),d._uU(63),d.qZA()()(),d.YNc(64,Pe,16,2,"div",23),d.TgZ(65,"div",27)(66,"button",28),d.NdJ("click",function(){return de.onShowAdvanced()}),d.YNc(67,Oe,2,0,"p",29),d.YNc(68,De,2,0,"ng-template",null,30,d.W1O),d.qZA(),d.YNc(70,ue,2,1,"button",31),d.YNc(71,ve,2,0,"button",32),d.qZA()()()()()),2&he){const we=d.MAs(69);d.xp6(1),d.Q6J("fxLayoutAlign",null!=de.invoice&&de.invoice.bolt11&&""!==(null==de.invoice?null:de.invoice.bolt11)||null!=de.invoice&&de.invoice.bolt12&&""!==(null==de.invoice?null:de.invoice.bolt12)?"center start":"center center")("ngClass",d.VKq(40,Ie,de.screenSize===de.screenSizeEnum.XS||de.screenSize===de.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==de.invoice?null:de.invoice.bolt11)&&""!==(null==de.invoice?null:de.invoice.bolt11)||(null==de.invoice?null:de.invoice.bolt12)&&""!==(null==de.invoice?null:de.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=de.invoice&&de.invoice.bolt11||null!=de.invoice&&de.invoice.bolt12)),d.xp6(4),d.Q6J("icon",de.faReceipt),d.xp6(2),d.hij(" ",de.screenSize===de.screenSizeEnum.XS?de.newlyAdded?"Created":"Invoice":de.newlyAdded?"Invoice Created":"Invoice Information"," "),d.xp6(1),d.Q6J("ngIf","paid"===(null==de.invoice?null:de.invoice.status)),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==de.invoice?null:de.invoice.status)),d.xp6(1),d.Q6J("ngIf","expired"===(null==de.invoice?null:de.invoice.status)),d.xp6(3),d.Q6J("ngClass",d.VKq(42,$,de.screenSize===de.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=de.invoice&&de.invoice.bolt11&&""!==(null==de.invoice?null:de.invoice.bolt11)||null!=de.invoice&&de.invoice.bolt12&&""!==(null==de.invoice?null:de.invoice.bolt12)?"center start":"center center")("ngClass",d.VKq(44,Ie,de.screenSize!==de.screenSizeEnum.XS&&de.screenSize!==de.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==de.invoice?null:de.invoice.bolt11)&&""!==(null==de.invoice?null:de.invoice.bolt11)||(null==de.invoice?null:de.invoice.bolt12)&&""!==(null==de.invoice?null:de.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=de.invoice&&de.invoice.bolt11||null!=de.invoice&&de.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",de.screenSize===de.screenSizeEnum.XS||de.screenSize===de.screenSizeEnum.SM),d.xp6(1),d.Q6J("ngIf",null==de.invoice?null:de.invoice.warning_capacity),d.xp6(4),d.Oqu(de.screenSize===de.screenSizeEnum.XS?"Amount":"Amount Requested"),d.xp6(2),d.hij(" ",d.lcZ(28,32,(null==de.invoice?null:de.invoice.msatoshi)/1e3||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=de.invoice&&de.invoice.msatoshi)||"0"===(null==de.invoice?null:de.invoice.msatoshi)),d.xp6(5),d.Q6J("ngIf","paid"===(null==de.invoice?null:de.invoice.status)),d.xp6(1),d.Q6J("ngIf","paid"!==(null==de.invoice?null:de.invoice.status)),d.xp6(7),d.Oqu(d.xi3(43,34,1e3*(null==de.invoice?null:de.invoice.expires_at),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.xi3(49,37,1e3*(null==de.invoice?null:de.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),d.xp6(8),d.Oqu((null==de.invoice?null:de.invoice.description)||"-"),d.xp6(5),d.hij("",null!=de.invoice&&de.invoice.bolt12?"Bolt12":null!=de.invoice&&de.invoice.bolt11&&!de.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),d.xp6(2),d.Oqu((null==de.invoice?null:de.invoice.bolt11)||(null==de.invoice?null:de.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",de.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(46,Ge,!de.showAdvanced,de.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!de.showAdvanced)("ngIfElse",we),d.xp6(3),d.Q6J("ngIf",(null==de.invoice?null:de.invoice.bolt11)&&""!==(null==de.invoice?null:de.invoice.bolt11)||(null==de.invoice?null:de.invoice.bolt12)&&""!==(null==de.invoice?null:de.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=de.invoice&&de.invoice.bolt11||null!=de.invoice&&de.invoice.bolt12))}},dependencies:[L.mk,L.sg,L.O5,T.BN,N.xw,N.Wh,N.yH,w.oO,G.lW,K.dk,K.dn,Q.d,re.Ou,ie.gM,ce.uU,ae.y,ne.h,L.JJ,L.uU]}),Ee})()},1462:(ke,J,p)=>{"use strict";p.d(J,{k:()=>U});var t=p(5412),e=p(2687),f=p(7579),C=p(2722),a=p(7731),M=p(9828),d=p(4650),R=p(5043),h=p(62),I=p(7009),E=p(9653),L=p(8104),T=p(6895),N=p(2216),w=p(1576),G=p(5829),K=p(4859),Q=p(3546),re=p(4850),ie=p(658),ce=p(5199),ae=p(3390);function ne(me,nt){if(1&me&&d._UZ(0,"qr-code",28),2&me){const Pe=d.oxw();d.Q6J("value",null==Pe.offer?null:Pe.offer.bolt12)("size",Pe.qrWidth)("errorCorrectionLevel","L")}}function le(me,nt){1&me&&(d.TgZ(0,"span",29),d._uU(1,"N/A"),d.qZA())}function ee(me,nt){if(1&me&&d._UZ(0,"qr-code",28),2&me){const Pe=d.oxw();d.Q6J("value",null==Pe.offer?null:Pe.offer.bolt12)("size",Pe.qrWidth)("errorCorrectionLevel","L")}}function pe(me,nt){1&me&&(d.TgZ(0,"span",30),d._uU(1,"QR Code Not Applicable"),d.qZA())}function S(me,nt){1&me&&d._UZ(0,"mat-divider",31),2&me&&d.Q6J("inset",!0)}function i(me,nt){1&me&&d._UZ(0,"mat-divider",19)}function r(me,nt){if(1&me&&(d.TgZ(0,"div",15)(1,"div",16)(2,"h4",17),d._uU(3,"Used"),d.qZA(),d.TgZ(4,"span",18),d._uU(5),d.qZA()(),d.TgZ(6,"div",16)(7,"h4",17),d._uU(8,"Single Use"),d.qZA(),d.TgZ(9,"span",18),d._uU(10),d.qZA()()()),2&me){const Pe=d.oxw(2);d.xp6(5),d.hij(" ",null!=Pe.offer&&Pe.offer.used?null!=Pe.offer&&Pe.offer.used?"Yes":"No":"N/K"," "),d.xp6(5),d.hij(" ",null!=Pe.offer&&Pe.offer.single_use?null!=Pe.offer&&Pe.offer.single_use?"Yes":"No":"N/K"," ")}}function u(me,nt){1&me&&d._UZ(0,"mat-divider",19)}function l(me,nt){if(1&me&&(d.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),d._uU(3,"Vendor"),d.qZA(),d.TgZ(4,"span",34),d._uU(5),d.qZA()()()),2&me){const Pe=d.oxw(2);d.xp6(5),d.Oqu((null==Pe.offerDecoded?null:Pe.offerDecoded.vendor)||(null==Pe.offerDecoded?null:Pe.offerDecoded.issuer))}}function y(me,nt){if(1&me&&(d.TgZ(0,"div"),d.YNc(1,i,1,0,"mat-divider",32),d.YNc(2,r,11,2,"div",33),d.YNc(3,u,1,0,"mat-divider",32),d.YNc(4,l,6,1,"div",33),d._UZ(5,"mat-divider",19),d.TgZ(6,"div",15)(7,"div",20)(8,"h4",17),d._uU(9,"Offer ID"),d.qZA(),d.TgZ(10,"span",18),d._uU(11),d.qZA()()(),d._UZ(12,"mat-divider",19),d.qZA()),2&me){const Pe=d.oxw();d.xp6(1),d.Q6J("ngIf",(null==Pe.offer?null:Pe.offer.used)||(null==Pe.offer?null:Pe.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==Pe.offer?null:Pe.offer.used)||(null==Pe.offer?null:Pe.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==Pe.offerDecoded?null:Pe.offerDecoded.vendor)||(null==Pe.offerDecoded?null:Pe.offerDecoded.issuer)),d.xp6(1),d.Q6J("ngIf",(null==Pe.offerDecoded?null:Pe.offerDecoded.vendor)||(null==Pe.offerDecoded?null:Pe.offerDecoded.issuer)),d.xp6(7),d.Oqu(Pe.offerDecoded.offer_id)}}function D(me,nt){1&me&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function k(me,nt){1&me&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function b(me,nt){if(1&me){const Pe=d.EpF();d.TgZ(0,"button",35),d.NdJ("copied",function(De){d.CHM(Pe);const ue=d.oxw();return d.KtG(ue.onCopyOffer(De))}),d._uU(1,"Copy Offer"),d.qZA()}if(2&me){const Pe=d.oxw();d.Q6J("payload",null==Pe.offer?null:Pe.offer.bolt12)}}function n(me,nt){if(1&me){const Pe=d.EpF();d.TgZ(0,"button",36),d.NdJ("click",function(){d.CHM(Pe);const De=d.oxw();return d.KtG(De.onClose())}),d._uU(1,"OK"),d.qZA()}}const _=function(me){return{"display-none":me}},W=function(me){return{"xs-scroll-y":me}},P=function(me,nt){return{"mt-2":me,"mt-1":nt}};let U=(()=>{class me{constructor(Pe,Oe,De,ue,ve,Ie,$){this.dialogRef=Pe,this.data=Oe,this.logger=De,this.commonService=ue,this.snackBar=ve,this.store=Ie,this.dataService=$,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgOfferPaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(M.ey).pipe((0,C.R)(this.unSubs[0])).subscribe(Pe=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Pe.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,C.R)(this.unSubs[1])).subscribe(Pe=>{this.offerDecoded=Pe,this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0):this.offerDecoded.amount=this.offerDecoded.amount?+this.offerDecoded.amount:this.offerDecoded.amount_msat?+this.offerDecoded.amount_msat?.slice(0,-4):null})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(Pe){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+Pe)}ngOnDestroy(){this.unSubs.forEach(Pe=>{Pe.next(null),Pe.complete()})}}return me.\u0275fac=function(Pe){return new(Pe||me)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(I.ux),d.Y36(E.yh),d.Y36(L.D))},me.\u0275cmp=d.Xpm({type:me,selectors:[["rtl-cln-offer-information"]],decls:52,vars:33,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Pe,Oe){if(1&Pe&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,ne,1,3,"qr-code",2),d.YNc(3,le,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return Oe.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,ee,1,3,"qr-code",2),d.YNc(16,pe,2,0,"span",13),d.qZA(),d.YNc(17,S,1,1,"mat-divider",14),d.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),d._uU(21,"Amount Requested (Sats)"),d.qZA(),d.TgZ(22,"span",18),d._uU(23),d.ALo(24,"number"),d.qZA()(),d.TgZ(25,"div",16)(26,"h4",17),d._uU(27,"Active"),d.qZA(),d.TgZ(28,"span",18),d._uU(29),d.qZA()()(),d._UZ(30,"mat-divider",19),d.TgZ(31,"div",15)(32,"div",20)(33,"h4",17),d._uU(34,"Description"),d.qZA(),d.TgZ(35,"span",18),d._uU(36),d.qZA()()(),d._UZ(37,"mat-divider",19),d.TgZ(38,"div",15)(39,"div",20)(40,"h4",17),d._uU(41,"Offer Request"),d.qZA(),d.TgZ(42,"span",18),d._uU(43),d.qZA()()(),d.YNc(44,y,13,5,"div",21),d.TgZ(45,"div",22)(46,"button",23),d.NdJ("click",function(){return Oe.onShowAdvanced()}),d.YNc(47,D,2,0,"p",24),d.YNc(48,k,2,0,"ng-template",null,25,d.W1O),d.qZA(),d.YNc(50,b,2,1,"button",26),d.YNc(51,n,2,0,"button",27),d.qZA()()()()()),2&Pe){const De=d.MAs(49);d.xp6(1),d.Q6J("fxLayoutAlign",null!=Oe.offer&&Oe.offer.bolt12&&""!==(null==Oe.offer?null:Oe.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(24,_,Oe.screenSize===Oe.screenSizeEnum.XS||Oe.screenSize===Oe.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Oe.offer?null:Oe.offer.bolt12)&&""!==(null==Oe.offer?null:Oe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Oe.offer&&Oe.offer.bolt12)||""===(null==Oe.offer?null:Oe.offer.bolt12)),d.xp6(4),d.Q6J("icon",Oe.faReceipt),d.xp6(2),d.Oqu(Oe.screenSize===Oe.screenSizeEnum.XS?Oe.newlyAdded?"Created":"Offer":Oe.newlyAdded?"Offer Created":"Offer Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(26,W,Oe.screenSize===Oe.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=Oe.offer&&Oe.offer.bolt12&&""!==(null==Oe.offer?null:Oe.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(28,_,Oe.screenSize!==Oe.screenSizeEnum.XS&&Oe.screenSize!==Oe.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Oe.offer?null:Oe.offer.bolt12)&&""!==(null==Oe.offer?null:Oe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Oe.offer&&Oe.offer.bolt12)||""===(null==Oe.offer?null:Oe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",Oe.screenSize===Oe.screenSizeEnum.XS||Oe.screenSize===Oe.screenSizeEnum.SM),d.xp6(6),d.hij(" ",null!=Oe.offerDecoded&&Oe.offerDecoded.amount_msat&&0!==(null==Oe.offerDecoded?null:Oe.offerDecoded.amount)?d.lcZ(24,22,(null==Oe.offerDecoded?null:Oe.offerDecoded.amount)/1e3):"Open Offer"," "),d.xp6(6),d.hij(" ",null!=Oe.offer&&Oe.offer.active?null!=Oe.offer&&Oe.offer.active?"Active":"Inactive":"N/K"," "),d.xp6(7),d.hij(" ",null==Oe.offerDecoded?null:Oe.offerDecoded.description," "),d.xp6(7),d.Oqu(null==Oe.offer?null:Oe.offer.bolt12),d.xp6(1),d.Q6J("ngIf",Oe.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(30,P,!Oe.showAdvanced,Oe.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!Oe.showAdvanced)("ngIfElse",De),d.xp6(3),d.Q6J("ngIf",(null==Oe.offer?null:Oe.offer.bolt12)&&""!==(null==Oe.offer?null:Oe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Oe.offer&&Oe.offer.bolt12)||""===(null==Oe.offer?null:Oe.offer.bolt12))}},dependencies:[T.mk,T.O5,N.BN,w.xw,w.Wh,w.yH,G.oO,K.lW,Q.dk,Q.dn,re.d,ie.uU,ce.y,ae.h,T.JJ]}),me})()},2994:(ke,J,p)=>{"use strict";p.d(J,{$W:()=>ce,BL:()=>y,Bw:()=>Q,CX:()=>I,DJ:()=>Ee,EK:()=>S,El:()=>ne,Fd:()=>C,GD:()=>pe,HG:()=>ie,HI:()=>b,Iy:()=>nt,Lf:()=>me,Nr:()=>De,OG:()=>D,On:()=>re,QZ:()=>f,RX:()=>L,SN:()=>E,Sf:()=>$,TM:()=>P,TW:()=>w,UR:()=>T,WM:()=>Oe,WO:()=>n,YP:()=>ve,YX:()=>u,Z$:()=>ue,Z8:()=>ae,Zr:()=>a,_E:()=>i,aL:()=>Ie,cQ:()=>k,eF:()=>R,eN:()=>N,i:()=>G,iL:()=>K,iz:()=>h,kL:()=>_,mC:()=>U,n7:()=>Ge,oV:()=>W,pW:()=>l,pd:()=>d,ti:()=>ye,wD:()=>M});var t=p(9653),e=p(7731);const f=(0,t.PH)(e.lr.UPDATE_API_CALL_STATUS_ECL,(0,t.Ky)()),C=(0,t.PH)(e.lr.RESET_ECL_STORE,(0,t.Ky)()),a=(0,t.PH)(e.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,t.Ky)()),M=(0,t.PH)(e.lr.FETCH_PAGE_SETTINGS_ECL),d=(0,t.PH)(e.lr.SET_PAGE_SETTINGS_ECL,(0,t.Ky)()),R=(0,t.PH)(e.lr.SAVE_PAGE_SETTINGS_ECL,(0,t.Ky)()),h=(0,t.PH)(e.lr.FETCH_INFO_ECL,(0,t.Ky)()),I=(0,t.PH)(e.lr.SET_INFO_ECL,(0,t.Ky)()),E=(0,t.PH)(e.lr.FETCH_FEES_ECL),L=(0,t.PH)(e.lr.SET_FEES_ECL,(0,t.Ky)()),T=(0,t.PH)(e.lr.FETCH_CHANNELS_ECL,(0,t.Ky)()),N=(0,t.PH)(e.lr.SET_ACTIVE_CHANNELS_ECL,(0,t.Ky)()),w=(0,t.PH)(e.lr.SET_PENDING_CHANNELS_ECL,(0,t.Ky)()),G=(0,t.PH)(e.lr.SET_INACTIVE_CHANNELS_ECL,(0,t.Ky)()),K=(0,t.PH)(e.lr.FETCH_ONCHAIN_BALANCE_ECL),Q=(0,t.PH)(e.lr.SET_ONCHAIN_BALANCE_ECL,(0,t.Ky)()),re=(0,t.PH)(e.lr.SET_LIGHTNING_BALANCE_ECL,(0,t.Ky)()),ie=(0,t.PH)(e.lr.SET_CHANNELS_STATUS_ECL,(0,t.Ky)()),ce=(0,t.PH)(e.lr.FETCH_PEERS_ECL),ae=(0,t.PH)(e.lr.SET_PEERS_ECL,(0,t.Ky)()),ne=(0,t.PH)(e.lr.SAVE_NEW_PEER_ECL,(0,t.Ky)()),pe=((0,t.PH)(e.lr.NEWLY_ADDED_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.ADD_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.DETACH_PEER_ECL,(0,t.Ky)())),S=(0,t.PH)(e.lr.REMOVE_PEER_ECL,(0,t.Ky)()),i=(0,t.PH)(e.lr.GET_NEW_ADDRESS_ECL),u=((0,t.PH)(e.lr.SET_NEW_ADDRESS_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.SAVE_NEW_CHANNEL_ECL,(0,t.Ky)())),l=(0,t.PH)(e.lr.UPDATE_CHANNEL_ECL,(0,t.Ky)()),y=(0,t.PH)(e.lr.CLOSE_CHANNEL_ECL,(0,t.Ky)()),D=(0,t.PH)(e.lr.REMOVE_CHANNEL_ECL,(0,t.Ky)()),k=(0,t.PH)(e.lr.FETCH_PAYMENTS_ECL),b=(0,t.PH)(e.lr.SET_PAYMENTS_ECL,(0,t.Ky)()),n=(0,t.PH)(e.lr.GET_QUERY_ROUTES_ECL,(0,t.Ky)()),_=(0,t.PH)(e.lr.SET_QUERY_ROUTES_ECL,(0,t.Ky)()),W=(0,t.PH)(e.lr.SEND_PAYMENT_ECL,(0,t.Ky)()),P=(0,t.PH)(e.lr.SEND_PAYMENT_STATUS_ECL,(0,t.Ky)()),U=(0,t.PH)(e.lr.FETCH_TRANSACTIONS_ECL),me=(0,t.PH)(e.lr.SET_TRANSACTIONS_ECL,(0,t.Ky)()),nt=(0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_ECL,(0,t.Ky)()),Oe=((0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.FETCH_INVOICES_ECL)),De=(0,t.PH)(e.lr.SET_INVOICES_ECL,(0,t.Ky)()),ue=(0,t.PH)(e.lr.CREATE_INVOICE_ECL,(0,t.Ky)()),ve=(0,t.PH)(e.lr.ADD_INVOICE_ECL,(0,t.Ky)()),Ie=(0,t.PH)(e.lr.UPDATE_INVOICE_ECL,(0,t.Ky)()),$=(0,t.PH)(e.lr.PEER_LOOKUP_ECL,(0,t.Ky)()),Ge=(0,t.PH)(e.lr.INVOICE_LOOKUP_ECL,(0,t.Ky)()),Ee=((0,t.PH)(e.lr.SET_LOOKUP_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.UPDATE_CHANNEL_STATE_ECL,(0,t.Ky)())),ye=(0,t.PH)(e.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,t.Ky)())},3289:(ke,J,p)=>{"use strict";p.d(J,{o:()=>le});var t=p(493),e=p(7579),f=p(9646),C=p(5577),a=p(2722),M=p(4004),d=p(262),R=p(2340),h=p(1786),I=p(7731),E=p(7861),L=p(7766),T=p(2994),N=p(2501),w=p(4650),G=p(529),K=p(9653),Q=p(5986),re=p(62),ie=p(5043),ce=p(9116),ae=p(7998),ne=p(6895);let le=(()=>{class ee{constructor(S,i,r,u,l,y,D,k,b){this.actions=S,this.httpClient=i,this.store=r,this.sessionService=u,this.commonService=l,this.logger=y,this.router=D,this.wsService=k,this.location=b,this.CHILD_API_URL=R.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchECL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.FETCH_INFO_ECL),(0,C.z)(n=>(this.flgInitialized=!1,this.store.dispatch((0,E.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,E.ac)({payload:I.m6.GET_NODE_INFO})),this.store.dispatch((0,T.QZ)({payload:{action:"FetchInfo",status:I.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(I.pg.SET_SELECTED_NODE))),(0,M.U)(_=>(this.logger.info(_),this.initializeRemainingData(_,n.payload.loadPage),this.store.dispatch((0,T.QZ)({payload:{action:"FetchInfo",status:I.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:I.m6.GET_NODE_INFO})),{type:I.lr.SET_INFO_ECL,payload:_||{}})),(0,d.K)(_=>{const W=this.commonService.extractErrorCode(_),P=503===W?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(_);return this.router.navigate(["/error"],{state:{errorCode:W,errorMessage:P}}),this.handleErrorWithoutAlert("FetchInfo",I.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:W,error:P}),(0,f.of)({type:I.pg.VOID})})))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.FETCH_FEES_ECL),(0,C.z)(()=>(this.store.dispatch((0,T.QZ)({payload:{action:"FetchFees",status:I.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/fees").pipe((0,M.U)(n=>(this.logger.info(n),this.store.dispatch((0,T.QZ)({payload:{action:"FetchFees",status:I.Bn.COMPLETED}})),{type:I.lr.SET_FEES_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchFees",I.m6.NO_SPINNER,"Fetching Fees Failed.",n),(0,f.of)({type:I.pg.VOID})))))))),this.fetchPayments=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.FETCH_PAYMENTS_ECL),(0,C.z)(()=>(this.store.dispatch((0,T.QZ)({payload:{action:"FetchPayments",status:I.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/payments").pipe((0,M.U)(n=>(this.logger.info(n),this.store.dispatch((0,T.QZ)({payload:{action:"FetchPayments",status:I.Bn.COMPLETED}})),{type:I.lr.SET_PAYMENTS_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPayments",I.m6.NO_SPINNER,"Fetching Payments Failed.",n),(0,f.of)({type:I.pg.VOID})))))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.FETCH_CHANNELS_ECL),(0,C.z)(n=>(this.store.dispatch((0,T.QZ)({payload:{action:"FetchChannels",status:I.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API).pipe((0,M.U)(_=>(this.logger.info(_),this.rawChannelsList=_,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,T.QZ)({payload:{action:"FetchChannels",status:I.Bn.COMPLETED}})),n.payload&&n.payload.fetchPayments&&this.store.dispatch((0,T.cQ)()),{type:I.pg.VOID})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchChannels",I.m6.NO_SPINNER,"Fetching Channels Failed.",_),(0,f.of)({type:I.pg.VOID})))))))),this.fetchOnchainBalance=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,C.z)(()=>(this.store.dispatch((0,T.QZ)({payload:{action:"FetchOnchainBalance",status:I.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/balance"))),(0,M.U)(n=>(this.logger.info(n),this.store.dispatch((0,T.QZ)({payload:{action:"FetchOnchainBalance",status:I.Bn.COMPLETED}})),{type:I.lr.SET_ONCHAIN_BALANCE_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchOnchainBalance",I.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",n),(0,f.of)({type:I.pg.VOID}))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.FETCH_PEERS_ECL),(0,C.z)(()=>(this.store.dispatch((0,T.QZ)({payload:{action:"FetchPeers",status:I.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PEERS_API).pipe((0,M.U)(n=>(this.logger.info(n),this.store.dispatch((0,T.QZ)({payload:{action:"FetchPeers",status:I.Bn.COMPLETED}})),{type:I.lr.SET_PEERS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPeers",I.m6.NO_SPINNER,"Fetching Peers Failed.",n),(0,f.of)({type:I.pg.VOID})))))))),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.GET_NEW_ADDRESS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.ac)({payload:I.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API).pipe((0,M.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.uO)({payload:I.m6.GENERATE_NEW_ADDRESS})),{type:I.lr.SET_NEW_ADDRESS_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithAlert("GetNewAddress",I.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+R.NZ.ON_CHAIN_API,n),(0,f.of)({type:I.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.SET_NEW_ADDRESS_ECL),(0,M.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.SAVE_NEW_PEER_ECL),(0,C.z)(n=>(this.store.dispatch((0,E.ac)({payload:I.m6.CONNECT_PEER})),this.store.dispatch((0,T.QZ)({payload:{action:"SaveNewPeer",status:I.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PEERS_API+(n.payload.id.includes("@")?"?uri=":"?nodeId=")+n.payload.id,{}).pipe((0,M.U)(_=>(this.logger.info(_),this.store.dispatch((0,T.QZ)({payload:{action:"SaveNewPeer",status:I.Bn.COMPLETED}})),_=_||[],this.store.dispatch((0,E.uO)({payload:I.m6.CONNECT_PEER})),this.store.dispatch((0,T.Z8)({payload:_})),{type:I.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:_.find(W=>W.nodeId===(n.payload.id.includes("@")?n.payload.id.substring(0,n.payload.id.indexOf("@")):n.payload.id))}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("SaveNewPeer",I.m6.CONNECT_PEER,"Peer Connection Failed.",_),(0,f.of)({type:I.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.DETACH_PEER_ECL),(0,C.z)(n=>(this.store.dispatch((0,E.ac)({payload:I.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.PEERS_API+"/"+n.payload.nodeId).pipe((0,M.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.uO)({payload:I.m6.DISCONNECT_PEER})),this.store.dispatch((0,E.jW)({payload:"Disconnecting Peer!"})),{type:I.lr.REMOVE_PEER_ECL,payload:{nodeId:n.payload.nodeId}})),(0,d.K)(_=>(this.handleErrorWithAlert("DisconnectPeer",I.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+R.NZ.PEERS_API+"/"+n.payload.nodeId,_),(0,f.of)({type:I.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.SAVE_NEW_CHANNEL_ECL),(0,C.z)(n=>{this.store.dispatch((0,E.ac)({payload:I.m6.OPEN_CHANNEL})),this.store.dispatch((0,T.QZ)({payload:{action:"SaveNewChannel",status:I.Bn.INITIATED}}));const _={nodeId:n.payload.nodeId,fundingSatoshis:n.payload.amount,announceChannel:!n.payload.private};return n.payload.feeRate&&n.payload.feeRate>0&&(_.fundingFeerateSatByte=n.payload.feeRate),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API,_).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,T.QZ)({payload:{action:"SaveNewChannel",status:I.Bn.COMPLETED}})),this.store.dispatch((0,T.$W)()),this.store.dispatch((0,T.iL)()),this.store.dispatch((0,E.uO)({payload:I.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.jW)({payload:"Channel Added Successfully!"})),{type:I.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(W=>(this.handleErrorWithoutAlert("SaveNewChannel",I.m6.OPEN_CHANNEL,"Opening Channel Failed.",W),(0,f.of)({type:I.pg.VOID}))))}))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.UPDATE_CHANNEL_ECL),(0,C.z)(n=>{this.store.dispatch((0,E.ac)({payload:I.m6.UPDATE_CHAN_POLICY}));let _="?feeBaseMsat="+n.payload.baseFeeMsat+"&feeProportionalMillionths="+n.payload.feeRate;return _=n.payload.nodeIds?_+"&nodeIds="+n.payload.nodeIds:n.payload.nodeId?_+"&nodeId="+n.payload.nodeId:n.payload.channelIds?_+"&channelIds="+n.payload.channelIds:_+"&channelId="+n.payload.channelId,this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/updateRelayFee"+_,{}).pipe((0,M.U)(W=>(this.logger.info(W),this.store.dispatch((0,E.uO)({payload:I.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,E.jW)(n.payload.nodeIds||n.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:I.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(W=>(this.handleErrorWithAlert("UpdateChannels",I.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API,W),(0,f.of)({type:I.pg.VOID}))))}))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.CLOSE_CHANNEL_ECL),(0,C.z)(n=>(this.store.dispatch((0,E.ac)({payload:n.payload.force?I.m6.FORCE_CLOSE_CHANNEL:I.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.CHANNELS_API+"?channelId="+n.payload.channelId+"&force="+n.payload.force).pipe((0,M.U)(_=>(this.logger.info(_),setTimeout(()=>{this.store.dispatch((0,E.uO)({payload:n.payload.force?I.m6.FORCE_CLOSE_CHANNEL:I.m6.CLOSE_CHANNEL})),this.store.dispatch((0,T.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,E.jW)({payload:n.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:I.pg.VOID})),(0,d.K)(_=>(this.handleErrorWithAlert("CloseChannel",n.payload.force?I.m6.FORCE_CLOSE_CHANNEL:I.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+R.NZ.CHANNELS_API,_),(0,f.of)({type:I.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.GET_QUERY_ROUTES_ECL),(0,C.z)(n=>this.httpClient.get(this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount).pipe((0,M.U)(_=>(this.logger.info(_),{type:I.lr.SET_QUERY_ROUTES_ECL,payload:_})),(0,d.K)(_=>(this.store.dispatch((0,T.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",I.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount,_),(0,f.of)({type:I.pg.VOID}))))))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.SET_QUERY_ROUTES_ECL),(0,M.U)(n=>n.payload)),{dispatch:!1}),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.SEND_PAYMENT_ECL),(0,C.z)(n=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,E.ac)({payload:I.m6.SEND_PAYMENT})),this.store.dispatch((0,T.QZ)({payload:{action:"SendPayment",status:I.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PAYMENTS_API,n.payload).pipe((0,M.U)(_=>(this.logger.info(_),this.latestPaymentRes=_,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:I.pg.VOID})),(0,d.K)(_=>(this.logger.error("Error: "+JSON.stringify(_)),n.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",I.m6.SEND_PAYMENT,"Send Payment Failed.",_):this.handleErrorWithAlert("SendPayment",I.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API,_),(0,f.of)({type:I.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.FETCH_TRANSACTIONS_ECL),(0,C.z)(()=>(this.store.dispatch((0,T.QZ)({payload:{action:"FetchTransactions",status:I.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,M.U)(n=>(this.logger.info(n),this.store.dispatch((0,T.QZ)({payload:{action:"FetchTransactions",status:I.Bn.COMPLETED}})),{type:I.lr.SET_TRANSACTIONS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchTransactions",I.m6.NO_SPINNER,"Fetching Transactions Failed.",n),(0,f.of)({type:I.pg.VOID}))))),this.SendOnchainFunds=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.SEND_ONCHAIN_FUNDS_ECL),(0,C.z)(n=>(this.store.dispatch((0,E.ac)({payload:I.m6.SEND_FUNDS})),this.store.dispatch((0,T.QZ)({payload:{action:"SendOnchainFunds",status:I.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.ON_CHAIN_API,n.payload).pipe((0,M.U)(_=>(this.logger.info(_),this.store.dispatch((0,T.QZ)({payload:{action:"SendOnchainFunds",status:I.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:I.m6.SEND_FUNDS})),this.store.dispatch((0,T.iL)()),{type:I.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithoutAlert("SendOnchainFunds",I.m6.SEND_FUNDS,"Sending Fund Failed.",_),(0,f.of)({type:I.pg.VOID})))))))),this.createInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.CREATE_INVOICE_ECL),(0,C.z)(n=>(this.store.dispatch((0,E.ac)({payload:I.m6.CREATE_INVOICE})),this.store.dispatch((0,T.QZ)({payload:{action:"CreateInvoice",status:I.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.INVOICES_API,n.payload).pipe((0,M.U)(_=>(this.logger.info(_),this.store.dispatch((0,T.QZ)({payload:{action:"CreateInvoice",status:I.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:I.m6.CREATE_INVOICE})),_.timestamp=Math.round((new Date).getTime()/1e3),_.expiresAt=Math.round(_.timestamp+n.payload.expireIn),_.description=n.payload.description,_.status="unpaid",setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{invoice:_,newlyAdded:!0,component:L.R}}}))},200),{type:I.lr.ADD_INVOICE_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithoutAlert("CreateInvoice",I.m6.CREATE_INVOICE,"Create Invoice Failed.",_),(0,f.of)({type:I.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.FETCH_INVOICES_ECL),(0,C.z)(()=>(this.store.dispatch((0,T.QZ)({payload:{action:"FetchInvoices",status:I.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API).pipe((0,M.U)(n=>(this.logger.info(n),this.store.dispatch((0,T.QZ)({payload:{action:"FetchInvoices",status:I.Bn.COMPLETED}})),{type:I.lr.SET_INVOICES_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchInvoices",I.m6.NO_SPINNER,"Fetching Invoices Failed.",n),(0,f.of)({type:I.pg.VOID})))))))),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.PEER_LOOKUP_ECL),(0,C.z)(n=>(this.store.dispatch((0,E.ac)({payload:I.m6.SEARCHING_NODE})),this.store.dispatch((0,T.QZ)({payload:{action:"Lookup",status:I.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+n.payload).pipe((0,M.U)(_=>(this.logger.info(_),this.store.dispatch((0,T.QZ)({payload:{action:"Lookup",status:I.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:I.m6.SEARCHING_NODE})),{type:I.lr.SET_LOOKUP_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithAlert("Lookup",I.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+n.payload,_),(0,f.of)({type:I.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.INVOICE_LOOKUP_ECL),(0,C.z)(n=>(this.store.dispatch((0,E.ac)({payload:I.m6.SEARCHING_INVOICE})),this.store.dispatch((0,T.QZ)({payload:{action:"Lookup",status:I.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"/"+n.payload).pipe((0,M.U)(_=>(this.logger.info(_),this.store.dispatch((0,T.QZ)({payload:{action:"Lookup",status:I.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:I.m6.SEARCHING_INVOICE})),this.store.dispatch((0,T.aL)({payload:_})),{type:I.lr.SET_LOOKUP_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithoutAlert("Lookup",I.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",_),this.store.dispatch((0,E.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:I.pg.VOID})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.SET_LOOKUP_ECL),(0,M.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.FETCH_PAGE_SETTINGS_ECL),(0,C.z)(()=>(this.store.dispatch((0,T.QZ)({payload:{action:"FetchPageSettings",status:I.Bn.INITIATED}})),this.httpClient.get(R.NZ.PAGE_SETTINGS_API).pipe((0,M.U)(n=>(this.logger.info(n),this.store.dispatch((0,T.QZ)({payload:{action:"FetchPageSettings",status:I.Bn.COMPLETED}})),{type:I.lr.SET_PAGE_SETTINGS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPageSettings",I.m6.NO_SPINNER,"Fetching Page Settings Failed.",n),(0,f.of)({type:I.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(I.lr.SAVE_PAGE_SETTINGS_ECL),(0,C.z)(n=>(this.store.dispatch((0,E.ac)({payload:I.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,T.QZ)({payload:{action:"SavePageSettings",status:I.Bn.INITIATED}})),this.httpClient.post(R.NZ.PAGE_SETTINGS_API,n.payload).pipe((0,M.U)(_=>(this.logger.info(_),this.store.dispatch((0,T.QZ)({payload:{action:"SavePageSettings",status:I.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:I.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,E.jW)({payload:"Page Layout Updated Successfully!"})),{type:I.lr.SET_PAGE_SETTINGS_ECL,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithAlert("SavePageSettings",I.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",R.NZ.PAGE_SETTINGS_API,_),(0,f.of)({type:I.pg.VOID})))))))),this.handleSendPaymentStatus=n=>{this.store.dispatch((0,T.QZ)({payload:{action:"SendPayment",status:I.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:I.m6.SEND_PAYMENT})),this.store.dispatch((0,T.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,T.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,E.jW)({payload:n}))},this.store.select(N.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(n=>{n.FetchInfo.status!==I.Bn.COMPLETED&&n.FetchInfo.status!==I.Bn.ERROR||n.FetchFees.status!==I.Bn.COMPLETED&&n.FetchFees.status!==I.Bn.ERROR||n.FetchOnchainBalance.status!==I.Bn.COMPLETED&&n.FetchOnchainBalance.status!==I.Bn.ERROR||n.FetchChannels.status!==I.Bn.COMPLETED&&n.FetchChannels.status!==I.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,E.uO)({payload:I.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(n=>{this.logger.info("Received new message from the service: "+JSON.stringify(n));let _="";if(n)switch(n.type){case I.$v.PAYMENT_SENT:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,_="Payment Sent: "+(n.paymentHash?"with payment hash "+n.paymentHash:JSON.stringify(n)),this.handleSendPaymentStatus(_));break;case I.$v.PAYMENT_FAILED:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,_="Payment Failed: "+(n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].t?n.failures[0].t:n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].e&&n.failures[0].e.failureMessage?n.failures[0].e.failureMessage:JSON.stringify(n)),this.handleSendPaymentStatus(_));break;case I.$v.PAYMENT_RECEIVED:this.store.dispatch((0,T.aL)({payload:n}));break;case I.$v.PAYMENT_RELAYED:delete n.source,this.store.dispatch((0,T.ti)({payload:n}));break;case I.$v.CHANNEL_STATE_CHANGED:"NORMAL"===n.currentState||"CLOSED"===n.currentState?(this.rawChannelsList=this.rawChannelsList?.map(W=>(W.channelId===n.channelId&&W.nodeId===n.remoteNodeId&&(W.state=n.currentState),W)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,T.DJ)({payload:n}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(n))}})}setChannelsAndStatusAndBalances(){let S=0,i=0,r=0,u={localBalance:0,remoteBalance:0},l=[];const y=[],D=[],k={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((b,n)=>{b&&("NORMAL"===b.state?(S=(b.toLocal||0)+(b.toRemote||0),i+=b.toLocal||0,r+=b.toRemote||0,b.balancedness=0===S?1:+(1-Math.abs(((b.toLocal||0)-(b.toRemote||0))/S)).toFixed(3),l.push(b),k.active.channels=k.active.channels+1,k.active.capacity=k.active.capacity+(b.toLocal||0)):b.state?.includes("WAIT")||b.state?.includes("CLOSING")||b.state?.includes("SYNCING")?(b.state=b.state?.replace(/_/g," "),y.push(b),k.pending.channels=k.pending.channels+1,k.pending.capacity=k.pending.capacity+(b.toLocal||0)):(b.state=b.state?.replace(/_/g," "),D.push(b),k.inactive.channels=k.inactive.channels+1,k.inactive.capacity=k.inactive.capacity+(b.toLocal||0)))}),u={localBalance:i,remoteBalance:r},l=this.commonService.sortDescByKey(l,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(l)),this.logger.info("Pending Channels: "+JSON.stringify(y)),this.logger.info("Inactive Channels: "+JSON.stringify(D)),this.logger.info("Lightning Balances: "+JSON.stringify(u)),this.logger.info("Channels Status: "+JSON.stringify(k)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:l,pending:y,inactive:D,balances:u,status:k})),this.store.dispatch((0,T.eN)({payload:l})),this.store.dispatch((0,T.TW)({payload:y})),this.store.dispatch((0,T.i)({payload:D})),this.store.dispatch((0,T.On)({payload:u})),this.store.dispatch((0,T.HG)({payload:k}))}initializeRemainingData(S,i){this.sessionService.setItem("eclUnlocked","true");const r={identity_pubkey:S.nodeId,alias:S.alias,testnet:"testnet"===S.network,chains:S.publicAddresses,uris:S.uris,version:S.version,numberOfPendingChannels:0};this.store.dispatch((0,E.ac)({payload:I.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,E._V)({payload:r}));let u=this.location.path();u.includes("/lnd/")?u=u?.replace("/lnd/","/ecl/"):u.includes("/cln/")&&(u=u?.replace("/cln/","/ecl/")),(u.includes("/login")||u.includes("/error")||""===u||"HOME"===i||u.includes("?access-key="))&&(u="/ecl/home"),this.router.navigate([u]),this.store.dispatch((0,T.wD)()),this.store.dispatch((0,T.WM)()),this.store.dispatch((0,T.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,T.SN)()),this.store.dispatch((0,T.iL)()),this.store.dispatch((0,T.$W)())}handleErrorWithoutAlert(S,i,r,u){this.logger.error("ERROR IN: "+S+"\n"+JSON.stringify(u)),401===u.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,E.uO)({payload:i})),this.store.dispatch((0,T.QZ)({payload:{action:S,status:I.Bn.ERROR,statusCode:u.status.toString(),message:this.commonService.extractErrorMessage(u,r)}})))}handleErrorWithAlert(S,i,r,u,l){if(this.logger.error(l),401===l.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:i}));const y=this.commonService.extractErrorMessage(l);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:l.status,message:y,URL:u},component:h.H}}})),this.store.dispatch((0,T.QZ)({payload:{action:S,status:I.Bn.ERROR,statusCode:l.status.toString(),message:y,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(S=>{S.next(null),S.complete()})}}return ee.\u0275fac=function(S){return new(S||ee)(w.LFG(t.eX),w.LFG(G.eN),w.LFG(K.yh),w.LFG(Q.m),w.LFG(re.v),w.LFG(ie.mQ),w.LFG(ce.F0),w.LFG(ae.d),w.LFG(ne.Ye))},ee.\u0275prov=w.Yz7({token:ee,factory:ee.\u0275fac}),ee})()},2501:(ke,J,p)=>{"use strict";p.d(J,{Bo:()=>N,Ef:()=>T,JG:()=>I,LR:()=>f,PP:()=>h,T$:()=>M,Xz:()=>E,dx:()=>L,kY:()=>w,nF:()=>C,yA:()=>R,yD:()=>a});var t=p(9653);const e=(0,t.ZF)("ecl"),f=(0,t.P1)(e,G=>G.nodeSettings),C=(0,t.P1)(e,G=>({pageSettings:G.pageSettings,apiCallStatus:G.apisCallStatus.FetchPageSettings})),a=(0,t.P1)(e,G=>G.information),M=(0,t.P1)(e,G=>({information:G.information,apiCallStatus:G.apisCallStatus.FetchInfo})),R=((0,t.P1)(e,G=>G.apisCallStatus.FetchInfo),(0,t.P1)(e,G=>G.apisCallStatus)),h=(0,t.P1)(e,G=>({payments:G.payments,apiCallStatus:G.apisCallStatus.FetchPayments})),I=(0,t.P1)(e,G=>({fees:G.fees,apiCallStatus:G.apisCallStatus.FetchFees})),E=(0,t.P1)(e,G=>({activeChannels:G.activeChannels,pendingChannels:G.pendingChannels,inactiveChannels:G.inactiveChannels,lightningBalance:G.lightningBalance,channelsStatus:G.channelsStatus,apiCallStatus:G.apisCallStatus.FetchChannels})),L=(0,t.P1)(e,G=>({transactions:G.transactions,apiCallStatus:G.apisCallStatus.FetchTransactions})),T=(0,t.P1)(e,G=>({invoices:G.invoices,apiCallStatus:G.apisCallStatus.FetchInvoices})),N=(0,t.P1)(e,G=>({peers:G.peers,apiCallStatus:G.apisCallStatus.FetchPeers})),w=(0,t.P1)(e,G=>({onchainBalance:G.onchainBalance,apiCallStatus:G.apisCallStatus.FetchOnchainBalance}))},7766:(ke,J,p)=>{"use strict";p.d(J,{R:()=>De});var t=p(5412),e=p(2687),f=p(7579),C=p(2722),a=p(7731),M=p(2501),d=p(4650),R=p(5043),h=p(62),I=p(7009),E=p(9653),L=p(6895),T=p(2216),N=p(1576),w=p(5829),G=p(4859),K=p(3546),Q=p(4850),re=p(1572),ie=p(658),ce=p(5199),ae=p(3390);function ne(ue,ve){if(1&ue&&d._UZ(0,"qr-code",29),2&ue){const Ie=d.oxw();d.Q6J("value",null==Ie.invoice?null:Ie.invoice.serialized)("size",Ie.qrWidth)("errorCorrectionLevel","L")}}function le(ue,ve){1&ue&&(d.TgZ(0,"span",30),d._uU(1,"N/A"),d.qZA())}function ee(ue,ve){if(1&ue&&d._UZ(0,"qr-code",29),2&ue){const Ie=d.oxw();d.Q6J("value",null==Ie.invoice?null:Ie.invoice.serialized)("size",Ie.qrWidth)("errorCorrectionLevel","L")}}function pe(ue,ve){1&ue&&(d.TgZ(0,"span",31),d._uU(1,"QR Code Not Applicable"),d.qZA())}function S(ue,ve){1&ue&&d._UZ(0,"mat-divider",32),2&ue&&d.Q6J("inset",!0)}function i(ue,ve){1&ue&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function r(ue,ve){1&ue&&d._UZ(0,"span",38)}const u=function(){return[]};function l(ue,ve){if(1&ue&&(d.TgZ(0,"div",34)(1,"div",35)(2,"span",36),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,r,1,0,"span",37),d.qZA()()),2&ue){const Ie=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,null==Ie.invoice?null:Ie.invoice.amountSettled)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,u).constructor(35))}}function y(ue,ve){if(1&ue&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&ue){const Ie=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,null==Ie.invoice?null:Ie.invoice.amountSettled)," Sats")}}function D(ue,ve){if(1&ue&&(d.ynx(0),d.YNc(1,l,6,5,"div",33),d.YNc(2,y,3,3,"div",19),d.BQk()),2&ue){const Ie=d.oxw();d.xp6(1),d.Q6J("ngIf",Ie.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!Ie.flgInvoicePaid)}}function k(ue,ve){1&ue&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function b(ue,ve){1&ue&&d._UZ(0,"mat-spinner",40),2&ue&&d.Q6J("diameter",20)}function n(ue,ve){if(1&ue&&(d.ynx(0),d.YNc(1,k,2,0,"span",19),d.YNc(2,b,1,1,"mat-spinner",39),d.BQk()),2&ue){const Ie=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==Ie.invoice?null:Ie.invoice.status)||!Ie.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==Ie.invoice?null:Ie.invoice.status)&&Ie.flgVersionCompatible)}}function _(ue,ve){if(1&ue&&(d.TgZ(0,"div"),d._UZ(1,"mat-divider",20),d.TgZ(2,"div",15)(3,"div",41)(4,"h4",17),d._uU(5,"Date Expiry"),d.qZA(),d.TgZ(6,"span",18),d._uU(7),d.ALo(8,"date"),d.qZA()(),d.TgZ(9,"div",42)(10,"h4",17),d._uU(11,"Date Settled"),d.qZA(),d.TgZ(12,"span",21),d._uU(13),d.ALo(14,"date"),d.qZA()()(),d._UZ(15,"mat-divider",20),d.TgZ(16,"div",15)(17,"div",22)(18,"h4",17),d._uU(19,"Payment Hash"),d.qZA(),d.TgZ(20,"span",21),d._uU(21),d.qZA()()(),d._UZ(22,"mat-divider",20),d.TgZ(23,"div",15)(24,"div",22)(25,"h4",17),d._uU(26,"Node ID"),d.qZA(),d.TgZ(27,"span",21),d._uU(28),d.qZA()()(),d._UZ(29,"mat-divider",20),d.qZA()),2&ue){const Ie=d.oxw();d.xp6(7),d.Oqu(d.xi3(8,4,1e3*(null==Ie.invoice?null:Ie.invoice.expiresAt),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.xi3(14,7,1e3*(null==Ie.invoice?null:Ie.invoice.receivedAt),"dd/MMM/y HH:mm")),d.xp6(8),d.Oqu(null==Ie.invoice?null:Ie.invoice.paymentHash),d.xp6(7),d.Oqu(null==Ie.invoice?null:Ie.invoice.nodeId)}}function W(ue,ve){1&ue&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function P(ue,ve){1&ue&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function U(ue,ve){if(1&ue){const Ie=d.EpF();d.TgZ(0,"button",43),d.NdJ("copied",function(Ge){d.CHM(Ie);const ut=d.oxw();return d.KtG(ut.onCopyPayment(Ge))}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&ue){const Ie=d.oxw();d.Q6J("payload",null==Ie.invoice?null:Ie.invoice.serialized)}}function me(ue,ve){if(1&ue){const Ie=d.EpF();d.TgZ(0,"button",44),d.NdJ("click",function(){d.CHM(Ie);const Ge=d.oxw();return d.KtG(Ge.onClose())}),d._uU(1,"OK"),d.qZA()}}const nt=function(ue){return{"display-none":ue}},Pe=function(ue){return{"xs-scroll-y":ue}},Oe=function(ue,ve){return{"mt-2":ue,"mt-1":ve}};let De=(()=>{class ue{constructor(Ie,$,Ge,ut,Ee,ye){this.dialogRef=Ie,this.data=$,this.logger=Ge,this.commonService=ut,this.snackBar=Ee,this.store=ye,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(M.yD).pipe((0,C.R)(this.unSubs[0])).subscribe(Ie=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Ie.version,"0.5.0")}),this.store.select(M.Ef).pipe((0,C.R)(this.unSubs[1])).subscribe(Ie=>{const $=this.invoice.status,ut=(Ie.invoices&&Ie.invoices.length>0?Ie.invoices:[])?.find(Ee=>Ee.paymentHash===this.invoice.paymentHash)||null;ut&&(this.invoice=ut),$!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Ie)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(Ie){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+Ie)}ngOnDestroy(){this.unSubs.forEach(Ie=>{Ie.next(null),Ie.complete()})}}return ue.\u0275fac=function(Ie){return new(Ie||ue)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(I.ux),d.Y36(E.yh))},ue.\u0275cmp=d.Xpm({type:ue,selectors:[["rtl-ecl-invoice-information"]],decls:68,vars:42,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","40"],["fxFlex","60"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Ie,$){if(1&Ie&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,ne,1,3,"qr-code",2),d.YNc(3,le,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return $.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,ee,1,3,"qr-code",2),d.YNc(16,pe,2,0,"span",13),d.qZA(),d.YNc(17,S,1,1,"mat-divider",14),d.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),d._uU(21,"Amount Requested"),d.qZA(),d.TgZ(22,"span",18),d._uU(23),d.ALo(24,"number"),d.YNc(25,i,2,0,"ng-container",19),d.qZA()(),d.TgZ(26,"div",16)(27,"h4",17),d._uU(28,"Amount Settled"),d.qZA(),d.TgZ(29,"span",18),d.YNc(30,D,3,2,"ng-container",19),d.YNc(31,n,3,2,"ng-container",19),d.qZA()()(),d._UZ(32,"mat-divider",20),d.TgZ(33,"div",15)(34,"div",16)(35,"h4",17),d._uU(36,"Date Created"),d.qZA(),d.TgZ(37,"span",21),d._uU(38),d.ALo(39,"date"),d.qZA()(),d.TgZ(40,"div",16)(41,"h4",17),d._uU(42,"Status"),d.qZA(),d.TgZ(43,"span",21),d._uU(44),d.ALo(45,"titlecase"),d.qZA()()(),d._UZ(46,"mat-divider",20),d.TgZ(47,"div",15)(48,"div",22)(49,"h4",17),d._uU(50,"Description"),d.qZA(),d.TgZ(51,"span",18),d._uU(52),d.qZA()()(),d._UZ(53,"mat-divider",20),d.TgZ(54,"div",15)(55,"div",22)(56,"h4",17),d._uU(57,"Invoice"),d.qZA(),d.TgZ(58,"span",21),d._uU(59),d.qZA()()(),d.YNc(60,_,30,10,"div",19),d.TgZ(61,"div",23)(62,"button",24),d.NdJ("click",function(){return $.onShowAdvanced()}),d.YNc(63,W,2,0,"p",25),d.YNc(64,P,2,0,"ng-template",null,26,d.W1O),d.qZA(),d.YNc(66,U,2,1,"button",27),d.YNc(67,me,2,0,"button",28),d.qZA()()()()()),2&Ie){const Ge=d.MAs(65);d.xp6(1),d.Q6J("fxLayoutAlign",null!=$.invoice&&$.invoice.serialized&&""!==(null==$.invoice?null:$.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(33,nt,$.screenSize===$.screenSizeEnum.XS||$.screenSize===$.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==$.invoice?null:$.invoice.serialized)&&""!==(null==$.invoice?null:$.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=$.invoice&&$.invoice.serialized)||""===(null==$.invoice?null:$.invoice.serialized)),d.xp6(4),d.Q6J("icon",$.faReceipt),d.xp6(2),d.Oqu($.screenSize===$.screenSizeEnum.XS?$.newlyAdded?"Created":"Invoice":$.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(35,Pe,$.screenSize===$.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=$.invoice&&$.invoice.serialized&&""!==(null==$.invoice?null:$.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(37,nt,$.screenSize!==$.screenSizeEnum.XS&&$.screenSize!==$.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==$.invoice?null:$.invoice.serialized)&&""!==(null==$.invoice?null:$.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=$.invoice&&$.invoice.serialized)||""===(null==$.invoice?null:$.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",$.screenSize===$.screenSizeEnum.XS||$.screenSize===$.screenSizeEnum.SM),d.xp6(6),d.hij("",d.lcZ(24,26,(null==$.invoice?null:$.invoice.amount)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=$.invoice&&$.invoice.amount)||"0"===(null==$.invoice?null:$.invoice.amount)),d.xp6(5),d.Q6J("ngIf",null==$.invoice?null:$.invoice.amountSettled),d.xp6(1),d.Q6J("ngIf",!(null!=$.invoice&&$.invoice.amountSettled)),d.xp6(7),d.Oqu(d.xi3(39,28,1e3*(null==$.invoice?null:$.invoice.timestamp),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.lcZ(45,31,null==$.invoice?null:$.invoice.status)),d.xp6(8),d.Oqu((null==$.invoice?null:$.invoice.description)||"-"),d.xp6(7),d.Oqu((null==$.invoice?null:$.invoice.serialized)||"N/A"),d.xp6(1),d.Q6J("ngIf",$.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(39,Oe,!$.showAdvanced,$.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!$.showAdvanced)("ngIfElse",Ge),d.xp6(3),d.Q6J("ngIf",(null==$.invoice?null:$.invoice.serialized)&&""!==(null==$.invoice?null:$.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=$.invoice&&$.invoice.serialized)||""===(null==$.invoice?null:$.invoice.serialized))}},dependencies:[L.mk,L.sg,L.O5,T.BN,N.xw,N.Wh,N.yH,w.oO,G.lW,K.dk,K.dn,Q.d,re.Ou,ie.uU,ce.y,ae.h,L.JJ,L.rS,L.uU]}),ue})()},6523:(ke,J,p)=>{"use strict";p.d(J,{$A:()=>hi,$W:()=>E,BL:()=>k,B_:()=>me,Bl:()=>ae,CX:()=>I,Cp:()=>_,EK:()=>G,El:()=>T,Fr:()=>Ve,HI:()=>ye,JT:()=>a,Jl:()=>ne,Jo:()=>ze,Lf:()=>$,Ll:()=>C,Ly:()=>Ge,Nr:()=>De,OG:()=>b,PC:()=>f,QJ:()=>Ct,RX:()=>ce,Rd:()=>K,Rv:()=>le,SN:()=>ie,Sf:()=>jt,TW:()=>r,UH:()=>ut,UR:()=>pe,Vv:()=>n,WM:()=>Oe,WO:()=>At,Wi:()=>Se,YP:()=>re,YX:()=>D,Z7:()=>i,Z8:()=>L,Zh:()=>u,_E:()=>j,_L:()=>l,aL:()=>ue,as:()=>S,cQ:()=>Ee,dV:()=>we,eF:()=>R,fu:()=>Ye,kL:()=>dt,ks:()=>ee,mC:()=>Ie,n7:()=>yt,oV:()=>he,pW:()=>y,pd:()=>d,qY:()=>ve,sQ:()=>h,tb:()=>U,u0:()=>vt,vV:()=>nt,wD:()=>M,xG:()=>Rt,y2:()=>gt,yZ:()=>Pt,z:()=>w});var t=p(9653),e=p(7731);const f=(0,t.PH)(e.uR.UPDATE_API_CALL_STATUS_LND,(0,t.Ky)()),C=(0,t.PH)(e.uR.RESET_LND_STORE,(0,t.Ky)()),a=(0,t.PH)(e.uR.SET_CHILD_NODE_SETTINGS_LND,(0,t.Ky)()),M=(0,t.PH)(e.uR.FETCH_PAGE_SETTINGS_LND),d=(0,t.PH)(e.uR.SET_PAGE_SETTINGS_LND,(0,t.Ky)()),R=(0,t.PH)(e.uR.SAVE_PAGE_SETTINGS_LND,(0,t.Ky)()),h=(0,t.PH)(e.uR.FETCH_INFO_LND,(0,t.Ky)()),I=(0,t.PH)(e.uR.SET_INFO_LND,(0,t.Ky)()),E=(0,t.PH)(e.uR.FETCH_PEERS_LND),L=(0,t.PH)(e.uR.SET_PEERS_LND,(0,t.Ky)()),T=(0,t.PH)(e.uR.SAVE_NEW_PEER_LND,(0,t.Ky)()),w=((0,t.PH)(e.uR.NEWLY_ADDED_PEER_LND,(0,t.Ky)()),(0,t.PH)(e.uR.DETACH_PEER_LND,(0,t.Ky)())),G=(0,t.PH)(e.uR.REMOVE_PEER_LND,(0,t.Ky)()),K=(0,t.PH)(e.uR.SAVE_NEW_INVOICE_LND,(0,t.Ky)()),re=((0,t.PH)(e.uR.NEWLY_SAVED_INVOICE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.ADD_INVOICE_LND,(0,t.Ky)())),ie=(0,t.PH)(e.uR.FETCH_FEES_LND),ce=(0,t.PH)(e.uR.SET_FEES_LND,(0,t.Ky)()),ae=(0,t.PH)(e.uR.FETCH_BLOCKCHAIN_BALANCE_LND),ne=(0,t.PH)(e.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,t.Ky)()),le=(0,t.PH)(e.uR.FETCH_NETWORK_LND),ee=(0,t.PH)(e.uR.SET_NETWORK_LND,(0,t.Ky)()),pe=(0,t.PH)(e.uR.FETCH_CHANNELS_LND),S=(0,t.PH)(e.uR.SET_CHANNELS_LND,(0,t.Ky)()),i=(0,t.PH)(e.uR.FETCH_PENDING_CHANNELS_LND),r=(0,t.PH)(e.uR.SET_PENDING_CHANNELS_LND,(0,t.Ky)()),u=(0,t.PH)(e.uR.FETCH_CLOSED_CHANNELS_LND),l=(0,t.PH)(e.uR.SET_CLOSED_CHANNELS_LND,(0,t.Ky)()),y=(0,t.PH)(e.uR.UPDATE_CHANNEL_LND,(0,t.Ky)()),D=(0,t.PH)(e.uR.SAVE_NEW_CHANNEL_LND,(0,t.Ky)()),k=(0,t.PH)(e.uR.CLOSE_CHANNEL_LND,(0,t.Ky)()),b=(0,t.PH)(e.uR.REMOVE_CHANNEL_LND,(0,t.Ky)()),n=(0,t.PH)(e.uR.BACKUP_CHANNELS_LND,(0,t.Ky)()),_=(0,t.PH)(e.uR.VERIFY_CHANNEL_LND,(0,t.Ky)()),U=((0,t.PH)(e.uR.BACKUP_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.VERIFY_CHANNEL_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.RESTORE_CHANNELS_LIST_LND)),me=(0,t.PH)(e.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,t.Ky)()),nt=(0,t.PH)(e.uR.RESTORE_CHANNELS_LND,(0,t.Ky)()),Oe=((0,t.PH)(e.uR.RESTORE_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_INVOICES_LND,(0,t.Ky)())),De=(0,t.PH)(e.uR.SET_INVOICES_LND,(0,t.Ky)()),ue=(0,t.PH)(e.uR.UPDATE_INVOICE_LND,(0,t.Ky)()),ve=(0,t.PH)(e.uR.UPDATE_PAYMENT_LND,(0,t.Ky)()),Ie=(0,t.PH)(e.uR.FETCH_TRANSACTIONS_LND),$=(0,t.PH)(e.uR.SET_TRANSACTIONS_LND,(0,t.Ky)()),Ge=(0,t.PH)(e.uR.FETCH_UTXOS_LND),ut=(0,t.PH)(e.uR.SET_UTXOS_LND,(0,t.Ky)()),Ee=(0,t.PH)(e.uR.FETCH_PAYMENTS_LND,(0,t.Ky)()),ye=(0,t.PH)(e.uR.SET_PAYMENTS_LND,(0,t.Ky)()),he=(0,t.PH)(e.uR.SEND_PAYMENT_LND,(0,t.Ky)()),we=((0,t.PH)(e.uR.SEND_PAYMENT_STATUS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_GRAPH_NODE_LND,(0,t.Ky)())),j=((0,t.PH)(e.uR.SET_GRAPH_NODE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_NEW_ADDRESS_LND,(0,t.Ky)())),Se=((0,t.PH)(e.uR.SET_NEW_ADDRESS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_LND,(0,t.Ky)())),Ye=((0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GEN_SEED_LND,(0,t.Ky)())),gt=((0,t.PH)(e.uR.GEN_SEED_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.INIT_WALLET_LND,(0,t.Ky)())),Rt=((0,t.PH)(e.uR.INIT_WALLET_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.UNLOCK_WALLET_LND,(0,t.Ky)())),jt=(0,t.PH)(e.uR.PEER_LOOKUP_LND,(0,t.Ky)()),hi=(0,t.PH)(e.uR.CHANNEL_LOOKUP_LND,(0,t.Ky)()),yt=(0,t.PH)(e.uR.INVOICE_LOOKUP_LND,(0,t.Ky)()),Pt=(0,t.PH)(e.uR.PAYMENT_LOOKUP_LND,(0,t.Ky)()),vt=((0,t.PH)(e.uR.SET_LOOKUP_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_FORWARDING_HISTORY_LND,(0,t.Ky)())),Ct=(0,t.PH)(e.uR.SET_FORWARDING_HISTORY_LND,(0,t.Ky)()),At=(0,t.PH)(e.uR.GET_QUERY_ROUTES_LND,(0,t.Ky)()),dt=(0,t.PH)(e.uR.SET_QUERY_ROUTES_LND,(0,t.Ky)()),ze=(0,t.PH)(e.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),Ve=(0,t.PH)(e.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,t.Ky)())},711:(ke,J,p)=>{"use strict";p.d(J,{l:()=>pe});var t=p(493),e=p(7579),f=p(9646),C=p(5577),a=p(2722),M=p(4004),d=p(262),R=p(1365),h=p(2340),I=p(8627),E=p(1786),L=p(7731),T=p(7861),N=p(6523),w=p(6529),G=p(4650),K=p(529),Q=p(9653),re=p(5043),ie=p(62),ce=p(5986),ae=p(5412),ne=p(9116),le=p(7998),ee=p(6895);let pe=(()=>{class S{constructor(r,u,l,y,D,k,b,n,_,W){this.actions=r,this.httpClient=u,this.store=l,this.logger=y,this.commonService=D,this.sessionService=k,this.dialog=b,this.router=n,this.wsService=_,this.location=W,this.CHILD_API_URL=h.T5+"/lnd",this.invoicesPageSize=L.IV,this.paymentsPageSize=L.IV,this.flgInitialized=!1,this.unSubs=[new e.x,new e.x],this.infoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.FETCH_INFO_LND),(0,C.z)(P=>(this.flgInitialized=!1,this.store.dispatch((0,T.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,T.ts)()),this.store.dispatch((0,T.ac)({payload:L.m6.GET_NODE_INFO})),this.store.dispatch((0,N.PC)({payload:{action:"FetchInfo",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(L.pg.SET_SELECTED_NODE))),(0,M.U)(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,N.PC)({payload:{action:"FetchInfo",status:L.Bn.COMPLETED}})),this.store.dispatch((0,T.ts)()),this.store.dispatch((0,T.qR)({payload:{data:{type:L.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:L.pg.LOGOUT}):U.identity_pubkey?(U.lnImplementation="LND",this.initializeRemainingData(U,P.payload.loadPage),this.store.dispatch((0,N.PC)({payload:{action:"FetchInfo",status:L.Bn.COMPLETED}})),this.store.dispatch((0,T.ts)()),{type:L.uR.SET_INFO_LND,payload:U||{}}):(this.store.dispatch((0,N.PC)({payload:{action:"FetchInfo",status:L.Bn.COMPLETED}})),this.store.dispatch((0,T.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:L.uR.SET_INFO_LND,payload:{}}))),(0,d.K)(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",L.m6.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,N.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const me=this.commonService.extractErrorCode(U),nt=503===me?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(U);this.router.navigate(["/error"],{state:{errorCode:me,errorMessage:nt}}),this.handleErrorWithoutAlert("FetchInfo",L.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:me,error:nt})}return(0,f.of)({type:L.pg.VOID})})))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.FETCH_PEERS_LND),(0,C.z)(()=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchPeers",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PEERS_API).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,N.PC)({payload:{action:"FetchPeers",status:L.Bn.COMPLETED}})),{type:L.uR.SET_PEERS_LND,payload:P||[]})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchPeers",L.m6.NO_SPINNER,"Fetching Peers Failed.",P),(0,f.of)({type:L.pg.VOID})))))))),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.SAVE_NEW_PEER_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,N.PC)({payload:{action:"SaveNewPeer",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.PEERS_API,{pubkey:P.payload.pubkey,host:P.payload.host,perm:P.payload.perm}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,N.PC)({payload:{action:"SaveNewPeer",status:L.Bn.COMPLETED}})),this.store.dispatch((0,T.uO)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,N.Z8)({payload:U||[]})),{type:L.uR.NEWLY_ADDED_PEER_LND,payload:{peer:U[0]}})),(0,d.K)(U=>(this.handleErrorWithoutAlert("SaveNewPeer",L.m6.CONNECT_PEER,"Peer Connection Failed.",U),(0,f.of)({type:L.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.DETACH_PEER_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+h.NZ.PEERS_API+"/"+P.payload.pubkey).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,T.uO)({payload:L.m6.DISCONNECT_PEER})),this.store.dispatch((0,T.jW)({payload:"Peer Disconnected Successfully."})),{type:L.uR.REMOVE_PEER_LND,payload:{pubkey:P.payload.pubkey}})),(0,d.K)(U=>(this.handleErrorWithAlert("DetachPeer",L.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+h.NZ.PEERS_API+"/"+P.payload.pubkey,U),(0,f.of)({type:L.pg.VOID})))))))),this.saveNewInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.SAVE_NEW_INVOICE_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:P.payload.uiMessage})),this.store.dispatch((0,N.PC)({payload:{action:"SaveNewInvoice",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.INVOICES_API,{memo:P.payload.memo,value:P.payload.value,private:P.payload.private,expiry:P.payload.expiry,is_amp:P.payload.is_amp}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,N.PC)({payload:{action:"SaveNewInvoice",status:L.Bn.COMPLETED}})),this.store.dispatch((0,N.WM)({payload:{num_max_invoices:P.payload.pageSize,reversed:!0}})),P.payload.openModal?(U.memo=P.payload.memo,U.value=P.payload.value,U.expiry=P.payload.expiry,U.private=P.payload.private,U.is_amp=P.payload.is_amp,U.cltv_expiry="144",U.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,T.qR)({payload:{data:{invoice:U,newlyAdded:!0,component:I.v}}}))},200),{type:L.pg.CLOSE_SPINNER,payload:P.payload.uiMessage}):{type:L.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:U.payment_request}})),(0,d.K)(U=>(this.handleErrorWithoutAlert("SaveNewInvoice",P.payload.uiMessage,"Add Invoice Failed.",U),(0,f.of)({type:L.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.SAVE_NEW_CHANNEL_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,N.PC)({payload:{action:"SaveNewChannel",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API,{node_pubkey:P.payload.selectedPeerPubkey,local_funding_amount:P.payload.fundingAmount,private:P.payload.private,trans_type:P.payload.transType,trans_type_value:P.payload.transTypeValue,spend_unconfirmed:P.payload.spendUnconfirmed}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,N.PC)({payload:{action:"SaveNewChannel",status:L.Bn.COMPLETED}})),this.store.dispatch((0,T.uO)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,N.Bl)()),this.store.dispatch((0,N.UR)()),this.store.dispatch((0,N.Vv)({payload:{uiMessage:L.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:L.uR.FETCH_PENDING_CHANNELS_LND})),(0,d.K)(U=>(this.handleErrorWithoutAlert("SaveNewChannel",L.m6.OPEN_CHANNEL,"Opening Channel Failed.",U),(0,f.of)({type:L.pg.VOID})))))))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.UPDATE_CHANNEL_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:P.payload.baseFeeMsat,feeRate:P.payload.feeRate,timeLockDelta:P.payload.timeLockDelta,max_htlc_msat:P.payload.maxHtlcMsat,min_htlc_msat:P.payload.minHtlcMsat,chanPoint:P.payload.chanPoint}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,T.uO)({payload:L.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,T.jW)("all"===P.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:L.uR.FETCH_CHANNELS_LND})),(0,d.K)(U=>(this.handleErrorWithAlert("UpdateChannels",L.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/chanPolicy",U),(0,f.of)({type:L.pg.VOID})))))))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.CLOSE_CHANNEL_LND),(0,C.z)(P=>{this.store.dispatch((0,T.ac)({payload:P.payload.forcibly?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL}));let U=this.CHILD_API_URL+h.NZ.CHANNELS_API+"/"+P.payload.channelPoint+"?force="+P.payload.forcibly;return P.payload.targetConf&&(U=U+"&target_conf="+P.payload.targetConf),P.payload.satPerByte&&(U=U+"&sat_per_byte="+P.payload.satPerByte),this.httpClient.delete(U).pipe((0,M.U)(me=>(this.logger.info(me),this.store.dispatch((0,T.uO)({payload:P.payload.forcibly?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.store.dispatch((0,N.UR)()),this.store.dispatch((0,N.Z7)()),this.store.dispatch((0,N.Vv)({payload:{uiMessage:L.m6.NO_SPINNER,channelPoint:"ALL",showMessage:me.message}})),{type:L.pg.VOID})),(0,d.K)(me=>(this.handleErrorWithAlert("CloseChannel",P.payload.forcibly?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/"+P.payload.channelPoint+"?force="+P.payload.forcibly,me),(0,f.of)({type:L.pg.VOID}))))}))),this.backupChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.BACKUP_CHANNELS_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:P.payload.uiMessage})),this.store.dispatch((0,N.PC)({payload:{action:"BackupChannels",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/"+P.payload.channelPoint).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,N.PC)({payload:{action:"BackupChannels",status:L.Bn.COMPLETED}})),this.store.dispatch((0,T.uO)({payload:P.payload.uiMessage})),this.store.dispatch((0,T.jW)({payload:P.payload.showMessage+" "+U.message})),{type:L.uR.BACKUP_CHANNELS_RES_LND,payload:U.message})),(0,d.K)(U=>(this.handleErrorWithAlert("BackupChannels",P.payload.uiMessage,P.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/"+P.payload.channelPoint,U),(0,f.of)({type:L.pg.VOID})))))))),this.verifyChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.VERIFY_CHANNEL_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.VERIFY_CHANNEL})),this.store.dispatch((0,N.PC)({payload:{action:"VerifyChannel",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/verify/"+P.payload.channelPoint,{}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,N.PC)({payload:{action:"VerifyChannel",status:L.Bn.COMPLETED}})),this.store.dispatch((0,T.uO)({payload:L.m6.VERIFY_CHANNEL})),this.store.dispatch((0,T.jW)({payload:U.message})),{type:L.uR.VERIFY_CHANNEL_RES_LND,payload:U.message})),(0,d.K)(U=>(this.handleErrorWithAlert("VerifyChannel",L.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/verify/"+P.payload.channelPoint,U),(0,f.of)({type:L.pg.VOID})))))))),this.restoreChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.RESTORE_CHANNELS_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.RESTORE_CHANNEL})),this.store.dispatch((0,N.PC)({payload:{action:"RestoreChannels",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/"+P.payload.channelPoint,{}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,N.PC)({payload:{action:"RestoreChannels",status:L.Bn.COMPLETED}})),this.store.dispatch((0,T.uO)({payload:L.m6.RESTORE_CHANNEL})),this.store.dispatch((0,T.jW)({payload:U.message})),this.store.dispatch((0,N.B_)({payload:U.list})),{type:L.uR.RESTORE_CHANNELS_RES_LND,payload:U.message})),(0,d.K)(U=>(this.handleErrorWithAlert("RestoreChannels",L.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/"+P.payload.channelPoint,U),(0,f.of)({type:L.pg.VOID})))))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.FETCH_FEES_LND),(0,C.z)(()=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchFees",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.FEES_API))),(0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,N.PC)({payload:{action:"FetchFees",status:L.Bn.COMPLETED}})),P.forwarding_events_history&&(this.store.dispatch((0,N.QJ)({payload:P.forwarding_events_history})),delete P.forwarding_events_history),{type:L.uR.SET_FEES_LND,payload:P||{}})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchFees",L.m6.NO_SPINNER,"Fetching Fees Failed.",P),(0,f.of)({type:L.pg.VOID}))))),this.balanceBlockchainFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,C.z)(()=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchBalance",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.BALANCE_API))),(0,M.U)(P=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchBalance",status:L.Bn.COMPLETED}})),this.logger.info(P),{type:L.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:P||{total_balance:""}})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchBalance",L.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",P),(0,f.of)({type:L.pg.VOID}))))),this.networkInfoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.FETCH_NETWORK_LND),(0,C.z)(()=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchNetwork",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/info"))),(0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,N.PC)({payload:{action:"FetchNetwork",status:L.Bn.COMPLETED}})),{type:L.uR.SET_NETWORK_LND,payload:P||{}})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchNetwork",L.m6.NO_SPINNER,"Fetching Network Failed.",P),(0,f.of)({type:L.pg.VOID}))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.FETCH_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchChannels",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,N.PC)({payload:{action:"FetchChannels",status:L.Bn.COMPLETED}})),{type:L.uR.SET_CHANNELS_LND,payload:P.channels||[]})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchChannels",L.m6.NO_SPINNER,"Fetching Channels Failed.",P),(0,f.of)({type:L.pg.VOID})))))))),this.channelsPendingFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.FETCH_PENDING_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchPendingChannels",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/pending").pipe((0,M.U)(P=>{this.logger.info(P),this.store.dispatch((0,N.PC)({payload:{action:"FetchPendingChannels",status:L.Bn.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 P&&(U.total_limbo_balance=P.total_limbo_balance,P.pending_closing_channels&&(U.closing.num_channels=P.pending_closing_channels.length,U.total_channels=U.total_channels+P.pending_closing_channels.length,P.pending_closing_channels.forEach(me=>{U.closing.limbo_balance=+U.closing.limbo_balance+(me.channel.local_balance?+me.channel.local_balance:0)})),P.pending_force_closing_channels&&(U.force_closing.num_channels=P.pending_force_closing_channels.length,U.total_channels=U.total_channels+P.pending_force_closing_channels.length,P.pending_force_closing_channels.forEach(me=>{U.force_closing.limbo_balance=+U.force_closing.limbo_balance+(me.channel.local_balance?+me.channel.local_balance:0)})),P.pending_open_channels&&(U.open.num_channels=P.pending_open_channels.length,U.total_channels=U.total_channels+P.pending_open_channels.length,P.pending_open_channels.forEach(me=>{U.open.limbo_balance=+U.open.limbo_balance+(me.channel.local_balance?+me.channel.local_balance:0)})),P.waiting_close_channels&&(U.waiting_close.num_channels=P.waiting_close_channels.length,U.total_channels=U.total_channels+P.waiting_close_channels.length,P.waiting_close_channels.forEach(me=>{U.waiting_close.limbo_balance=+U.waiting_close.limbo_balance+(me.channel.local_balance?+me.channel.local_balance:0)}))),{type:L.uR.SET_PENDING_CHANNELS_LND,payload:P?{pendingChannels:P,pendingChannelsSummary:U}:{pendingChannels:{},pendingChannelsSummary:U}}}),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchPendingChannels",L.m6.NO_SPINNER,"Fetching Pending Channels Failed.",P),(0,f.of)({type:L.pg.VOID})))))))),this.channelsClosedFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.FETCH_CLOSED_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchClosedChannels",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/closed").pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,N.PC)({payload:{action:"FetchClosedChannels",status:L.Bn.COMPLETED}})),{type:L.uR.SET_CLOSED_CHANNELS_LND,payload:P.channels||[]})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchClosedChannels",L.m6.NO_SPINNER,"Fetching Closed Channels Failed.",P),(0,f.of)({type:L.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.FETCH_INVOICES_LND),(0,C.z)(P=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchInvoices",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.INVOICES_API+"?num_max_invoices="+(P.payload.num_max_invoices?P.payload.num_max_invoices:100)+"&index_offset="+(P.payload.index_offset?P.payload.index_offset:0)+"&reversed="+(!!P.payload.reversed&&P.payload.reversed)).pipe((0,M.U)(Pe=>(this.logger.info(Pe),this.store.dispatch((0,N.PC)({payload:{action:"FetchInvoices",status:L.Bn.COMPLETED}})),P.payload.reversed&&!P.payload.index_offset&&(Pe.total_invoices=+(Pe.last_index_offset||0)),{type:L.uR.SET_INVOICES_LND,payload:Pe})),(0,d.K)(Pe=>(this.handleErrorWithoutAlert("FetchInvoices",L.m6.NO_SPINNER,"Fetching Invoices Failed.",Pe),(0,f.of)({type:L.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.FETCH_TRANSACTIONS_LND),(0,C.z)(()=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchTransactions",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.TRANSACTIONS_API))),(0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,N.PC)({payload:{action:"FetchTransactions",status:L.Bn.COMPLETED}})),{type:L.uR.SET_TRANSACTIONS_LND,payload:P||[]})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchTransactions",L.m6.NO_SPINNER,"Fetching Transactions Failed.",P),(0,f.of)({type:L.pg.VOID}))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.FETCH_UTXOS_LND),(0,R.M)(this.store.select(w.Q5)),(0,C.z)(([P,U])=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchUTXOs",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/getUTXOs?max_confs="+(U&&U.block_height?U.block_height:1e9)))),(0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,N.PC)({payload:{action:"FetchUTXOs",status:L.Bn.COMPLETED}})),{type:L.uR.SET_UTXOS_LND,payload:P||[]})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchUTXOs",L.m6.NO_SPINNER,"Fetching UTXOs Failed.",P),(0,f.of)({type:L.pg.VOID}))))),this.paymentsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.FETCH_PAYMENTS_LND),(0,C.z)(P=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchPayments",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"?max_payments="+(P.payload.max_payments?P.payload.max_payments:100)+"&index_offset="+(P.payload.index_offset?P.payload.index_offset:0)+"&reversed="+(!!P.payload.reversed&&P.payload.reversed)).pipe((0,M.U)(Pe=>(this.logger.info(Pe),this.store.dispatch((0,N.PC)({payload:{action:"FetchPayments",status:L.Bn.COMPLETED}})),{type:L.uR.SET_PAYMENTS_LND,payload:Pe})),(0,d.K)(Pe=>(this.handleErrorWithoutAlert("FetchPayments",L.m6.NO_SPINNER,"Fetching Payments Failed.",Pe),(0,f.of)({type:L.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.SEND_PAYMENT_LND),(0,C.z)(P=>{this.store.dispatch((0,T.ac)({payload:P.payload.uiMessage})),this.store.dispatch((0,N.PC)({payload:{action:"SendPayment",status:L.Bn.INITIATED}}));const U={};return U.paymentReq=P.payload.paymentReq,P.payload.paymentAmount&&(U.paymentAmount=P.payload.paymentAmount),P.payload.outgoingChannel&&(U.outgoingChannel=P.payload.outgoingChannel.chan_id),P.payload.allowSelfPayment&&(U.allowSelfPayment=P.payload.allowSelfPayment),P.payload.lastHopPubkey&&(U.lastHopPubkey=P.payload.lastHopPubkey),P.payload.feeLimitType&&P.payload.feeLimitType!==L.Vc[0].id&&(U.feeLimit={},U.feeLimit[P.payload.feeLimitType]=P.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",U).pipe((0,M.U)(me=>{if(this.logger.info(me),this.store.dispatch((0,T.uO)({payload:P.payload.uiMessage})),this.store.dispatch((0,N.PC)({payload:{action:"SendPayment",status:L.Bn.COMPLETED}})),me.payment_error)return P.payload.allowSelfPayment?(this.store.dispatch((0,N.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),{type:L.uR.SEND_PAYMENT_STATUS_LND,payload:me}):(P.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed.",me.payment_error):this.handleErrorWithAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",me.payment_error),{type:L.pg.VOID});if(this.store.dispatch((0,T.uO)({payload:P.payload.uiMessage})),this.store.dispatch((0,N.PC)({payload:{action:"SendPayment",status:L.Bn.COMPLETED}})),this.store.dispatch((0,N.UR)()),this.store.dispatch((0,N.cQ)({payload:{max_payments:this.paymentsPageSize,reversed:!0}})),P.payload.allowSelfPayment)this.store.dispatch((0,N.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}}));else{let nt="Payment Sent Successfully.";me.payment_route&&me.payment_route.total_fees_msat&&(nt="Payment sent successfully with the total fee "+me.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,T.jW)({payload:nt}))}return{type:L.uR.SEND_PAYMENT_STATUS_LND,payload:me}}),(0,d.K)(me=>(this.logger.error("Error: "+JSON.stringify(me)),P.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed.",me),this.store.dispatch((0,N.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),(0,f.of)({type:L.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(me)}})):(P.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed.",me):this.handleErrorWithAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",me),(0,f.of)({type:L.pg.VOID})))))}))),this.graphNodeFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.FETCH_GRAPH_NODE_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,N.PC)({payload:{action:"FetchGraphNode",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+P.payload.pubkey).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,T.uO)({payload:L.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,N.PC)({payload:{action:"FetchGraphNode",status:L.Bn.COMPLETED}})),{type:L.uR.SET_GRAPH_NODE_LND,payload:U&&U.node?{node:U.node}:{node:null}})),(0,d.K)(U=>(this.handleErrorWithoutAlert("FetchGraphNode",L.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",U),(0,f.of)({type:L.pg.VOID})))))))),this.setGraphNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.SET_GRAPH_NODE_LND),(0,M.U)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.GET_NEW_ADDRESS_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NEW_ADDRESS_API+"?type="+P.payload.addressId).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,T.uO)({payload:L.m6.GENERATE_NEW_ADDRESS})),{type:L.uR.SET_NEW_ADDRESS_LND,payload:U&&U.address?U.address:{}})),(0,d.K)(U=>(this.handleErrorWithAlert("GetNewAddress",L.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+h.NZ.NEW_ADDRESS_API+"?type="+P.payload.addressId,U),(0,f.of)({type:L.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.SET_NEW_ADDRESS_LND),(0,M.U)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.SET_CHANNEL_TRANSACTION_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,N.PC)({payload:{action:"SetChannelTransaction",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.TRANSACTIONS_API,{amount:P.payload.amount,address:P.payload.address,sendAll:P.payload.sendAll,fees:P.payload.fees,blocks:P.payload.blocks}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,N.PC)({payload:{action:"SetChannelTransaction",status:L.Bn.COMPLETED}})),this.store.dispatch((0,T.uO)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,N.mC)()),this.store.dispatch((0,N.Bl)()),this.store.dispatch((0,N.UR)()),{type:L.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:U})),(0,d.K)(U=>(this.handleErrorWithoutAlert("SetChannelTransaction",L.m6.SEND_FUNDS,"Sending Fund Failed.",U),(0,f.of)({type:L.pg.VOID})))))))),this.fetchForwardingHistory=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.GET_FORWARDING_HISTORY_LND),(0,C.z)(P=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchForwardingHistory",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.SWITCH_API,{num_max_events:P.payload.num_max_events,index_offset:P.payload.index_offset,end_time:P.payload.end_time,start_time:P.payload.start_time}).pipe((0,M.U)(me=>(this.logger.info(me),this.store.dispatch((0,N.PC)({payload:{action:"FetchForwardingHistory",status:L.Bn.COMPLETED}})),{type:L.uR.SET_FORWARDING_HISTORY_LND,payload:me})),(0,d.K)(me=>(this.handleErrorWithAlert("FetchForwardingHistory",L.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+h.NZ.SWITCH_API,me),(0,f.of)({type:L.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.GET_QUERY_ROUTES_LND),(0,C.z)(P=>{let U=this.CHILD_API_URL+h.NZ.NETWORK_API+"/routes/"+P.payload.destPubkey+"/"+P.payload.amount;return P.payload.outgoingChanId&&(U=U+"?outgoing_chan_id="+P.payload.outgoingChanId),this.httpClient.get(U).pipe((0,M.U)(me=>(this.logger.info(me),{type:L.uR.SET_QUERY_ROUTES_LND,payload:me})),(0,d.K)(me=>(this.store.dispatch((0,N.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",L.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+h.NZ.NETWORK_API,me),(0,f.of)({type:L.pg.VOID}))))}))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.SET_QUERY_ROUTES_LND),(0,M.U)(P=>P.payload)),{dispatch:!1}),this.genSeed=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.GEN_SEED_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/genseed/"+P.payload).pipe((0,M.U)(U=>(this.logger.info("Generated GenSeed!"),this.logger.info(U),this.store.dispatch((0,T.uO)({payload:L.m6.GEN_SEED})),{type:L.uR.GEN_SEED_RESPONSE_LND,payload:U.cipher_seed_mnemonic})),(0,d.K)(U=>(this.handleErrorWithAlert("GenSeed",L.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/genseed/"+P.payload,U),(0,f.of)({type:L.pg.VOID})))))))),this.updateSelNodeOptions=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,C.z)(()=>this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,M.U)(P=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(P),{type:L.pg.VOID})),(0,d.K)(P=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",L.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",P),(0,f.of)({type:L.pg.VOID}))))))),this.genSeedResponse=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.GEN_SEED_RESPONSE_LND),(0,M.U)(P=>P.payload)),{dispatch:!1}),this.initWalletRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.INIT_WALLET_RESPONSE_LND),(0,M.U)(P=>P.payload)),{dispatch:!1}),this.initWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.INIT_WALLET_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+h.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:P.payload.pwd,cipher_seed_mnemonic:P.payload.cipher?P.payload.cipher:"",aezeed_passphrase:P.payload.passphrase?P.payload.passphrase:""}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,T.uO)({payload:L.m6.INITIALIZE_WALLET})),{type:L.uR.INIT_WALLET_RESPONSE_LND,payload:U})),(0,d.K)(U=>(this.handleErrorWithAlert("InitWallet",L.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/initwallet",U),(0,f.of)({type:L.pg.VOID})))))))),this.unlockWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.UNLOCK_WALLET_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+h.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:P.payload.pwd}).pipe((0,M.U)(U=>(this.logger.info(U),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,T.uO)({payload:L.m6.UNLOCK_WALLET})),this.store.dispatch((0,T.ac)({payload:L.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,T.uO)({payload:L.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,N.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:L.pg.VOID})),(0,d.K)(U=>(this.handleErrorWithAlert("UnlockWallet",L.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/unlockwallet",U),(0,f.of)({type:L.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.PEER_LOOKUP_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.SEARCHING_NODE})),this.store.dispatch((0,N.PC)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+P.payload).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,T.uO)({payload:L.m6.SEARCHING_NODE})),this.store.dispatch((0,N.PC)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),{type:L.uR.SET_LOOKUP_LND,payload:U})),(0,d.K)(U=>(this.handleErrorWithAlert("Lookup",L.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+P.payload,U),(0,f.of)({type:L.pg.VOID})))))))),this.channelLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.CHANNEL_LOOKUP_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:P.payload.uiMessage})),this.store.dispatch((0,N.PC)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/edge/"+P.payload.channelID).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,T.uO)({payload:P.payload.uiMessage})),this.store.dispatch((0,N.PC)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),{type:L.uR.SET_LOOKUP_LND,payload:U})),(0,d.K)(U=>(this.handleErrorWithAlert("Lookup",P.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/edge/"+P.payload.channelID,U),(0,f.of)({type:L.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.INVOICE_LOOKUP_LND),(0,C.z)(P=>{this.store.dispatch((0,T.ac)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,N.PC)({payload:{action:"Lookup",status:L.Bn.INITIATED}}));let U=this.CHILD_API_URL+h.NZ.INVOICES_API+"/lookup";return U=P.payload.paymentAddress&&""!==P.payload.paymentAddress?U+"?payment_addr="+P.payload.paymentAddress:U+"?payment_hash="+P.payload.paymentHash,this.httpClient.get(U).pipe((0,M.U)(me=>(this.logger.info(me),this.store.dispatch((0,T.uO)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,N.PC)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,N.aL)({payload:me})),{type:L.uR.SET_LOOKUP_LND,payload:me})),(0,d.K)(me=>(this.store.dispatch((0,N.PC)({payload:{action:"Lookup",status:L.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",L.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",me),P.payload.openSnackBar&&this.store.dispatch((0,T.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:L.uR.SET_LOOKUP_LND,payload:{error:me}}))))}))),this.paymentLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.PAYMENT_LOOKUP_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,N.PC)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"/lookup/"+P.payload).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,T.uO)({payload:L.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,N.PC)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,N.qY)({payload:U})),{type:L.uR.SET_LOOKUP_LND,payload:U})),(0,d.K)(U=>(this.store.dispatch((0,N.PC)({payload:{action:"Lookup",status:L.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",L.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",U),(0,f.of)({type:L.uR.SET_LOOKUP_LND,payload:{error:U}})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.SET_LOOKUP_LND),(0,M.U)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.RESTORE_CHANNELS_LIST_LND),(0,C.z)(()=>(this.store.dispatch((0,N.PC)({payload:{action:"RestoreChannelsList",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,N.PC)({payload:{action:"RestoreChannelsList",status:L.Bn.COMPLETED}})),{type:L.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:P||{all_restore_exists:!1,files:[]}})),(0,d.K)(P=>(this.handleErrorWithAlert("RestoreChannelsList",L.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API,P),(0,f.of)({type:L.pg.VOID})))))))),this.setRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,M.U)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,C.z)(()=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchLightningTransactions",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"/alltransactions").pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,N.PC)({payload:{action:"FetchLightningTransactions",status:L.Bn.COMPLETED}})),{type:L.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:P})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchLightningTransactions",L.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",P),(0,f.of)({type:L.pg.VOID})))))))),this.pageSettingsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.FETCH_PAGE_SETTINGS_LND),(0,C.z)(()=>(this.store.dispatch((0,N.PC)({payload:{action:"FetchPageSettings",status:L.Bn.INITIATED}})),this.httpClient.get(h.NZ.PAGE_SETTINGS_API).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,N.PC)({payload:{action:"FetchPageSettings",status:L.Bn.COMPLETED}})),this.invoicesPageSize=(P&&Object.keys(P).length>0?P.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId):L.gK.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId)).recordsPerPage,this.paymentsPageSize=(P&&Object.keys(P).length>0?P.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId):L.gK.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId)).recordsPerPage,this.store.dispatch((0,N.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),{type:L.uR.SET_PAGE_SETTINGS_LND,payload:P||[]})),(0,d.K)(P=>(this.handleErrorWithoutAlert("FetchPageSettings",L.m6.NO_SPINNER,"Fetching Page Settings Failed.",P),(0,f.of)({type:L.pg.VOID})))))))),this.savePageSettings=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.uR.SAVE_PAGE_SETTINGS_LND),(0,C.z)(P=>(this.store.dispatch((0,T.ac)({payload:L.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,N.PC)({payload:{action:"SavePageSettings",status:L.Bn.INITIATED}})),this.httpClient.post(h.NZ.PAGE_SETTINGS_API,P.payload).pipe((0,M.U)(U=>{this.logger.info(U),this.store.dispatch((0,N.PC)({payload:{action:"SavePageSettings",status:L.Bn.COMPLETED}})),this.store.dispatch((0,T.uO)({payload:L.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,T.jW)({payload:"Page Layout Updated Successfully!"}));const me=(U.find(Pe=>"transactions"===Pe.pageId)?.tables.find(Pe=>"invoices"===Pe.tableId)||L.gK.find(Pe=>"transactions"===Pe.pageId)?.tables.find(Pe=>"invoices"===Pe.tableId)).recordsPerPage,nt=(U.find(Pe=>"transactions"===Pe.pageId)?.tables.find(Pe=>"payments"===Pe.tableId)||L.gK.find(Pe=>"transactions"===Pe.pageId)?.tables.find(Pe=>"payments"===Pe.tableId)).recordsPerPage;return me!==this.invoicesPageSize&&(this.invoicesPageSize=me,this.store.dispatch((0,N.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}}))),nt!==this.paymentsPageSize&&(this.paymentsPageSize=nt),{type:L.uR.SET_PAGE_SETTINGS_LND,payload:U||[]}}),(0,d.K)(U=>(this.handleErrorWithAlert("SavePageSettings",L.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",h.NZ.PAGE_SETTINGS_API,U),(0,f.of)({type:L.pg.VOID})))))))),this.store.select(w.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(P=>{P.FetchInfo.status!==L.Bn.COMPLETED&&P.FetchInfo.status!==L.Bn.ERROR||P.FetchFees.status!==L.Bn.COMPLETED&&P.FetchFees.status!==L.Bn.ERROR||P.FetchBalanceBlockchain.status!==L.Bn.COMPLETED&&P.FetchBalanceBlockchain.status!==L.Bn.ERROR||P.FetchAllChannels.status!==L.Bn.COMPLETED&&P.FetchAllChannels.status!==L.Bn.ERROR||P.FetchPendingChannels.status!==L.Bn.COMPLETED&&P.FetchPendingChannels.status!==L.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,T.uO)({payload:L.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(P=>{this.logger.info("Received new message from the service: "+JSON.stringify(P)),P&&(P.type===L.g8.INVOICE?(this.logger.info(P),P&&P.result&&P.result.payment_request&&this.store.dispatch((0,N.aL)({payload:P.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(P)))})}initializeRemainingData(r,u){this.sessionService.setItem("lndUnlocked","true");const l={identity_pubkey:r.identity_pubkey,alias:r.alias,testnet:r.testnet,chains:r.chains,uris:r.uris,version:r.version?r.version.split(" ")[0]:""};this.store.dispatch((0,T.ac)({payload:L.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,T._V)({payload:l}));let y=this.location.path();y.includes("/cln/")?y=y?.replace("/cln/","/lnd/"):y.includes("/ecl/")&&(y=y?.replace("/ecl/","/lnd/")),(y.includes("/unlock")||y.includes("/login")||y.includes("/error")||""===y||"HOME"===u||y.includes("?access-key="))&&(y="/lnd/home"),this.router.navigate([y]),this.store.dispatch((0,N.wD)()),this.store.dispatch((0,N.Bl)()),this.store.dispatch((0,N.UR)()),this.store.dispatch((0,N.Z7)()),this.store.dispatch((0,N.Zh)()),this.store.dispatch((0,N.$W)()),this.store.dispatch((0,N.Rv)()),this.store.dispatch((0,N.SN)()),this.store.dispatch((0,N.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(r,u,l,y){this.logger.error("ERROR IN: "+r+"\n"+JSON.stringify(y)),401===y.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,T.ts)()),this.store.dispatch((0,T.kS)()),this.store.dispatch((0,T.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,T.uO)({payload:u})),this.store.dispatch((0,N.PC)({payload:{action:r,status:L.Bn.ERROR,statusCode:y.status.toString(),message:this.commonService.extractErrorMessage(y,l)}})))}handleErrorWithAlert(r,u,l,y,D){if(this.logger.error(D),401===D.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,T.ts)()),this.store.dispatch((0,T.kS)()),this.store.dispatch((0,T.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,T.uO)({payload:u}));const k=this.commonService.extractErrorMessage(D);this.store.dispatch((0,T.qR)({payload:{data:{type:"ERROR",alertTitle:l,message:{code:D.status,message:k,URL:y},component:E.H}}})),this.store.dispatch((0,N.PC)({payload:{action:r,status:L.Bn.ERROR,statusCode:D.status.toString(),message:k,URL:y}}))}}ngOnDestroy(){this.unSubs.forEach(r=>{r.next(null),r.complete()})}}return S.\u0275fac=function(r){return new(r||S)(G.LFG(t.eX),G.LFG(K.eN),G.LFG(Q.yh),G.LFG(re.mQ),G.LFG(ie.v),G.LFG(ce.m),G.LFG(ae.uw),G.LFG(ne.F0),G.LFG(le.d),G.LFG(ee.Ye))},S.\u0275prov=G.Yz7({token:S,factory:S.\u0275fac}),S})()},6529:(ke,J,p)=>{"use strict";p.d(J,{$k:()=>f,Bo:()=>R,Ef:()=>T,JG:()=>I,N7:()=>ce,P2:()=>K,PP:()=>h,Pr:()=>C,Q5:()=>a,T4:()=>ie,Wi:()=>E,ZW:()=>N,_f:()=>ne,bx:()=>le,dx:()=>L,l5:()=>ae,ni:()=>G,qU:()=>Q,yA:()=>d});var t=p(9653);const e=(0,t.ZF)("lnd"),f=(0,t.P1)(e,ee=>ee.nodeSettings),C=(0,t.P1)(e,ee=>({pageSettings:ee.pageSettings,apiCallStatus:ee.apisCallStatus.FetchPageSettings})),a=(0,t.P1)(e,ee=>ee.information),d=((0,t.P1)(e,ee=>({information:ee.information,apiCallStatus:ee.apisCallStatus.FetchInfo})),(0,t.P1)(e,ee=>ee.apisCallStatus)),R=(0,t.P1)(e,ee=>({forwardingHistory:ee.forwardingHistory,apiCallStatus:ee.apisCallStatus.FetchForwardingHistory})),h=(0,t.P1)(e,ee=>({listPayments:ee.listPayments,apiCallStatus:ee.apisCallStatus.FetchPayments})),I=(0,t.P1)(e,ee=>({fees:ee.fees,apiCallStatus:ee.apisCallStatus.FetchFees})),E=(0,t.P1)(e,ee=>({peers:ee.peers,apiCallStatus:ee.apisCallStatus.FetchPeers})),L=(0,t.P1)(e,ee=>({transactions:ee.transactions,apiCallStatus:ee.apisCallStatus.FetchTransactions})),T=(0,t.P1)(e,ee=>({listInvoices:ee.listInvoices,apiCallStatus:ee.apisCallStatus.FetchInvoices})),N=(0,t.P1)(e,ee=>({channels:ee.channels,channelsSummary:ee.channelsSummary,lightningBalance:ee.lightningBalance,apiCallStatus:ee.apisCallStatus.FetchAllChannels})),G=((0,t.P1)(e,ee=>({channelsSummary:ee.channelsSummary,pendingChannels:ee.pendingChannels,closedChannels:ee.closedChannels,apiCallStatus:ee.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,ee=>({pendingChannels:ee.pendingChannels,pendingChannelsSummary:ee.pendingChannelsSummary,apiCallStatus:ee.apisCallStatus.FetchPendingChannels}))),K=(0,t.P1)(e,ee=>({closedChannels:ee.closedChannels,apiCallStatus:ee.apisCallStatus.FetchClosedChannels})),Q=(0,t.P1)(e,ee=>({blockchainBalance:ee.blockchainBalance,apiCallStatus:ee.apisCallStatus.FetchBalanceBlockchain})),ie=((0,t.P1)(e,ee=>({lightningBalance:ee.lightningBalance,apiCallStatus:ee.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,ee=>({utxos:ee.utxos,apiCallStatus:ee.apisCallStatus.FetchUTXOs}))),ce=(0,t.P1)(e,ee=>({networkInfo:ee.networkInfo,apiCallStatus:ee.apisCallStatus.FetchNetwork})),ae=(0,t.P1)(e,ee=>({allLightningTransactions:ee.allLightningTransactions,apiCallStatus:ee.apisCallStatus.FetchLightningTransactions})),ne=(0,t.P1)(e,ee=>({channels:ee.channels,pendingChannels:ee.pendingChannels,closedChannels:ee.closedChannels})),le=(0,t.P1)(e,ee=>({information:ee.information,nodeSettings:ee.nodeSettings,apiCallStatus:ee.apisCallStatus.FetchInfo}))},8627:(ke,J,p)=>{"use strict";p.d(J,{v:()=>Ce});var t=p(5412),e=p(2687),f=p(7579),C=p(2722),a=p(7731),M=p(6529),d=p(4650),R=p(5043),h=p(62),I=p(7009),E=p(9653),L=p(6895),T=p(2216),N=p(1576),w=p(5829),G=p(4859),K=p(3546),Q=p(752),re=p(7392),ie=p(4850),ce=p(1572),ae=p(266),ne=p(658),le=p(5199),ee=p(3390);const pe=["scrollContainer"];function S(Se,X){if(1&Se&&d._UZ(0,"qr-code",33),2&Se){const Ye=d.oxw();d.Q6J("value",null==Ye.invoice?null:Ye.invoice.payment_request)("size",Ye.qrWidth)("errorCorrectionLevel","L")}}function i(Se,X){1&Se&&(d.TgZ(0,"span",34),d._uU(1,"N/A"),d.qZA())}function r(Se,X){if(1&Se&&d._UZ(0,"qr-code",33),2&Se){const Ye=d.oxw();d.Q6J("value",null==Ye.invoice?null:Ye.invoice.payment_request)("size",Ye.qrWidth)("errorCorrectionLevel","L")}}function u(Se,X){1&Se&&(d.TgZ(0,"span",35),d._uU(1,"QR Code Not Applicable"),d.qZA())}function l(Se,X){1&Se&&d._UZ(0,"mat-divider",22),2&Se&&d.Q6J("inset",!0)}function y(Se,X){1&Se&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function D(Se,X){1&Se&&d._UZ(0,"span",41)}const k=function(){return[]};function b(Se,X){if(1&Se&&(d.TgZ(0,"div",37)(1,"div",38)(2,"span",39),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,D,1,0,"span",40),d.qZA()()),2&Se){const Ye=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,null==Ye.invoice?null:Ye.invoice.amt_paid_sat)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,k).constructor(35))}}function n(Se,X){if(1&Se&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Se){const Ye=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,null==Ye.invoice?null:Ye.invoice.amt_paid_sat)," Sats")}}function _(Se,X){if(1&Se&&(d.ynx(0),d.YNc(1,b,6,5,"div",36),d.YNc(2,n,3,3,"div",21),d.BQk()),2&Se){const Ye=d.oxw();d.xp6(1),d.Q6J("ngIf",Ye.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!Ye.flgInvoicePaid)}}function W(Se,X){1&Se&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function P(Se,X){1&Se&&d._UZ(0,"mat-spinner",43),2&Se&&d.Q6J("diameter",20)}function U(Se,X){if(1&Se&&(d.ynx(0),d.YNc(1,W,2,0,"span",21),d.YNc(2,P,1,1,"mat-spinner",42),d.BQk()),2&Se){const Ye=d.oxw();d.xp6(1),d.Q6J("ngIf","OPEN"!==(null==Ye.invoice?null:Ye.invoice.state)||!Ye.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","OPEN"===(null==Ye.invoice?null:Ye.invoice.state)&&Ye.flgVersionCompatible)}}function me(Se,X){1&Se&&d.GkF(0)}function nt(Se,X){if(1&Se&&(d.TgZ(0,"div"),d.YNc(1,me,1,0,"ng-container",44),d.qZA()),2&Se){d.oxw();const Ye=d.MAs(79);d.xp6(1),d.Q6J("ngTemplateOutlet",Ye)}}function Pe(Se,X){if(1&Se){const Ye=d.EpF();d.TgZ(0,"div",45)(1,"button",46),d.NdJ("click",function(){d.CHM(Ye);const gt=d.oxw();return d.KtG(gt.onScrollDown())}),d.TgZ(2,"mat-icon",47),d._uU(3,"arrow_downward"),d.qZA()()()}}function Oe(Se,X){1&Se&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function De(Se,X){1&Se&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function ue(Se,X){if(1&Se){const Ye=d.EpF();d.TgZ(0,"button",48),d.NdJ("copied",function(gt){d.CHM(Ye);const Wt=d.oxw();return d.KtG(Wt.onCopyPayment(gt))}),d._uU(1),d.qZA()}if(2&Se){const Ye=d.oxw();d.Q6J("payload",null==Ye.invoice?null:Ye.invoice.payment_request),d.xp6(1),d.Oqu(Ye.screenSize===Ye.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function ve(Se,X){if(1&Se){const Ye=d.EpF();d.TgZ(0,"button",49),d.NdJ("click",function(){d.CHM(Ye);const gt=d.oxw();return d.KtG(gt.onClose())}),d._uU(1,"OK"),d.qZA()}}const Ie=function(Se){return{"mr-0":Se}};function $(Se,X){if(1&Se&&d._UZ(0,"span",64),2&Se){const Ye=d.oxw(4);d.Q6J("ngClass",d.VKq(1,Ie,Ye.screenSize===Ye.screenSizeEnum.XS))}}function Ge(Se,X){if(1&Se&&d._UZ(0,"span",65),2&Se){const Ye=d.oxw(4);d.Q6J("ngClass",d.VKq(1,Ie,Ye.screenSize===Ye.screenSizeEnum.XS))}}function ut(Se,X){if(1&Se&&d._UZ(0,"span",66),2&Se){const Ye=d.oxw(4);d.Q6J("ngClass",d.VKq(1,Ie,Ye.screenSize===Ye.screenSizeEnum.XS))}}function Ee(Se,X){if(1&Se&&(d.TgZ(0,"div",53)(1,"div",58)(2,"span",59),d.YNc(3,$,1,3,"span",60),d.YNc(4,Ge,1,3,"span",61),d.YNc(5,ut,1,3,"span",62),d._uU(6),d.qZA(),d.TgZ(7,"span",63),d._uU(8),d.ALo(9,"number"),d.qZA()(),d._UZ(10,"mat-divider",22),d.qZA()),2&Se){const Ye=X.$implicit,Le=d.oxw(3);d.xp6(3),d.Q6J("ngIf","SETTLED"===Ye.state),d.xp6(1),d.Q6J("ngIf","ACCEPTED"===Ye.state),d.xp6(1),d.Q6J("ngIf","CANCELED"===Ye.state),d.xp6(1),d.hij(" ",Ye.chan_id," "),d.xp6(2),d.Oqu(d.xi3(9,6,+Ye.amt_msat/1e3||0,Le.getDecimalFormat(Ye))),d.xp6(2),d.Q6J("inset",!0)}}function ye(Se,X){if(1&Se){const Ye=d.EpF();d.TgZ(0,"div",17)(1,"mat-expansion-panel",51),d.NdJ("opened",function(){d.CHM(Ye);const gt=d.oxw(2);return d.KtG(gt.flgOpened=!0)})("closed",function(){d.CHM(Ye);const gt=d.oxw(2);return d.KtG(gt.onExpansionClosed())}),d.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",52),d._uU(5,"HTLCs"),d.qZA()()(),d.TgZ(6,"div",53)(7,"div",54)(8,"span",55),d._uU(9,"Channel ID"),d.qZA(),d.TgZ(10,"span",56),d._uU(11,"Amount (Sats)"),d.qZA()(),d._UZ(12,"mat-divider",22),d.YNc(13,Ee,11,9,"div",57),d.qZA()()()}if(2&Se){const Ye=d.oxw(2);d.xp6(12),d.Q6J("inset",!0),d.xp6(1),d.Q6J("ngForOf",null==Ye.invoice?null:Ye.invoice.htlcs)}}function he(Se,X){1&Se&&d._UZ(0,"mat-divider",22),2&Se&&d.Q6J("inset",!0)}function de(Se,X){if(1&Se&&(d._UZ(0,"mat-divider",22),d.TgZ(1,"div",17)(2,"div",23)(3,"h4",19),d._uU(4,"Preimage"),d.qZA(),d.TgZ(5,"span",24),d._uU(6),d.qZA()()(),d._UZ(7,"mat-divider",22),d.TgZ(8,"div",17)(9,"div",18)(10,"h4",19),d._uU(11,"State"),d.qZA(),d.TgZ(12,"span",24),d._uU(13),d.qZA()(),d.TgZ(14,"div",18)(15,"h4",19),d._uU(16,"Expiry"),d.qZA(),d.TgZ(17,"span",24),d._uU(18),d.ALo(19,"date"),d.qZA()()(),d._UZ(20,"mat-divider",22),d.TgZ(21,"div",17)(22,"div",18)(23,"h4",19),d._uU(24,"Private Routing Hints"),d.qZA(),d.TgZ(25,"span",24),d._uU(26),d.qZA()(),d.TgZ(27,"div",18)(28,"h4",19),d._uU(29,"AMP Invoice"),d.qZA(),d.TgZ(30,"span",24),d._uU(31),d.qZA()()(),d._UZ(32,"mat-divider",22),d.YNc(33,ye,14,2,"div",50),d.YNc(34,he,1,1,"mat-divider",14)),2&Se){const Ye=d.oxw();d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==Ye.invoice?null:Ye.invoice.r_preimage)||"-"),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null==Ye.invoice?null:Ye.invoice.state),d.xp6(5),d.Oqu(d.xi3(19,11,1e3*(+(null==Ye.invoice?null:Ye.invoice.creation_date)+ +(null==Ye.invoice?null:Ye.invoice.expiry)),"dd/MMM/y HH:mm")),d.xp6(2),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null!=Ye.invoice&&Ye.invoice.private?"Yes":"No"),d.xp6(5),d.Oqu(null!=Ye.invoice&&Ye.invoice.is_amp?"Yes":"No"),d.xp6(1),d.Q6J("inset",!0),d.xp6(1),d.Q6J("ngIf",(null==Ye.invoice?null:Ye.invoice.htlcs)&&(null==Ye.invoice?null:Ye.invoice.htlcs.length)>0),d.xp6(1),d.Q6J("ngIf",(null==Ye.invoice?null:Ye.invoice.htlcs)&&(null==Ye.invoice?null:Ye.invoice.htlcs.length)>0)}}const we=function(Se){return{"display-none":Se}},Y=function(Se){return{"xs-scroll-y":Se}},j=function(Se){return{"h-50":Se}};let Ce=(()=>{class Se{constructor(Ye,Le,gt,Wt,Rt,jt){this.dialogRef=Ye,this.data=Le,this.logger=gt,this.commonService=Wt,this.snackBar=Rt,this.store=jt,this.faReceipt=e.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.invoice=null,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}set container(Ye){Ye&&(this.scrollContainer=Ye)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(M.Q5).pipe((0,C.R)(this.unSubs[0])).subscribe(Le=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Le.version,"0.11.0")});const Ye=JSON.parse(JSON.stringify(this.invoice));this.store.select(M.Ef).pipe((0,C.R)(this.unSubs[1])).subscribe(Le=>{const gt=this.invoice?.state,Rt=(Le.listInvoices.invoices||[]).find(jt=>jt.r_hash===Ye.r_hash)||null;Rt&&(this.invoice=Rt),gt!==this.invoice?.state&&"SETTLED"===this.invoice?.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Le)})}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(Ye){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+Ye)}getDecimalFormat(Ye){return Ye.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(Ye=>{Ye.next(null),Ye.complete()})}}return Se.\u0275fac=function(Ye){return new(Ye||Se)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(I.ux),d.Y36(E.yh))},Se.\u0275cmp=d.Xpm({type:Se,selectors:[["rtl-invoice-information"]],viewQuery:function(Ye,Le){if(1&Ye&&d.Gf(pe,5),2&Ye){let gt;d.iGM(gt=d.CRH())&&(Le.container=gt.first)}},decls:80,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"ngClass"],["scrollContainer",""],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["advancedBlock",""],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],[4,"ngTemplateOutlet"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"],["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(Ye,Le){if(1&Ye&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,S,1,3,"qr-code",2),d.YNc(3,i,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return Le.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,r,1,3,"qr-code",2),d.YNc(16,u,2,0,"span",13),d.qZA(),d.YNc(17,l,1,1,"mat-divider",14),d.TgZ(18,"div",15,16)(20,"div",17)(21,"div",18)(22,"h4",19),d._uU(23),d.qZA(),d.TgZ(24,"span",20),d._uU(25),d.ALo(26,"number"),d.YNc(27,y,2,0,"ng-container",21),d.qZA()(),d.TgZ(28,"div",18)(29,"h4",19),d._uU(30,"Amount Settled"),d.qZA(),d.TgZ(31,"span",20),d.YNc(32,_,3,2,"ng-container",21),d.YNc(33,U,3,2,"ng-container",21),d.qZA()()(),d._UZ(34,"mat-divider",22),d.TgZ(35,"div",17)(36,"div",18)(37,"h4",19),d._uU(38,"Date Created"),d.qZA(),d.TgZ(39,"span",20),d._uU(40),d.ALo(41,"date"),d.qZA()(),d.TgZ(42,"div",18)(43,"h4",19),d._uU(44,"Date Settled"),d.qZA(),d.TgZ(45,"span",20),d._uU(46),d.ALo(47,"date"),d.qZA()()(),d._UZ(48,"mat-divider",22),d.TgZ(49,"div",17)(50,"div",23)(51,"h4",19),d._uU(52,"Memo"),d.qZA(),d.TgZ(53,"span",20),d._uU(54),d.qZA()()(),d._UZ(55,"mat-divider",22),d.TgZ(56,"div",17)(57,"div",23)(58,"h4",19),d._uU(59,"Payment Request"),d.qZA(),d.TgZ(60,"span",24),d._uU(61),d.qZA()()(),d._UZ(62,"mat-divider",22),d.TgZ(63,"div",17)(64,"div",23)(65,"h4",19),d._uU(66,"Payment Hash"),d.qZA(),d.TgZ(67,"span",24),d._uU(68),d.qZA()()(),d.YNc(69,nt,2,1,"div",21),d.qZA()()(),d.YNc(70,Pe,4,0,"div",25),d.TgZ(71,"div",26)(72,"button",27),d.NdJ("click",function(){return Le.onShowAdvanced()}),d.YNc(73,Oe,2,0,"p",28),d.YNc(74,De,2,0,"ng-template",null,29,d.W1O),d.qZA(),d.YNc(76,ue,2,2,"button",30),d.YNc(77,ve,2,0,"button",31),d.qZA()()(),d.YNc(78,de,35,14,"ng-template",null,32,d.W1O)),2&Ye){const gt=d.MAs(75);d.xp6(1),d.Q6J("fxLayoutAlign",null!=Le.invoice&&Le.invoice.payment_request&&""!==(null==Le.invoice?null:Le.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(41,we,Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.payment_request)&&""!==(null==Le.invoice?null:Le.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.payment_request)||""===(null==Le.invoice?null:Le.invoice.payment_request)),d.xp6(4),d.Q6J("icon",Le.faReceipt),d.xp6(2),d.Oqu(Le.screenSize===Le.screenSizeEnum.XS?Le.newlyAdded?"Created":"Invoice":Le.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(43,Y,Le.screenSize===Le.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=Le.invoice&&Le.invoice.payment_request&&""!==(null==Le.invoice?null:Le.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(45,we,Le.screenSize!==Le.screenSizeEnum.XS&&Le.screenSize!==Le.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.payment_request)&&""!==(null==Le.invoice?null:Le.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.payment_request)||""===(null==Le.invoice?null:Le.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM),d.xp6(1),d.Q6J("ngClass",d.VKq(47,j,(null==Le.invoice?null:Le.invoice.htlcs)&&(null==Le.invoice?null:Le.invoice.htlcs.length)>0&&Le.showAdvanced)),d.xp6(5),d.Oqu(Le.screenSize===Le.screenSizeEnum.XS?"Amount":"Amount Requested"),d.xp6(2),d.hij("",d.lcZ(26,33,(null==Le.invoice?null:Le.invoice.value)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.value)||"0"===(null==Le.invoice?null:Le.invoice.value)),d.xp6(5),d.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.amt_paid_sat)&&"OPEN"!==(null==Le.invoice?null:Le.invoice.state)),d.xp6(1),d.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.amt_paid_sat)||"0"===(null==Le.invoice?null:Le.invoice.amt_paid_sat)),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu(d.xi3(41,35,1e3*(null==Le.invoice?null:Le.invoice.creation_date),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(0!=+(null==Le.invoice?null:Le.invoice.settle_date)?d.xi3(47,38,1e3*+(null==Le.invoice?null:Le.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),d.xp6(2),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null==Le.invoice?null:Le.invoice.memo),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==Le.invoice?null:Le.invoice.payment_request)||"N/A"),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==Le.invoice?null:Le.invoice.r_hash)||""),d.xp6(1),d.Q6J("ngIf",Le.showAdvanced),d.xp6(1),d.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.htlcs)&&(null==Le.invoice?null:Le.invoice.htlcs.length)>0&&Le.showAdvanced&&Le.flgOpened),d.xp6(3),d.Q6J("ngIf",!Le.showAdvanced)("ngIfElse",gt),d.xp6(3),d.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.payment_request)&&""!==(null==Le.invoice?null:Le.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.payment_request)||""===(null==Le.invoice?null:Le.invoice.payment_request))}},dependencies:[L.mk,L.sg,L.O5,L.tP,T.BN,N.xw,N.Wh,N.yH,w.oO,G.lW,K.dk,K.dn,Q.ib,Q.yz,Q.yK,re.Hw,ie.d,ce.Ou,ae.gM,ne.uU,le.y,ee.h,L.JJ,L.uU]}),Se})()},7772:(ke,J,p)=>{"use strict";p.d(J,{J:()=>f,_:()=>e});var t=p(7340);const e=[(0,t.X$)("opacityAnimation",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)("1000ms ease-in",(0,t.oB)({opacity:1}))]),(0,t.eR)(":leave",[(0,t.jt)("0ms",(0,t.oB)({opacity:0}))])])],f=[(0,t.X$)("fadeIn",[(0,t.eR)("void => *",[]),(0,t.eR)("* => void",[]),(0,t.eR)("* => *",[(0,t.jt)(800,(0,t.F4)([(0,t.oB)({opacity:0,transform:"translateY(100%)"}),(0,t.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(ke,J,p)=>{"use strict";p.d(J,{g:()=>e});var t=p(7340);const e=(0,t.X$)("routeAnimation",[(0,t.eR)("* => *",[(0,t.IO)(":enter, :leave",(0,t.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,t.ru)([(0,t.IO)(":enter",[(0,t.oB)({transform:"translateX(100%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,t.IO)(":leave",[(0,t.oB)({transform:"translateX(0%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(ke,J,p)=>{"use strict";p.d(J,{l:()=>e});var t=p(7340);const e=[(0,t.X$)("sliderAnimation",[(0,t.SB)("*",(0,t.oB)({transform:"translateX(0)"})),(0,t.eR)("void => backward",[(0,t.oB)({transform:"translateX(-100%"}),(0,t.jt)("800ms")]),(0,t.eR)("backward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(100%)"}))]),(0,t.eR)("void => forward",[(0,t.oB)({transform:"translateX(100%"}),(0,t.jt)("800ms")]),(0,t.eR)("forward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(-100%)"}))])])]},1786:(ke,J,p)=>{"use strict";p.d(J,{H:()=>E});var t=p(5412),e=p(4650),f=p(5043),C=p(6895),a=p(1576),M=p(4859),d=p(3546),R=p(4850),h=p(3390);function I(L,T){if(1&L&&(e.TgZ(0,"p",14),e._uU(1),e.qZA()),2&L){const N=e.oxw();e.xp6(1),e.Oqu(N.data.titleMessage)}}let E=(()=>{class L{constructor(N,w,G){this.dialogRef=N,this.data=w,this.logger=G,this.errorMessage=""}ngOnInit(){this.errorMessage=this.data.message&&this.data.message.message&&"object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message&&this.data.message.message?this.data.message.message:"",!this.data.message&&!this.data.titleMessage&&!this.data.message&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}}return L.\u0275fac=function(N){return new(N||L)(e.Y36(t.so),e.Y36(t.WI),e.Y36(f.mQ))},L.\u0275cmp=e.Xpm({type:L,selectors:[["rtl-error-message"]],decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(N,w){1&N&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return w.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7),e.YNc(10,I,2,1,"p",8),e.TgZ(11,"h4",9),e._uU(12,"Error Code"),e.qZA(),e.TgZ(13,"span"),e._uU(14),e.qZA(),e._UZ(15,"mat-divider",10),e.TgZ(16,"h4",9),e._uU(17,"Error Message"),e.qZA(),e.TgZ(18,"span",11),e._uU(19),e.qZA(),e._UZ(20,"mat-divider",10),e.TgZ(21,"h4",9),e._uU(22,"API URL"),e.qZA(),e.TgZ(23,"span",11),e._uU(24),e.qZA(),e._UZ(25,"mat-divider",10),e.TgZ(26,"div",12)(27,"button",13),e._uU(28,"OK"),e.qZA()()()()()()),2&N&&(e.xp6(5),e.Oqu(w.data.alertTitle||"ERROR"),e.xp6(5),e.Q6J("ngIf",w.data.titleMessage),e.xp6(4),e.Oqu(w.data.message.code),e.xp6(5),e.Oqu(w.errorMessage),e.xp6(5),e.Oqu(w.data.message.URL),e.xp6(3),e.Q6J("mat-dialog-close",!1))},dependencies:[C.O5,a.xw,a.Wh,a.yH,t.ZT,M.lW,d.dk,d.dn,R.d,h.h],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),L})()},2615:(ke,J,p)=>{"use strict";p.d(J,{a:()=>Vi});var t=p(4006),e=p(7579),f=p(2722),C=p(5412),a=p(2687),M=p(7772),d=p(7731),R=p(6529),h=p(4650),I=p(9653),E=p(9107),L=p(6895),T=p(5043),N=p(9116),w=p(62),G=p(1576),K=p(5829),Q=p(4859),re=p(3546),ie=p(752),ce=p(7392),ae=p(9549),ne=p(4144),le=p(3162),ee=p(1948),pe=p(455),S=p(266),i=p(8425),r=p(3390),u=p(4850);function l(Be,kt){1&Be&&h.GkF(0)}function y(Be,kt){1&Be&&h.GkF(0)}const D=function(Be){return{"h-5":Be}};function k(Be,kt){if(1&Be&&(h.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),h._uU(4),h.ALo(5,"number"),h.qZA()()(),h.YNc(6,y,1,0,"ng-container",0),h.qZA()),2&Be){const _e=h.oxw(),Je=h.MAs(4);h.Q6J("expanded",_e.panelExpanded)("ngClass",h.VKq(7,D,!_e.flgShowPanel)),h.xp6(4),h.AsE("Quote for ",_e.termCaption," amount (",h.lcZ(5,5,_e.quote.amount)," Sats)"),h.xp6(2),h.Q6J("ngTemplateOutlet",Je)}}function b(Be,kt){if(1&Be&&(h.TgZ(0,"div",19)(1,"h4",8),h._uU(2," Prepay Amount (Sats) "),h.TgZ(3,"mat-icon",20),h._uU(4,"info_outline"),h.qZA()(),h.TgZ(5,"span",10),h._uU(6),h.ALo(7,"number"),h.qZA()()),2&Be){const _e=h.oxw(2);h.xp6(6),h.Oqu(h.lcZ(7,1,null==_e.quote?null:_e.quote.prepay_amt_sat))}}function n(Be,kt){1&Be&&h._UZ(0,"mat-divider",13)}function _(Be,kt){if(1&Be&&(h.TgZ(0,"div",6)(1,"div",21)(2,"h4",8),h._uU(3," Swap Server Node Pubkey "),h.TgZ(4,"mat-icon",22),h._uU(5,"info_outline"),h.qZA()(),h.TgZ(6,"span",10),h._uU(7),h.qZA()()()),2&Be){const _e=h.oxw(2);h.xp6(7),h.Oqu(null==_e.quote?null:_e.quote.swap_payment_dest)}}function W(Be,kt){if(1&Be&&(h.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),h._uU(4," Swap Fee (Sats) "),h.TgZ(5,"mat-icon",9),h._uU(6,"info_outline"),h.qZA()(),h.TgZ(7,"span",10),h._uU(8),h.ALo(9,"number"),h.qZA()(),h.TgZ(10,"div",7)(11,"h4",8),h._uU(12),h.TgZ(13,"mat-icon",11),h._uU(14,"info_outline"),h.qZA()(),h.TgZ(15,"span",10),h._uU(16),h.ALo(17,"number"),h.qZA()(),h.YNc(18,b,8,3,"div",12),h.qZA(),h._UZ(19,"mat-divider",13),h.TgZ(20,"div",6)(21,"div",14)(22,"h4",8),h._uU(23," Max Off-chain Swap Routing Fee (Sats) "),h.TgZ(24,"mat-icon",15),h._uU(25,"info_outline"),h.qZA()(),h.TgZ(26,"span",10),h._uU(27),h.ALo(28,"number"),h.qZA()(),h.TgZ(29,"div",14)(30,"h4",8),h._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),h.TgZ(32,"mat-icon",16),h._uU(33,"info_outline"),h.qZA()(),h.TgZ(34,"span",10),h._uU(35,"36"),h.qZA()()(),h.YNc(36,n,1,0,"mat-divider",17),h.YNc(37,_,8,1,"div",18),h.qZA()),2&Be){const _e=h.oxw();h.xp6(2),h.Q6J("fxFlex",null!=_e.quote&&_e.quote.prepay_amt_sat?"30":"50"),h.xp6(6),h.Oqu(h.lcZ(9,9,null==_e.quote?null:_e.quote.swap_fee_sat)),h.xp6(2),h.Q6J("fxFlex",null!=_e.quote&&_e.quote.prepay_amt_sat?"35":"50"),h.xp6(2),h.hij(" ",null!=_e.quote&&_e.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=_e.quote&&_e.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),h.xp6(4),h.Oqu(h.lcZ(17,11,null!=_e.quote&&_e.quote.htlc_sweep_fee_sat?_e.quote.htlc_sweep_fee_sat:null!=_e.quote&&_e.quote.htlc_publish_fee_sat?_e.quote.htlc_publish_fee_sat:0)),h.xp6(2),h.Q6J("ngIf",null==_e.quote?null:_e.quote.prepay_amt_sat),h.xp6(9),h.Oqu(h.lcZ(28,13,(null==_e.quote?null:_e.quote.amount)*((null!=_e.quote&&_e.quote.off_chain_swap_routing_fee_percentage?null==_e.quote?null:_e.quote.off_chain_swap_routing_fee_percentage:2)/100))),h.xp6(9),h.Q6J("ngIf",""!==(null==_e.quote?null:_e.quote.swap_payment_dest)),h.xp6(1),h.Q6J("ngIf",""!==(null==_e.quote?null:_e.quote.swap_payment_dest))}}let P=(()=>{class Be{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275cmp=h.Xpm({type:Be,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["informationBlock",""],["quoteDetailsBlock",""],["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded","ngClass"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],[3,"fxFlex"],["fxLayoutAlign","start center",1,"font-bold-500"],["matTooltip","Estimated fee charged by the loop server for the swap",1,"info-icon","info-icon-text"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",1,"info-icon","info-icon-text"],["fxFlex","35",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","50"],["matTooltip","Maximum off-chain fee that may be paid for routing the payment amount to the server",1,"info-icon","info-icon-text"],["matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server","matTooltipPosition","before",1,"info-icon","info-icon-text"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","35"],["matTooltip","The part of the swap fee that is requested as a prepayment","matTooltipPosition","before",1,"info-icon","info-icon-text"],["fxFlex","100"],["matTooltip","The node pubkey, where the swap payments will be sent",1,"info-icon","info-icon-text"]],template:function(_e,Je){if(1&_e&&(h.YNc(0,l,1,0,"ng-container",0),h.YNc(1,k,7,9,"ng-template",null,1,h.W1O),h.YNc(3,W,38,15,"ng-template",null,2,h.W1O)),2&_e){const _t=h.MAs(2),se=h.MAs(4);h.Q6J("ngTemplateOutlet",Je.showPanel?_t:se)}},dependencies:[L.mk,L.O5,L.tP,G.xw,G.Wh,G.yH,K.oO,ie.ib,ie.yz,ie.yK,ce.Hw,u.d,S.gM,L.JJ]}),Be})();function U(Be,kt){1&Be&&h.GkF(0)}function me(Be,kt){if(1&Be&&(h.TgZ(0,"div",3)(1,"span",4),h._uU(2),h.qZA()()),2&Be){const _e=h.oxw();h.xp6(2),h.Oqu(null!=_e.loopStatus&&_e.loopStatus.error?null==_e.loopStatus?null:_e.loopStatus.error:"Unknown Error.")}}function nt(Be,kt){if(1&Be&&(h.TgZ(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),h._uU(4,"ID"),h.qZA(),h.TgZ(5,"span",4),h._uU(6),h.qZA()()(),h._UZ(7,"mat-divider",8),h.TgZ(8,"div",5)(9,"div",6)(10,"h4",7),h._uU(11,"HTLC Address"),h.qZA(),h.TgZ(12,"span",4),h._uU(13),h.qZA()()()()),2&Be){const _e=h.oxw();h.xp6(6),h.Oqu(null==_e.loopStatus?null:_e.loopStatus.id_bytes),h.xp6(7),h.Oqu(null==_e.loopStatus?null:_e.loopStatus.htlc_address)}}let Pe=(()=>{class Be{constructor(){}}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275cmp=h.Xpm({type:Be,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["loopFailedBlock",""],["loopSuccessfulBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(_e,Je){if(1&_e&&(h.YNc(0,U,1,0,"ng-container",0),h.YNc(1,me,3,1,"ng-template",null,1,h.W1O),h.YNc(3,nt,14,2,"ng-template",null,2,h.W1O)),2&_e){const _t=h.MAs(2),se=h.MAs(4);h.Q6J("ngTemplateOutlet",null!=Je.loopStatus&&Je.loopStatus.error?_t:se)}},dependencies:[L.tP,G.xw,G.Wh,G.yH,u.d]}),Be})();var Oe=p(113);function De(Be,kt){1&Be&&h.GkF(0)}const ue=function(Be,kt){return{"small-svg":Be,"large-svg":kt}};function ve(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){h.CHM(_e);const se=h.oxw();return h.KtG(se.onSwipe(_t))}),h.O4$(),h.TgZ(1,"svg",7)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),h._UZ(8,"circle",12)(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),h.qZA()()()()(),h.kcU(),h.TgZ(26,"div",30)(27,"mat-card-title"),h._uU(28,"Loop In explained."),h.qZA()(),h.TgZ(29,"div",31)(30,"mat-card-subtitle",32),h._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ue,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function Ie(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){h.CHM(_e);const se=h.oxw();return h.KtG(se.onSwipe(_t))}),h.O4$(),h.TgZ(1,"svg",33)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),h._UZ(13,"rect",41)(14,"rect",42)(15,"rect",43)(16,"circle",44)(17,"rect",45)(18,"rect",46)(19,"circle",47)(20,"rect",48)(21,"rect",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"circle",53)(26,"circle",54)(27,"circle",55),h.qZA(),h.TgZ(28,"g",56)(29,"g",57)(30,"g",58),h._UZ(31,"path",59)(32,"rect",60)(33,"polygon",61),h.TgZ(34,"g",62),h._UZ(35,"path",63),h.qZA(),h._UZ(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"rect",69)(42,"rect",70)(43,"path",71)(44,"path",72),h.qZA(),h.TgZ(45,"g",73),h._UZ(46,"path",74)(47,"path",75)(48,"path",76)(49,"path",77)(50,"path",78)(51,"path",79)(52,"path",80)(53,"path",81)(54,"path",82)(55,"path",83)(56,"path",84)(57,"circle",85)(58,"circle",86),h.qZA(),h._UZ(59,"path",87),h.qZA()()()()()(),h.kcU(),h.TgZ(60,"div",30)(61,"mat-card-title"),h._uU(62,"Step 1: Deciding to Loop In"),h.qZA()(),h.TgZ(63,"div",31)(64,"mat-card-subtitle",32),h._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ue,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function $(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){h.CHM(_e);const se=h.oxw();return h.KtG(se.onSwipe(_t))}),h.O4$(),h.TgZ(1,"svg",88)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",89),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),h._UZ(14,"circle",95)(15,"path",96),h.TgZ(16,"g",97),h._UZ(17,"polygon",98)(18,"polygon",99)(19,"path",100),h.qZA(),h.TgZ(20,"g",101),h._UZ(21,"polygon",102)(22,"path",103)(23,"rect",104)(24,"path",105)(25,"rect",106)(26,"rect",107)(27,"rect",108)(28,"rect",109)(29,"circle",110)(30,"path",111),h.TgZ(31,"g",112)(32,"g",113),h._UZ(33,"g",114),h.qZA(),h._UZ(34,"g",115),h.qZA()()(),h.TgZ(35,"g",116)(36,"g",40),h._UZ(37,"rect",117)(38,"rect",42)(39,"rect",43)(40,"circle",118)(41,"rect",45)(42,"rect",46)(43,"circle",119)(44,"rect",48)(45,"rect",49)(46,"rect",50)(47,"rect",51)(48,"rect",52)(49,"circle",120)(50,"circle",54)(51,"circle",55)(52,"circle",121),h.qZA(),h.TgZ(53,"g",56)(54,"g",57)(55,"g",58),h._UZ(56,"path",59)(57,"rect",60)(58,"polygon",61),h.TgZ(59,"g",122),h._UZ(60,"path",63),h.qZA(),h._UZ(61,"rect",123)(62,"rect",124)(63,"rect",125)(64,"rect",126)(65,"rect",127)(66,"rect",128)(67,"rect",129)(68,"path",130)(69,"path",72),h.qZA(),h.TgZ(70,"g",73),h._UZ(71,"path",131)(72,"path",132)(73,"path",133)(74,"path",134)(75,"path",135)(76,"path",136)(77,"path",80)(78,"path",81)(79,"path",137)(80,"path",83)(81,"path",138)(82,"circle",85)(83,"circle",86),h.qZA(),h._UZ(84,"path",139),h.qZA()()()(),h._UZ(85,"path",140)(86,"path",141),h.qZA()()()(),h.kcU(),h.TgZ(87,"div",30)(88,"mat-card-title"),h._uU(89,"Step 2: Send payment out"),h.qZA()(),h.TgZ(90,"div",31)(91,"mat-card-subtitle",32),h._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ue,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function Ge(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){h.CHM(_e);const se=h.oxw();return h.KtG(se.onSwipe(_t))}),h.O4$(),h.TgZ(1,"svg",142)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),h._UZ(10,"circle",12)(11,"path",147),h.qZA(),h.TgZ(12,"g",14),h._UZ(13,"ellipse",148)(14,"ellipse",16)(15,"rect",17)(16,"rect",18)(17,"rect",19)(18,"rect",20)(19,"rect",21)(20,"rect",22)(21,"rect",23)(22,"rect",24)(23,"rect",25)(24,"rect",26)(25,"rect",27)(26,"rect",28)(27,"rect",29),h.qZA()(),h.TgZ(28,"g",149),h._UZ(29,"polygon",150)(30,"polygon",99)(31,"path",151),h.qZA(),h.TgZ(32,"g",152),h._UZ(33,"polygon",102)(34,"path",103)(35,"rect",104)(36,"path",105)(37,"rect",106)(38,"rect",107)(39,"rect",108)(40,"rect",109)(41,"circle",110)(42,"path",111),h.TgZ(43,"g",112)(44,"g",113),h._UZ(45,"g",114),h.qZA(),h._UZ(46,"g",115),h.qZA()()(),h._UZ(47,"path",153),h.qZA()()()(),h.kcU(),h.TgZ(48,"div",30)(49,"mat-card-title"),h._uU(50,"Step 3: Recieve Funds Off-chain"),h.qZA()(),h.TgZ(51,"div",31)(52,"mat-card-subtitle",32),h._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ue,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function ut(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){h.CHM(_e);const se=h.oxw();return h.KtG(se.onSwipe(_t))}),h.O4$(),h.TgZ(1,"svg",154)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),h._UZ(15,"rect",159)(16,"rect",160)(17,"rect",161)(18,"circle",162)(19,"rect",163)(20,"rect",164)(21,"circle",165)(22,"rect",166)(23,"rect",167)(24,"rect",168)(25,"rect",169)(26,"circle",170)(27,"circle",171),h.qZA(),h.TgZ(28,"g",172),h._UZ(29,"path",173)(30,"rect",174)(31,"polygon",175)(32,"circle",176)(33,"path",177)(34,"rect",178)(35,"rect",179)(36,"rect",180)(37,"rect",181)(38,"rect",182)(39,"rect",183)(40,"rect",184)(41,"path",185)(42,"path",186),h.qZA(),h._UZ(43,"path",187),h.qZA()(),h._UZ(44,"circle",188),h.qZA()()()(),h.kcU(),h.TgZ(45,"div",30)(46,"mat-card-title"),h._uU(47,"Done!"),h.qZA()(),h.TgZ(48,"div",31)(49,"mat-card-subtitle",32),h._uU(50," You send the payment on-chain from your wallet and also move remote balance to the local side of the node, gaining outgoing capacity. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ue,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}let Ee=(()=>{class Be{constructor(_e){this.commonService=_e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=d.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(_e){2===_e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===_e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Be.\u0275fac=function(_e){return new(_e||Be)(h.Y36(w.v))},Be.\u0275cmp=h.Xpm({type:Be,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopIn_Step02","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(542.000000, 210.000000)"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"],["fxFlex","30","viewBox","0 0 364 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","Loopv0.3","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step03","transform","translate(-1127.000000, -164.000000)"],["id","LoopIn_Step03","transform","translate(1127.000000, 164.000000)"],["id","Group-21"],["id","Group-35","transform","translate(107.000000, 10.000000)"],["id","Oval","fill-rule","nonzero","cx","214.487742","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M232.082742,28.5000036 C236.446821,28.5000036 239.999928,25.1343958 239.999928,21.0000215 C239.999928,16.8656472 236.446821,13.5000393 232.082742,13.5000393 C228.98433,13.5000393 226.560889,15.4359631 224.999964,17.1843872 C223.43904,15.4359631 221.015599,13.5000393 217.917187,13.5000393 C213.553107,13.5000393 210,16.8656472 210,21.0000215 C210,25.1343958 213.553107,28.5000036 217.917187,28.5000036 C221.015599,28.5000036 223.43904,26.5640798 224.999964,24.8156557 C226.560889,26.5640798 228.98433,28.5000036 232.082742,28.5000036 Z M217.917187,24.0000143 C216.032807,24.0000143 214.499989,22.6546959 214.499989,21.0000286 C214.499989,19.3453471 216.032807,18.0000286 217.917187,18.0000286 C219.707771,18.0000286 221.357776,19.6921938 222.323426,21.0000286 C221.36716,22.2937501 219.703102,24.0000143 217.917187,24.0000143 Z M232.082742,24.0000143 C230.292157,24.0000143 228.642152,22.3078492 227.676502,21.0000286 C228.632768,19.7062929 230.296827,18.0000286 232.082742,18.0000286 C233.967121,18.0000286 235.499939,19.3453471 235.499939,21.0000286 C235.499939,22.6546959 233.967121,24.0000143 232.082742,24.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(0.000000, 64.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-20"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-20"],["id","Group-43","transform","translate(152.000000, 35.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["id","LoopIn_Step03","fill-rule","nonzero"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-10"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","15.8607624","r","7.93434243"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.35996418",1,"fill-color-31"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-4"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-20"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-20"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-16"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-9"],["d","M93.2292414,91.9116485 L93.2292414,89.7922708 C93.647506,89.8022089 94.0558324,89.8022089 94.4442517,89.8022089 L94.4442517,91.9116485 L95.9779294,91.9116485 L95.9779294,89.7623948 C98.5473303,89.6229527 100.264986,88.975618 100.494057,86.5555973 C100.673282,84.6136241 99.757032,83.7471573 98.3030443,83.3986138 C99.1794183,82.9504733 99.7371558,82.1537275 99.6076827,80.8291821 C99.4383337,79.0166511 97.9497787,78.4091306 95.9778985,78.2398742 L95.9778985,75.7301945 L94.4442208,75.7301945 L94.4442208,78.1701531 C94.0458325,78.1701531 93.6375061,78.1800912 93.2292106,78.1900602 L93.2292106,75.7301945 L91.695502,75.7301945 L91.695502,78.2398742 C91.1316227,78.2569109 90.4748746,78.2485777 88.6181777,78.2398742 L88.6181777,79.8731181 C89.8290831,79.8516987 90.4644118,79.7738914 90.6099957,80.5502979 L90.6099957,87.4220333 C90.517559,88.0380413 90.0245427,87.9493391 88.926907,87.9299259 L88.6181777,89.7524258 L89.5798445,89.7528809 C91.4824304,89.7548325 91.6955329,89.7623948 91.6955329,89.7623948 L91.6955329,91.9116485 L93.2292414,91.9116485 Z M93.2591175,83.0400705 L93.2591175,79.9826533 C94.1255534,79.9826533 96.8343964,79.7137998 96.8343964,81.5163618 C96.8343964,83.2392647 94.1255843,83.0400705 93.2591175,83.0400705 Z M93.2591175,87.9398948 L93.2591175,84.5737791 C94.2948407,84.5737791 97.4665153,84.2849568 97.4665153,86.2568678 C97.4665153,88.1589961 94.2948407,87.9398948 93.2591175,87.9398948 Z","id","b","fill-rule","nonzero","transform","translate(94.567271, 83.820921) rotate(14.000000) translate(-94.567271, -83.820921) ",1,"fill-color-9"],["d","M305.611064,96.181454 L305.611064,94.0620763 C306.029328,94.0720144 306.437655,94.0720144 306.826074,94.0720144 L306.826074,96.181454 L308.359752,96.181454 L308.359752,94.0322003 C310.929153,93.8927582 312.646809,93.2454235 312.875879,90.8254028 C313.055104,88.8834296 312.138854,88.0169628 310.684867,87.6684193 C311.561241,87.2202788 312.118978,86.423533 311.989505,85.0989876 C311.820156,83.2864566 310.331601,82.678936 308.359721,82.5096797 L308.359721,80 L306.826043,80 L306.826043,82.4399586 C306.427655,82.4399586 306.019328,82.4498967 305.611033,82.4598657 L305.611033,80 L304.077324,80 L304.077324,82.5096797 C303.513445,82.5267164 302.856697,82.5183832 301,82.5096797 L301,84.1429236 C302.210905,84.1215042 302.846234,84.0436969 302.991818,84.8201034 L302.991818,91.6918387 C302.899381,92.3078468 302.406365,92.2191446 301.308729,92.1997314 L301,94.0222313 L301.961667,94.0226864 C303.864253,94.024638 304.077355,94.0322003 304.077355,94.0322003 L304.077355,96.181454 L305.611064,96.181454 Z M305.64094,87.309876 L305.64094,84.2524587 C306.507376,84.2524587 309.216219,83.9836053 309.216219,85.7861673 C309.216219,87.5090702 306.507407,87.309876 305.64094,87.309876 Z M305.64094,92.2097003 L305.64094,88.8435846 C306.676663,88.8435846 309.848338,88.5547623 309.848338,90.5266733 C309.848338,92.4288016 306.676663,92.2097003 305.64094,92.2097003 Z","id","b","fill-rule","nonzero","transform","translate(306.949093, 88.090727) rotate(14.000000) translate(-306.949093, -88.090727) ",1,"fill-color-26"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step04","transform","translate(-1799.000000, -756.000000)"],["id","LoopIn_Step04","transform","translate(1799.000000, 756.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["d","M225.805162,92.2474279 C226.071703,92.2474279 226.325569,92.1077892 226.465207,91.8666288 L232.050261,82.2197185 C232.345374,81.7151473 231.980441,81.0773212 231.393376,81.0773212 L227.731346,81.0773212 L229.083201,76.9583506 C229.210134,76.4759989 228.845202,76 228.346983,76 L223.777394,76 C223.396595,76 223.07291,76.2824384 223.022149,76.6600456 L222.006685,84.2760274 C221.946379,84.7329987 222.301798,85.1391782 222.76193,85.1391782 L226.528674,85.1391782 L225.065752,91.3112968 C224.951525,91.7936485 225.319618,92.2474279 225.805162,92.2474279 Z","id","b","fill-rule","nonzero","transform","translate(227.077378, 84.123714) rotate(14.000000) translate(-227.077378, -84.123714) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step05","transform","translate(-2386.000000, -764.000000)","fill-rule","nonzero"],["id","LoopIn_Step05","transform","translate(2386.000000, 764.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"]],template:function(_e,Je){if(1&_e&&(h.YNc(0,De,1,0,"ng-container",0),h.YNc(1,ve,32,5,"ng-template",null,1,h.W1O),h.YNc(3,Ie,66,5,"ng-template",null,2,h.W1O),h.YNc(5,$,93,5,"ng-template",null,3,h.W1O),h.YNc(7,Ge,54,5,"ng-template",null,4,h.W1O),h.YNc(9,ut,51,5,"ng-template",null,5,h.W1O)),2&_e){const _t=h.MAs(2),se=h.MAs(4),Xe=h.MAs(6),bt=h.MAs(8),Vt=h.MAs(10);h.Q6J("ngTemplateOutlet",1===Je.stepNumber?_t:2===Je.stepNumber?se:3===Je.stepNumber?Xe:4===Je.stepNumber?bt:Vt)}},dependencies:[L.mk,L.tP,G.xw,G.Wh,G.yH,K.oO,re.n5,re.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Oe.l]}}),Be})();function ye(Be,kt){1&Be&&h.GkF(0)}const he=function(Be,kt){return{"small-svg":Be,"large-svg":kt}};function de(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){h.CHM(_e);const se=h.oxw();return h.KtG(se.onSwipe(_t))}),h.O4$(),h.TgZ(1,"svg",7)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),h._UZ(8,"circle",12)(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),h.qZA()()()()(),h.kcU(),h.TgZ(26,"div",30)(27,"mat-card-title"),h._uU(28,"Loop Out explained."),h.qZA()(),h.TgZ(29,"div",31)(30,"mat-card-subtitle",32),h._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,he,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function we(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){h.CHM(_e);const se=h.oxw();return h.KtG(se.onSwipe(_t))}),h.O4$(),h.TgZ(1,"svg",33)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),h._UZ(15,"rect",43)(16,"rect",44)(17,"rect",45)(18,"circle",46)(19,"rect",47)(20,"rect",48)(21,"circle",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"rect",53)(26,"circle",54)(27,"circle",55),h.qZA(),h.TgZ(28,"g",56),h._UZ(29,"path",57)(30,"rect",58)(31,"polygon",59)(32,"circle",60)(33,"path",61)(34,"rect",62)(35,"rect",63)(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"path",69)(42,"path",70),h.qZA(),h._UZ(43,"path",71),h.qZA()(),h._UZ(44,"circle",72),h.qZA()()()(),h.kcU(),h.TgZ(45,"div",30)(46,"mat-card-title"),h._uU(47,"Step 1: Deciding to Loop Out"),h.qZA()(),h.TgZ(48,"div",31)(49,"mat-card-subtitle",32),h._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,he,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function Y(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){h.CHM(_e);const se=h.oxw();return h.KtG(se.onSwipe(_t))}),h.O4$(),h.TgZ(1,"svg",73)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",74),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",75)(11,"g",76),h._UZ(12,"circle",77)(13,"path",78),h.TgZ(14,"g",79),h._UZ(15,"polygon",80)(16,"polygon",81)(17,"path",82),h.qZA(),h.TgZ(18,"g",83),h._UZ(19,"polygon",84)(20,"path",85)(21,"rect",86)(22,"path",87)(23,"rect",88)(24,"rect",89)(25,"rect",90)(26,"rect",91)(27,"circle",92)(28,"path",93),h.TgZ(29,"g",94)(30,"g",95),h._UZ(31,"g",96),h.qZA(),h._UZ(32,"g",97),h.qZA(),h._UZ(33,"path",98),h.qZA(),h.TgZ(34,"g",99)(35,"g",41)(36,"g",42),h._UZ(37,"rect",43)(38,"rect",44)(39,"rect",45)(40,"circle",46)(41,"rect",47)(42,"rect",48)(43,"circle",49)(44,"rect",50)(45,"rect",51)(46,"rect",52)(47,"rect",53)(48,"circle",100)(49,"circle",54)(50,"circle",55)(51,"circle",101),h.qZA(),h.TgZ(52,"g",56),h._UZ(53,"path",57)(54,"rect",102)(55,"polygon",103)(56,"circle",104)(57,"path",61)(58,"rect",105)(59,"rect",106)(60,"rect",107)(61,"rect",108)(62,"rect",109)(63,"rect",110)(64,"rect",68)(65,"path",69)(66,"path",70),h.qZA(),h._UZ(67,"path",111),h.qZA()()()()()(),h.kcU(),h.TgZ(68,"div",30)(69,"mat-card-title"),h._uU(70,"Step 2: Send lightning payment"),h.qZA()(),h.TgZ(71,"div",31)(72,"mat-card-subtitle",32),h._uU(73," Your node pays a lightning invoice for the amount requested via the loop service. This moves the local balance, for the amount paid, to the remote side of the channel. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,he,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function j(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){h.CHM(_e);const se=h.oxw();return h.KtG(se.onSwipe(_t))}),h.O4$(),h.TgZ(1,"svg",112)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),h._UZ(9,"circle",12)(10,"path",117),h.qZA(),h.TgZ(11,"g",14),h._UZ(12,"ellipse",118)(13,"ellipse",16)(14,"rect",17)(15,"rect",18)(16,"rect",19)(17,"rect",20)(18,"rect",21)(19,"rect",22)(20,"rect",23)(21,"rect",24)(22,"rect",25)(23,"rect",26)(24,"rect",27)(25,"rect",28)(26,"rect",29),h.qZA()(),h.TgZ(27,"g",119),h._UZ(28,"polygon",80)(29,"polygon",120)(30,"path",82),h.qZA(),h.TgZ(31,"g",121),h._UZ(32,"polygon",84)(33,"path",85)(34,"rect",86)(35,"path",87)(36,"rect",88)(37,"rect",89)(38,"rect",90)(39,"rect",91)(40,"circle",122)(41,"path",93),h.TgZ(42,"g",94)(43,"g",95),h._UZ(44,"g",96),h.qZA(),h._UZ(45,"g",97),h.qZA(),h._UZ(46,"path",123),h.qZA()()()()(),h.kcU(),h.TgZ(47,"div",30)(48,"mat-card-title"),h._uU(49,"Step 3: Receive funds back"),h.qZA()(),h.TgZ(50,"div",31)(51,"mat-card-subtitle",32),h._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,he,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function Ce(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){h.CHM(_e);const se=h.oxw();return h.KtG(se.onSwipe(_t))}),h.O4$(),h.TgZ(1,"svg",124)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),h._UZ(13,"rect",127)(14,"rect",128)(15,"rect",129)(16,"circle",130)(17,"rect",131)(18,"rect",132)(19,"circle",133)(20,"rect",134)(21,"rect",135)(22,"rect",136)(23,"rect",137)(24,"rect",138)(25,"circle",139)(26,"circle",140)(27,"circle",141),h.qZA(),h.TgZ(28,"g",142)(29,"g",143)(30,"g",144),h._UZ(31,"path",145)(32,"rect",146)(33,"polygon",147),h.TgZ(34,"g",148),h._UZ(35,"path",149),h.qZA(),h._UZ(36,"rect",150)(37,"rect",151)(38,"rect",152)(39,"rect",153)(40,"rect",154)(41,"rect",155)(42,"rect",156)(43,"path",157)(44,"path",158),h.qZA(),h.TgZ(45,"g",159),h._UZ(46,"path",160)(47,"path",161)(48,"path",162)(49,"path",163)(50,"path",164)(51,"path",165)(52,"path",166)(53,"path",167)(54,"path",168)(55,"path",169)(56,"path",170)(57,"circle",171)(58,"circle",172),h.qZA(),h._UZ(59,"path",173),h.qZA()()()()()(),h.kcU(),h.TgZ(60,"div",30)(61,"mat-card-title"),h._uU(62,"Done!"),h.qZA()(),h.TgZ(63,"div",31)(64,"mat-card-subtitle",32),h._uU(65," Final settlement occurs when your node sweeps the on-chain payment and the loop server settles the lightning invoice. You receive the payment on-chain in your wallet and also move local balance to the remote side of the channel, gaining inbound capacity. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,he,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}let Se=(()=>{class Be{constructor(_e){this.commonService=_e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=d.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(_e){2===_e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===_e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Be.\u0275fac=function(_e){return new(_e||Be)(h.Y36(w.v))},Be.\u0275cmp=h.Xpm({type:Be,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopOut_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopOut_Step02","transform","translate(-540.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(540.000000, 210.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["fxFlex","30","viewBox","0 0 373 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","LoopOut_Step03","transform","translate(-460.000000, -210.000000)"],["id","Loop_Step03","transform","translate(460.000000, 210.000000)"],["id","Oval","fill-rule","nonzero","cx","330.487742","cy","57.4877419","r","42.4877419",1,"fill-color-2"],["d","M345.082742,43.5000036 C349.446821,43.5000036 352.999928,40.1343958 352.999928,36.0000215 C352.999928,31.8656472 349.446821,28.5000393 345.082742,28.5000393 C341.98433,28.5000393 339.560889,30.4359631 337.999964,32.1843872 C336.43904,30.4359631 334.015599,28.5000393 330.917187,28.5000393 C326.553107,28.5000393 323,31.8656472 323,36.0000215 C323,40.1343958 326.553107,43.5000036 330.917187,43.5000036 C334.015599,43.5000036 336.43904,41.5640798 337.999964,39.8156557 C339.560889,41.5640798 341.98433,43.5000036 345.082742,43.5000036 Z M330.917187,39.0000143 C329.032807,39.0000143 327.499989,37.6546959 327.499989,36.0000286 C327.499989,34.3453471 329.032807,33.0000286 330.917187,33.0000286 C332.707771,33.0000286 334.357776,34.6921938 335.323426,36.0000286 C334.36716,37.2937501 332.703102,39.0000143 330.917187,39.0000143 Z M345.082742,39.0000143 C343.292157,39.0000143 341.642152,37.3078492 340.676502,36.0000286 C341.632768,34.7062929 343.296827,33.0000286 345.082742,33.0000286 C346.967121,33.0000286 348.499939,34.3453471 348.499939,36.0000286 C348.499939,37.6546959 346.967121,39.0000143 345.082742,39.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(113.000000, 79.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-22"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(265.000000, 50.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-3"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["d","M46.60483,51.432122 C46.8713708,51.432122 47.1252368,51.2924832 47.2648756,51.0513229 L52.8499289,41.4044125 C53.145042,40.8998413 52.7801095,40.2620153 52.1930443,40.2620153 L48.5310139,40.2620153 L49.8828693,36.1430446 C50.0098023,35.6606929 49.6448699,35.184694 49.1466515,35.184694 L44.5770624,35.184694 C44.1962633,35.184694 43.8725779,35.4671324 43.8218171,35.8447396 L42.8063528,43.4607214 C42.7460473,43.9176927 43.1014659,44.3238722 43.5615982,44.3238722 L47.3283421,44.3238722 L45.8654203,50.4959909 C45.751193,50.9783426 46.1192864,51.432122 46.60483,51.432122 Z","id","b","fill-rule","nonzero","transform","translate(47.877046, 43.308408) rotate(14.000000) translate(-47.877046, -43.308408) ",1,"fill-color-12"],["id","Group-34","fill-rule","nonzero"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","17.5648113","r","8.78679245"],["id","Oval","cx","76.317438","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-8"],["id","Path","opacity","0.222721354","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-18"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-8"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-14"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step04","transform","translate(-503.000000, -212.000000)"],["id","Loop_Step04","transform","translate(503.000000, 212.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M46.519593,50.6740439 L46.519593,48.5460252 C46.9395628,48.5560039 47.349554,48.5560039 47.739557,48.5560039 L47.739557,50.6740439 L49.2794877,50.6740439 L49.2794877,48.5160274 C51.8593644,48.3760168 53.5840235,47.7260428 53.8140277,45.2961554 C53.9939838,43.3462645 53.0739982,42.476265 51.6140824,42.1263004 C52.4940295,41.6763328 53.054041,40.8763386 52.92404,39.5463928 C52.7540005,37.7264719 51.2593765,37.1164744 49.2794567,36.9465279 L49.2794567,34.4266159 L47.739526,34.4266159 L47.739526,36.8765226 C47.3395134,36.8765226 46.9295222,36.8865012 46.519562,36.8965108 L46.519562,34.4266159 L44.9796003,34.4266159 L44.9796003,36.9465279 C44.413422,36.9636341 43.7539962,36.9552669 41.8897293,36.9465279 L41.8897293,38.5864308 C43.1055717,38.564924 43.7434908,38.4867995 43.8896683,39.2663716 L43.8896683,46.1661239 C43.7968547,46.7846435 43.3018283,46.6955796 42.1997174,46.6760872 L41.8897293,48.5060178 C44.6975648,48.5060178 44.9796313,48.5160274 44.9796313,48.5160274 L44.9796313,50.6740439 L46.519593,50.6740439 Z M46.5495908,41.7662953 L46.5495908,38.6964125 C47.4195593,38.6964125 50.1394466,38.4264629 50.1394466,40.2363742 C50.1394466,41.9663016 47.4195903,41.7662953 46.5495908,41.7662953 Z M46.5495908,46.6860969 L46.5495908,43.306257 C47.5895368,43.306257 50.7741427,43.0162572 50.7741427,44.9962079 C50.7741427,46.9060914 47.5895368,46.6860969 46.5495908,46.6860969 Z","id","B","fill-rule","nonzero","transform","translate(47.863077, 42.550330) rotate(14.000000) translate(-47.863077, -42.550330) ",1,"fill-color-29"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step05","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step05","transform","translate(542.000000, 210.000000)"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"]],template:function(_e,Je){if(1&_e&&(h.YNc(0,ye,1,0,"ng-container",0),h.YNc(1,de,32,5,"ng-template",null,1,h.W1O),h.YNc(3,we,51,5,"ng-template",null,2,h.W1O),h.YNc(5,Y,74,5,"ng-template",null,3,h.W1O),h.YNc(7,j,53,5,"ng-template",null,4,h.W1O),h.YNc(9,Ce,66,5,"ng-template",null,5,h.W1O)),2&_e){const _t=h.MAs(2),se=h.MAs(4),Xe=h.MAs(6),bt=h.MAs(8),Vt=h.MAs(10);h.Q6J("ngTemplateOutlet",1===Je.stepNumber?_t:2===Je.stepNumber?se:3===Je.stepNumber?Xe:4===Je.stepNumber?bt:Vt)}},dependencies:[L.mk,L.tP,G.xw,G.Wh,G.yH,K.oO,re.n5,re.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Oe.l]}}),Be})();const X=["stepper"];function Ye(Be,kt){if(1&Be&&(h.TgZ(0,"div",48)(1,"p",49)(2,"strong"),h._uU(3,"Channel Peer:\xa0"),h.qZA(),h._uU(4),h.ALo(5,"titlecase"),h.qZA(),h.TgZ(6,"p",50)(7,"strong"),h._uU(8,"Channel ID:\xa0"),h.qZA(),h._uU(9),h.qZA(),h._UZ(10,"p",50),h.qZA()),2&Be){const _e=h.oxw(2);h.xp6(4),h.Oqu(h.lcZ(5,2,_e.channel.remote_alias)),h.xp6(5),h.Oqu(_e.channel.chan_id)}}function Le(Be,kt){if(1&Be&&h._uU(0),2&Be){const _e=h.oxw(2);h.Oqu(_e.inputFormLabel)}}function gt(Be,kt){1&Be&&(h.TgZ(0,"mat-error"),h._uU(1,"Amount is required."),h.qZA())}function Wt(Be,kt){if(1&Be&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&Be){const _e=h.oxw(2);h.xp6(1),h.hij("Amount must be greater than or equal to ",h.lcZ(2,1,_e.minQuote.amount),".")}}function Rt(Be,kt){if(1&Be&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&Be){const _e=h.oxw(2);h.xp6(1),h.hij("Amount must be less than or equal to ",h.lcZ(2,1,_e.maxQuote.amount),".")}}function jt(Be,kt){1&Be&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target is required."),h.qZA())}function hi(Be,kt){1&Be&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target must be a positive number."),h.qZA())}function yt(Be,kt){1&Be&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage is required."),h.qZA())}function Pt(Be,kt){1&Be&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage must be a positive number."),h.qZA())}function pt(Be,kt){if(1&Be&&(h.TgZ(0,"mat-form-field",50),h._UZ(1,"input",51),h.YNc(2,yt,2,0,"mat-error",25),h.YNc(3,Pt,2,0,"mat-error",25),h.qZA()),2&Be){const _e=h.oxw(2);h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==_e.inputFormGroup.controls.routingFeePercent.errors?null:_e.inputFormGroup.controls.routingFeePercent.errors.required),h.xp6(1),h.Q6J("ngIf",null==_e.inputFormGroup.controls.routingFeePercent.errors?null:_e.inputFormGroup.controls.routingFeePercent.errors.min)}}function vt(Be,kt){1&Be&&(h.TgZ(0,"div",52)(1,"mat-slide-toggle",53),h._uU(2,"Fast"),h.qZA(),h.TgZ(3,"mat-icon",54),h._uU(4,"info_outline"),h.qZA()())}function Ct(Be,kt){if(1&Be&&h._uU(0),2&Be){const _e=h.oxw(2);h.Oqu(_e.quoteFormLabel)}}function At(Be,kt){1&Be&&(h.TgZ(0,"p",55)(1,"mat-icon",56),h._uU(2,"close"),h.qZA(),h._uU(3,"Local balance amount is insufficient for swap."),h.qZA())}function dt(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",57),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw(2);return h.KtG(_t.onValidateAmount())}),h._uU(1,"Next"),h.qZA()}}function ze(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",58),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw(2);return h.KtG(_t.onLoop())}),h._uU(1),h.qZA()}if(2&Be){const _e=h.oxw(2);h.xp6(1),h.hij("Initiate ",_e.loopDirectionCaption,"")}}function Ve(Be,kt){if(1&Be&&h._uU(0),2&Be){const _e=h.oxw(3);h.Oqu(_e.addressFormLabel)}}function Fe(Be,kt){1&Be&&(h.TgZ(0,"mat-error"),h._uU(1,"Address is required."),h.qZA())}function be(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"mat-step",16)(1,"form",17),h.YNc(2,Ve,1,1,"ng-template",18),h.TgZ(3,"div",59)(4,"mat-radio-group",60),h.NdJ("change",function(_t){h.CHM(_e);const se=h.oxw(2);return h.KtG(se.onAddressTypeChange(_t))}),h.TgZ(5,"mat-radio-button",61),h._uU(6,"Node Local Address"),h.qZA(),h.TgZ(7,"mat-radio-button",62),h._uU(8,"External Address"),h.qZA()(),h.TgZ(9,"mat-form-field",63),h._UZ(10,"input",64),h.YNc(11,Fe,2,0,"mat-error",25),h.qZA()(),h.TgZ(12,"div",29)(13,"button",65),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw(2);return h.KtG(_t.onLoop())}),h._uU(14),h.qZA()()()()}if(2&Be){const _e=h.oxw(2);h.Q6J("stepControl",_e.addressFormGroup)("editable",_e.flgEditable),h.xp6(1),h.Q6J("formGroup",_e.addressFormGroup),h.xp6(9),h.Q6J("required","external"===_e.addressFormGroup.controls.addressType.value),h.xp6(1),h.Q6J("ngIf",null==_e.addressFormGroup.controls.address.errors?null:_e.addressFormGroup.controls.address.errors.required),h.xp6(3),h.hij("Initiate ",_e.loopDirectionCaption,"")}}function xt(Be,kt){if(1&Be&&h._uU(0),2&Be){const _e=h.oxw(2);h.hij("",_e.loopDirectionCaption," Status")}}function ct(Be,kt){if(1&Be&&(h.TgZ(0,"mat-icon",66),h._uU(1),h.qZA()),2&Be){const _e=h.oxw(2);h.xp6(1),h.Oqu(_e.loopStatus&&null!=_e.loopStatus&&_e.loopStatus.id_bytes?"check":"close")}}function Nt(Be,kt){1&Be&&h._UZ(0,"div")}function et(Be,kt){1&Be&&h._UZ(0,"mat-progress-bar",67)}function Ae(Be,kt){if(1&Be&&(h.TgZ(0,"h4",68),h._uU(1),h.qZA()),2&Be){const _e=h.oxw(2);h.xp6(1),h.Oqu(_e.loopStatus&&_e.loopStatus.error?_e.loopDirectionCaption+" failed.":_e.loopStatus&&_e.loopStatus.id_bytes&&_e.channel?_e.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":_e.loopDirectionCaption+" request placed successfully.")}}function rt(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",69),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw(2);return h.KtG(_t.goToLoop())}),h._uU(1,"Check Status"),h.qZA()}}function Qe(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",70),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw(2);return h.KtG(_t.onRestart())}),h._uU(1,"Start Again"),h.qZA()}}function Ke(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),h._uU(5),h.qZA()(),h.TgZ(6,"div",8)(7,"button",9),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw();return h.KtG(_t.showInfo())}),h._uU(8,"?"),h.qZA(),h.TgZ(9,"button",10),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw();return h.KtG(_t.onClose())}),h._uU(10,"X"),h.qZA()()(),h.TgZ(11,"mat-card-content",11)(12,"div",12),h.YNc(13,Ye,11,4,"div",13),h.TgZ(14,"mat-vertical-stepper",14,15),h.NdJ("selectionChange",function(_t){h.CHM(_e);const se=h.oxw();return h.KtG(se.stepSelectionChanged(_t))}),h.TgZ(16,"mat-step",16)(17,"form",17),h.YNc(18,Le,1,1,"ng-template",18),h.TgZ(19,"div",19),h._UZ(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",20),h.qZA(),h.TgZ(22,"div",21)(23,"mat-form-field",22),h._UZ(24,"input",23),h.TgZ(25,"mat-hint"),h._uU(26),h.ALo(27,"number"),h.ALo(28,"number"),h.qZA(),h.TgZ(29,"span",24),h._uU(30,"Sats"),h.qZA(),h.YNc(31,gt,2,0,"mat-error",25),h.YNc(32,Wt,3,3,"mat-error",25),h.YNc(33,Rt,3,3,"mat-error",25),h.qZA(),h.TgZ(34,"mat-form-field",22),h._UZ(35,"input",26),h.YNc(36,jt,2,0,"mat-error",25),h.YNc(37,hi,2,0,"mat-error",25),h.qZA(),h.YNc(38,pt,4,3,"mat-form-field",27),h.qZA(),h.YNc(39,vt,5,0,"div",28),h.TgZ(40,"div",29)(41,"button",30),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw();return h.KtG(_t.onEstimateQuote())}),h._uU(42,"Estimate Quote"),h.qZA()()()(),h.TgZ(43,"mat-step",16)(44,"form",17),h.YNc(45,Ct,1,1,"ng-template",18),h._UZ(46,"rtl-loop-quote",31),h.YNc(47,At,4,0,"p",32),h.TgZ(48,"div",29),h.YNc(49,dt,2,0,"button",33),h.YNc(50,ze,2,1,"button",34),h.qZA()()(),h.YNc(51,be,15,6,"mat-step",35),h.TgZ(52,"mat-step",36)(53,"form",17),h.YNc(54,xt,1,1,"ng-template",18),h.TgZ(55,"div",37)(56,"mat-expansion-panel",38)(57,"mat-expansion-panel-header")(58,"mat-panel-title")(59,"span",39),h._uU(60),h.YNc(61,ct,2,1,"mat-icon",40),h.qZA()()(),h.YNc(62,Nt,1,0,"div",41),h.qZA(),h.YNc(63,et,1,0,"mat-progress-bar",42),h.qZA(),h.YNc(64,Ae,2,1,"h4",43),h.TgZ(65,"div",29),h.YNc(66,rt,2,0,"button",44),h.YNc(67,Qe,2,0,"button",45),h.qZA()()()(),h.TgZ(68,"div",46)(69,"button",47),h._uU(70,"Close"),h.qZA()()()()()()}if(2&Be){const _e=h.oxw(),Je=h.MAs(2);h.Q6J("@opacityAnimation",void 0),h.xp6(3),h.Q6J("fxFlex",_e.screenSize===_e.screenSizeEnum.XS||_e.screenSize===_e.screenSizeEnum.SM?"83":"91"),h.xp6(2),h.Oqu(_e.channel?"Channel "+_e.loopDirectionCaption:_e.loopDirectionCaption),h.xp6(1),h.Q6J("fxFlex",_e.screenSize===_e.screenSizeEnum.XS||_e.screenSize===_e.screenSizeEnum.SM?"17":"9"),h.xp6(7),h.Q6J("ngIf",_e.channel),h.xp6(1),h.Q6J("linear",!0),h.xp6(2),h.Q6J("stepControl",_e.inputFormGroup)("editable",_e.flgEditable),h.xp6(1),h.Q6J("formGroup",_e.inputFormGroup),h.xp6(3),h.Q6J("quote",_e.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),h.xp6(1),h.Q6J("quote",_e.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),h.xp6(2),h.Q6J("fxFlex",_e.direction===_e.LoopTypeEnum.LOOP_OUT?"35":"48"),h.xp6(1),h.Q6J("step",1e3),h.xp6(2),h.AsE("Range: ",h.lcZ(27,51,_e.minQuote.amount),"-",h.lcZ(28,53,_e.maxQuote.amount),""),h.xp6(5),h.Q6J("ngIf",null==_e.inputFormGroup.controls.amount.errors?null:_e.inputFormGroup.controls.amount.errors.required),h.xp6(1),h.Q6J("ngIf",null==_e.inputFormGroup.controls.amount.errors?null:_e.inputFormGroup.controls.amount.errors.min),h.xp6(1),h.Q6J("ngIf",null==_e.inputFormGroup.controls.amount.errors?null:_e.inputFormGroup.controls.amount.errors.max),h.xp6(1),h.Q6J("fxFlex",_e.direction===_e.LoopTypeEnum.LOOP_OUT?"30":"48"),h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==_e.inputFormGroup.controls.sweepConfTarget.errors?null:_e.inputFormGroup.controls.sweepConfTarget.errors.required),h.xp6(1),h.Q6J("ngIf",null==_e.inputFormGroup.controls.sweepConfTarget.errors?null:_e.inputFormGroup.controls.sweepConfTarget.errors.min),h.xp6(1),h.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),h.xp6(4),h.Q6J("stepControl",_e.quoteFormGroup)("editable",_e.flgEditable),h.xp6(1),h.Q6J("formGroup",_e.quoteFormGroup),h.xp6(2),h.Q6J("quote",_e.quote)("showPanel",!1),h.xp6(1),h.Q6J("ngIf",_e.inputFormGroup.controls.amount.value>_e.localBalanceToCompare),h.xp6(2),h.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_IN),h.xp6(1),h.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("stepControl",_e.statusFormGroup),h.xp6(1),h.Q6J("formGroup",_e.statusFormGroup),h.xp6(3),h.Q6J("expanded",!!_e.loopStatus),h.xp6(4),h.Oqu(_e.loopStatus?_e.loopStatus.id_bytes?_e.loopDirectionCaption+" request details":_e.loopDirectionCaption+" error details":"Waiting for "+_e.loopDirectionCaption+" request..."),h.xp6(1),h.Q6J("ngIf",_e.loopStatus),h.xp6(1),h.Q6J("ngIf",!_e.loopStatus)("ngIfElse",Je),h.xp6(1),h.Q6J("ngIf",!_e.loopStatus),h.xp6(1),h.Q6J("ngIf",_e.loopStatus),h.xp6(2),h.Q6J("ngIf",_e.loopStatus&&_e.loopStatus.id_bytes&&_e.channel),h.xp6(1),h.Q6J("ngIf",_e.loopStatus&&(_e.loopStatus.error||!_e.loopStatus.id_bytes)),h.xp6(2),h.Q6J("mat-dialog-close",!1)}}function mt(Be,kt){if(1&Be&&h._UZ(0,"rtl-loop-status",71),2&Be){const _e=h.oxw();h.Q6J("loopStatus",_e.loopStatus)}}function $t(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"rtl-loop-out-info-graphics",88),h.NdJ("stepNumberChange",function(_t){h.CHM(_e);const se=h.oxw(2);return h.KtG(se.stepNumber=_t)}),h.qZA()}if(2&Be){const _e=h.oxw(2);h.Q6J("stepNumber",_e.stepNumber)("animationDirection",_e.animationDirection)}}function Gt(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"rtl-loop-in-info-graphics",88),h.NdJ("stepNumberChange",function(_t){h.CHM(_e);const se=h.oxw(2);return h.KtG(se.stepNumber=_t)}),h.qZA()}if(2&Be){const _e=h.oxw(2);h.Q6J("stepNumber",_e.stepNumber)("animationDirection",_e.animationDirection)}}const zt=function(Be,kt){return{"dot-primary":Be,"dot-primary-lighter":kt}};function Et(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"span",89),h.NdJ("click",function(){const se=h.CHM(_e).$implicit,Xe=h.oxw(2);return h.KtG(Xe.onStepChanged(se))}),h._UZ(1,"p",90),h.qZA()}if(2&Be){const _e=kt.$implicit,Je=h.oxw(2);h.xp6(1),h.Q6J("ngClass",h.WLB(1,zt,Je.stepNumber===_e,Je.stepNumber!==_e))}}function ht(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",91),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw(2);return h.KtG(_t.onReadMore())}),h._uU(1,"Read More"),h.qZA()}}function at(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",92),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw(2);return h.KtG(_t.onStepChanged(4))}),h._uU(1,"Back"),h.qZA()}}function ei(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",93),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw(2);return _t.flgShowInfo=!1,h.KtG(_t.stepNumber=1)}),h._uU(1,"Close"),h.qZA()}}function Ut(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",94),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw(2);return _t.flgShowInfo=!1,h.KtG(_t.stepNumber=1)}),h._uU(1,"Close"),h.qZA()}}function qt(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",95),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw(2);return h.KtG(_t.onStepChanged(_t.stepNumber-1))}),h._uU(1,"Back"),h.qZA()}}function Pi(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",96),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw(2);return h.KtG(_t.onStepChanged(_t.stepNumber+1))}),h._uU(1,"Next"),h.qZA()}}const Ii=function(){return[1,2,3,4,5]};function Ei(Be,kt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",72)(1,"div",19)(2,"mat-card-header",73)(3,"div",74),h._UZ(4,"span",7),h.qZA(),h.TgZ(5,"div",75)(6,"button",76),h.NdJ("click",function(){h.CHM(_e);const _t=h.oxw();return _t.flgShowInfo=!1,h.KtG(_t.stepNumber=1)}),h._uU(7,"X"),h.qZA()()(),h.TgZ(8,"mat-card-content",77),h.YNc(9,$t,1,2,"rtl-loop-out-info-graphics",78),h.YNc(10,Gt,1,2,"rtl-loop-in-info-graphics",78),h.qZA(),h.TgZ(11,"div",79),h.YNc(12,Et,2,4,"span",80),h.qZA(),h.TgZ(13,"div",81),h.YNc(14,ht,2,0,"button",82),h.YNc(15,at,2,0,"button",83),h.YNc(16,ei,2,0,"button",84),h.YNc(17,Ut,2,0,"button",85),h.YNc(18,qt,2,0,"button",86),h.YNc(19,Pi,2,0,"button",87),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@opacityAnimation",void 0),h.xp6(9),h.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_IN),h.xp6(2),h.Q6J("ngForOf",h.DdM(10,Ii)),h.xp6(2),h.Q6J("ngIf",5===_e.stepNumber),h.xp6(1),h.Q6J("ngIf",5===_e.stepNumber),h.xp6(1),h.Q6J("ngIf",5===_e.stepNumber),h.xp6(1),h.Q6J("ngIf",_e.stepNumber<5),h.xp6(1),h.Q6J("ngIf",_e.stepNumber>1&&_e.stepNumber<5),h.xp6(1),h.Q6J("ngIf",_e.stepNumber<5)}}let Vi=(()=>{class Be{constructor(_e,Je,_t,se,Xe,bt,Vt,mi,Hi){this.dialogRef=_e,this.data=Je,this.store=_t,this.loopService=se,this.formBuilder=Xe,this.decimalPipe=bt,this.logger=Vt,this.router=mi,this.commonService=Hi,this.faInfoCircle=a.sqG,this.LoopTypeEnum=d.$I,this.direction=d.$I.LOOP_OUT,this.loopDirectionCaption="Loop out",this.loopStatus=null,this.inputFormLabel="Amount to loop out",this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address",this.prepayRoutingFee=36,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=d.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction||d.$I.LOOP_OUT,this.loopDirectionCaption=this.direction===d.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[t.kI.required,t.kI.min(this.minQuote.amount||0),t.kI.max(this.maxQuote.amount||0)]],sweepConfTarget:[6,[t.kI.required,t.kI.min(1)]],routingFeePercent:[2,[t.kI.required,t.kI.min(0)]],fast:[!1,[t.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[t.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(R.ZW).pipe((0,f.R)(this.unSubs[6])).subscribe(_e=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:_e.lightningBalance&&_e.lightningBalance.local?+_e.lightningBalance.local:null})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===d.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,f.R)(this.unSubs[4])).subscribe(_e=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===d.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,f.R)(this.unSubs[5])).subscribe(_e=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(_e){"external"===_e.value?(this.addressFormGroup.controls.address.setValidators([t.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onValidateAmount(){this.localBalanceToCompare&&this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.value<this.minQuote.amount||this.maxQuote.amount&&this.inputFormGroup.controls.amount.value>this.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===d.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===d.$I.LOOP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,this.stepper.selected?.stepControl.setErrors(null),this.stepper.next(),this.direction===d.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+(this.quote.swap_fee_sat||0),+(this.quote.htlc_publish_fee_sat||0),"",!0).pipe((0,f.R)(this.unSubs[0])).subscribe({next:_e=>{this.loopStatus=_e,this.loopService.listSwaps(),this.flgEditable=!0},error:_e=>{this.loopStatus={error:_e},this.flgEditable=!0,this.logger.error(_e)}});else{const _e=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),Je="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",_t=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,_e,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),_t,Je).pipe((0,f.R)(this.unSubs[1])).subscribe({next:se=>{this.loopStatus=se,this.loopService.listSwaps(),this.flgEditable=!0},error:se=>{this.loopStatus={error:se},this.flgEditable=!0,this.logger.error(se)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.value<this.minQuote.amount||this.maxQuote.amount&&this.inputFormGroup.controls.amount.value>this.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const _e=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===d.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,_e).pipe((0,f.R)(this.unSubs[2])).subscribe(Je=>{this.quote=Je,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,_e).pipe((0,f.R)(this.unSubs[3])).subscribe(Je=>{this.quote=Je,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(_e){switch(_e.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===d.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Percentage: "+(this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:"2")+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===d.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel=this.quote&&this.quote.swap_fee_sat&&(this.quote.htlc_sweep_fee_sat||this.quote.htlc_publish_fee_sat)&&this.quote.prepay_amt_sat?"Quote confirmed | Estimated Fees: "+this.decimalPipe.transform(+this.quote.swap_fee_sat+ +(this.quote.htlc_sweep_fee_sat?this.quote.htlc_sweep_fee_sat:this.quote.htlc_publish_fee_sat?this.quote.htlc_publish_fee_sat:0))+" Sats":"Quote confirmed",this.addressFormLabel=this.addressFormGroup.controls.addressType.value?"Withdrawal Address | Type: "+this.addressFormGroup.controls.addressType.value:"Withdrawal Address"}(this.direction===d.$I.LOOP_OUT&&1!==_e.selectedIndex&&_e.selectedIndex<_e.previouslySelectedIndex||this.direction===d.$I.LOOP_IN&&_e.selectedIndex<_e.previouslySelectedIndex)&&_e.selectedStep.stepControl.setErrors({Invalid:!0})}goToLoop(){this.dialogRef.close(!0),this.router.navigateByUrl("/services/loop")}onClose(){this.dialogRef.close(!0)}showInfo(){this.flgShowInfo=!0}onReadMore(){this.direction===d.$I.LOOP_IN?window.open("https://blog.lightning.engineering/announcement/2019/06/25/loop-in.html","_blank"):window.open("https://blog.lightning.engineering/technical/posts/2019/04/15/loop-out-in-depth.html","_blank"),this.onClose()}onStepChanged(_e){this.animationDirection=_e<this.stepNumber?"backward":"forward",this.stepNumber=_e}onRestart(){this.stepper.reset(),this.flgEditable=!0,this.inputFormGroup.reset({amount:this.minQuote.amount,sweepConfTarget:6,routingFeePercent:2,fast:!1}),this.quoteFormGroup.reset(),this.statusFormGroup.reset(),this.addressFormGroup.reset({addressType:"local",address:""}),this.addressFormGroup.controls.address.disable()}ngOnDestroy(){this.unSubs.forEach(_e=>{_e.next(null),_e.complete()})}}return Be.\u0275fac=function(_e){return new(_e||Be)(h.Y36(C.so),h.Y36(C.WI),h.Y36(I.yh),h.Y36(E.W),h.Y36(t.QS),h.Y36(L.JJ),h.Y36(T.mQ),h.Y36(N.F0),h.Y36(w.v))},Be.\u0275cmp=h.Xpm({type:Be,selectors:[["rtl-loop-modal"]],viewQuery:function(_e,Je){if(1&_e&&h.Gf(X,5),2&_e){let _t;h.iGM(_t=h.CRH())&&(Je.stepper=_t.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["loopStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Sweep Confirmation Target","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","placeholder","Max Off-chain Routing Fee (%)","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(_e,Je){1&_e&&(h.YNc(0,Ke,71,55,"div",0),h.YNc(1,mt,1,1,"ng-template",null,1,h.W1O),h.YNc(3,Ei,20,11,"div",2)),2&_e&&(h.Q6J("ngIf",!Je.flgShowInfo),h.xp6(3),h.Q6J("ngIf",Je.flgShowInfo))},dependencies:[L.mk,L.sg,L.O5,t._Y,t.Fj,t.wV,t.JJ,t.JL,t.Q7,t.sg,t.u,G.xw,G.Wh,G.yH,K.oO,C.ZT,Q.lW,re.dk,re.dn,ie.ib,ie.yz,ie.yK,ce.Hw,ae.TO,ae.KE,ae.bx,ae.R9,ne.Nt,le.pW,ee.VQ,ee.U0,pe.Rr,S.gM,i.C0,i.VY,i.Vq,r.h,P,Pe,Ee,Se,L.JJ,L.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[M._]}}),Be})()},9442:(ke,J,p)=>{"use strict";p.d(J,{w:()=>R});var t=p(2687),e=p(4650),f=p(9116),C=p(2216),a=p(1576),M=p(4859),d=p(3546);let R=(()=>{class h{constructor(E){this.router=E,this.faTimes=t.NBC}goToHelp(){this.router.navigate(["/help"])}}return h.\u0275fac=function(E){return new(E||h)(e.Y36(f.F0))},h.\u0275cmp=e.Xpm({type:h,selectors:[["rtl-not-found"]],decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(E,L){1&E&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Page Not Found"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),e._uU(9,"This page does not exist!"),e.qZA(),e.TgZ(10,"span",7)(11,"button",8),e.NdJ("click",function(){return L.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()()),2&E&&(e.xp6(1),e.Q6J("icon",L.faTimes))},dependencies:[C.BN,a.xw,a.Wh,a.yH,M.lW,d.a8,d.dn],encapsulation:2}),h})()},3390:(ke,J,p)=>{"use strict";p.d(J,{h:()=>e});var t=p(4650);let e=(()=>{class f{constructor(a){this.el=a}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return f.\u0275fac=function(a){return new(a||f)(t.Y36(t.SBq))},f.\u0275dir=t.lG2({type:f,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),f})()},5199:(ke,J,p)=>{"use strict";p.d(J,{y:()=>e});var t=p(4650);let e=(()=>{class f{constructor(){this.copied=new t.vpe}onClick(a){a.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},M=>{this.copied.emit("Error could not copy text: "+JSON.stringify(M))})}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275dir=t.lG2({type:f,selectors:[["","rtlClipboard",""]],hostBindings:function(a,M){1&a&&t.NdJ("click",function(R){return M.onClick(R)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),f})()},9843:(ke,J,p)=>{"use strict";p.d(J,{F:()=>f});var t=p(4006),e=p(4650);let f=(()=>{class C{validate(M){return this.max?t.kI.max(+this.max)(M):null}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275dir=e.lG2({type:C,selectors:[["input","max",""]],inputs:{max:"max"},features:[e._Bn([{provide:t.Cf,useExisting:C,multi:!0}])]}),C})()},6534:(ke,J,p)=>{"use strict";p.d(J,{q:()=>f});var t=p(4006),e=p(4650);let f=(()=>{class C{validate(M){return this.min?t.kI.min(+this.min)(M):null}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275dir=e.lG2({type:C,selectors:[["input","min",""]],inputs:{min:"min"},features:[e._Bn([{provide:t.Cf,useExisting:C,multi:!0}])]}),C})()},9445:(ke,J,p)=>{"use strict";p.d(J,{D3:()=>a,al:()=>e,h9:()=>f,i1:()=>C});var t=p(4650);let e=(()=>{class M{transform(R,h){return R?.replace(/^[0]+/g,"")}}return M.\u0275fac=function(R){return new(R||M)},M.\u0275pipe=t.Yjl({name:"removeleadingzeros",type:M,pure:!0}),M})(),f=(()=>{class M{transform(R,h){return R?.replace(/(?:^\w|[A-Z]|\b\w)/g,(I,E)=>I.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}}return M.\u0275fac=function(R){return new(R||M)},M.\u0275pipe=t.Yjl({name:"camelcase",type:M,pure:!0}),M})(),C=(()=>{class M{transform(R,h,I){return R.replace(/(?:^\w|[A-Z]|\b\w)/g,(E,L)=>" "+E.toUpperCase())}}return M.\u0275fac=function(R){return new(R||M)},M.\u0275pipe=t.Yjl({name:"camelCaseWithSpaces",type:M,pure:!0}),M})(),a=(()=>{class M{transform(R,h,I){return R=R?.toLowerCase().replace(/\s+/g,"")?.replace(/-/g," "),h&&(R=R.replace(new RegExp(h,"g")," ")),I&&(R=R.replace(new RegExp(I,"g")," ")),R.replace(/(?:^\w|[A-Z]|\b\w)/g,(E,L)=>E.toUpperCase())}}return M.\u0275fac=function(R){return new(R||M)},M.\u0275pipe=t.Yjl({name:"camelcaseWithReplace",type:M,pure:!0}),M})()},1643:(ke,J,p)=>{"use strict";p.d(J,{QM:()=>M,a1:()=>a,eQ:()=>d,fY:()=>R});var t=p(4004),e=p(4650),f=p(9116),C=p(5986);let a=(()=>{class h{constructor(E,L){this.router=E,this.sessionService=L}canActivate(E){return!(!this.sessionService.getItem("token")||"settings"!==E.url[0].path&&"auth"!==E.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return h.\u0275fac=function(E){return new(E||h)(e.LFG(f.F0),e.LFG(C.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),M=(()=>{class h{constructor(E){this.sessionService=E}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(E=>E.lndUnlocked))}}return h.\u0275fac=function(E){return new(E||h)(e.LFG(C.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),d=(()=>{class h{constructor(E){this.sessionService=E}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(E=>E.clUnlocked))}}return h.\u0275fac=function(E){return new(E||h)(e.LFG(C.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),R=(()=>{class h{constructor(E){this.sessionService=E}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(E=>E.eclUnlocked))}}return h.\u0275fac=function(E){return new(E||h)(e.LFG(C.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})()},62:(ke,J,p)=>{"use strict";p.d(J,{v:()=>E});var t=p(1135),e=p(9646),f=p(2843),C=p(5698),a=p(4004),M=p(262),d=p(7731),R=p(4650),h=p(8104),I=p(5043);let E=(()=>{class L{constructor(N,w){this.dataService=N,this.logger=w,this.currencyUnits=[],this.CurrencyUnitEnum=d.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=d.Bn.UN_INITIATED,this.screenSize=d.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new t.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(N){this.screenSize=N}getContainerSize(){return this.containerSize}setContainerSize(N,w){this.containerSize={width:N,height:w},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(N,w,G,K="asc"){return N.sort("number"===G?"desc"===K?(Q,re)=>+Q[w]>+re[w]?-1:1:(Q,re)=>+Q[w]>+re[w]?1:-1:"desc"===K?(Q,re)=>Q[w]>re[w]?-1:1:(Q,re)=>Q[w]>re[w]?1:-1)}sortDescByKey(N,w){return N.sort((G,K)=>{const Q=+G[w],re=+K[w];return Q>re?-1:Q<re?1:0})}sortAscByKey(N,w){return N.sort((G,K)=>{const Q=+G[w],re=+K[w];return Q<re?-1:Q>re?1:0})}camelCase(N){return N?.replace(/(?:^\w|[A-Z]|\b\w)/g,(w,G)=>w.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}titleCase(N,w,G){return w&&G&&""!==w&&""!==G&&(N=N?.replace(new RegExp(w,"g"),G)),N.indexOf("!\n")>0||N.indexOf(".\n")>0?N.split("\n")?.reduce((K,Q)=>K+Q.charAt(0).toUpperCase()+Q.substring(1).toLowerCase()+"\n",""):N.indexOf(" ")>0?N.split(" ")?.reduce((K,Q)=>K+Q.charAt(0).toUpperCase()+Q.substring(1).toLowerCase()+" ",""):N.charAt(0).toUpperCase()+N.substring(1).toLowerCase()}convertCurrency(N,w,G,K,Q){const re=(new Date).valueOf();return Q&&K&&this.ratesAPIStatus!==d.Bn.INITIATED&&(w===d.NT.OTHER||G===d.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&re<this.conversionData.last_fetched+3e5?(0,e.of)(this.convertWithFiat(N,w,K)):(this.ratesAPIStatus=d.Bn.INITIATED,this.dataService.getFiatRates().pipe((0,C.q)(1),(0,a.U)(ie=>(this.ratesAPIStatus=d.Bn.COMPLETED,this.conversionData.data=ie&&"object"==typeof ie?ie:ie&&"string"==typeof ie?JSON.parse(ie):{},this.conversionData.last_fetched=re,this.convertWithFiat(N,w,K))),(0,M.K)(ie=>(this.ratesAPIStatus=d.Bn.ERROR,(0,f._)(()=>this.extractErrorMessage(ie,"Currency Conversion Error.")))))):(0,e.of)(this.convertWithoutFiat(N,w))}convertWithoutFiat(N,w){const G={};switch(G[d.NT.SATS]=0,G[d.NT.BTC]=0,w){case d.NT.SATS:G[d.NT.SATS]=N,G[d.NT.BTC]=1e-8*N;break;case d.NT.BTC:G[d.NT.SATS]=1e8*N,G[d.NT.BTC]=N}return G}convertWithFiat(N,w,G){const K={unit:G,symbol:this.conversionData.data[G].symbol};switch(K[d.NT.SATS]=0,K[d.NT.BTC]=0,K[d.NT.OTHER]=0,w){case d.NT.SATS:K[d.NT.SATS]=N,K[d.NT.BTC]=1e-8*N,K[d.NT.OTHER]=1e-8*N*this.conversionData.data[G].last;break;case d.NT.BTC:K[d.NT.SATS]=1e8*N,K[d.NT.BTC]=N,K[d.NT.OTHER]=N*this.conversionData.data[G].last;break;case d.NT.OTHER:K[d.NT.SATS]=N/this.conversionData.data[G].last*1e8,K[d.NT.BTC]=N/this.conversionData.data[G].last,K[d.NT.OTHER]=N}return K}convertTime(N,w,G){switch(w){case d.Qk.SECS:switch(G){case d.Qk.MINS:N/=60;break;case d.Qk.HOURS:N/=3600;break;case d.Qk.DAYS:N/=86400}break;case d.Qk.MINS:switch(G){case d.Qk.SECS:N*=60;break;case d.Qk.HOURS:N/=60;break;case d.Qk.DAYS:N/=1440}break;case d.Qk.HOURS:switch(G){case d.Qk.SECS:N*=3600;break;case d.Qk.MINS:N*=60;break;case d.Qk.DAYS:N/=24}break;case d.Qk.DAYS:switch(G){case d.Qk.SECS:N=3600*N*24;break;case d.Qk.MINS:N=60*N*24;break;case d.Qk.HOURS:N*=24}}return N}downloadFile(N,w,G=".json",K=".csv"){let Q=new Blob;Q=".json"===G?new Blob(["\ufeff"+this.convertToCSV(N)],{type:"text/csv;charset=utf-8;"}):new Blob([N.toString()],{type:"text/plain;charset=utf-8"});const re=document.createElement("a"),ie=URL.createObjectURL(Q);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&re.setAttribute("target","_blank"),re.setAttribute("href",ie),re.setAttribute("download",w+K),re.style.visibility="hidden",document.body.appendChild(re),re.click(),document.body.removeChild(re)}convertToCSV(N){const w=[];let G="",K="",Q="";return"object"!=typeof N&&(N=JSON.parse(N)),N.forEach((ie,ce)=>{for(const ae in ie)w.findIndex(ne=>ne===ae)<0&&w.push(ae)}),Q=w.join(",")+"\r\n",N.forEach(ie=>{G="",w.forEach(ce=>{ie.hasOwnProperty(ce)?Array.isArray(ie[ce])?(K="",ie[ce].forEach((ae,ne)=>{K+="object"==typeof ae?"("+JSON.stringify(ae)?.replace(/\,/g,";")+")":"("+ae+")"}),G+=K+","):G+="object"==typeof ie[ce]?JSON.stringify(ie[ce])?.replace(/\,/g,";")+",":ie[ce]+",":G+=","}),Q+=G.slice(0,-1)+"\r\n"}),Q}isVersionCompatible(N,w){if(N){const G=N.trim()?.replace("v","").split("-")[0].split(".")||[],K=w.split(".");return+G[0]>+K[0]||+G[0]==+K[0]&&+G[1]>+K[1]||+G[0]==+K[0]&&+G[1]==+K[1]&&+G[2]>=+K[2]}return!1}extractErrorMessage(N,w="Unknown Error."){const G=this.titleCase(N.error&&N.error.text&&"string"==typeof N.error.text&&N.error.text.includes('<!DOCTYPE html><html lang="en">')?"API Route Does Not Exist.":N.error&&N.error.error&&N.error.error.error&&N.error.error.error.error&&N.error.error.error.error.error&&"string"==typeof N.error.error.error.error.error?N.error.error.error.error.error:N.error&&N.error.error&&N.error.error.error&&N.error.error.error.error&&"string"==typeof N.error.error.error.error?N.error.error.error.error:N.error&&N.error.error&&N.error.error.error&&"string"==typeof N.error.error.error?N.error.error.error:N.error&&N.error.error&&"string"==typeof N.error.error?N.error.error:N.error&&"string"==typeof N.error?N.error:N.error&&N.error.error&&N.error.error.error&&N.error.error.error.error&&N.error.error.error.error.message&&"string"==typeof N.error.error.error.error.message?N.error.error.error.error.message:N.error&&N.error.error&&N.error.error.error&&N.error.error.error.message&&"string"==typeof N.error.error.error.message?N.error.error.error.message:N.error&&N.error.error&&N.error.error.message&&"string"==typeof N.error.error.message?N.error.error.message:N.error&&N.error.message&&"string"==typeof N.error.message?N.error.message:N.message&&"string"==typeof N.message?N.message:w);return this.logger.info("Error Message: "+G),G}extractErrorCode(N,w=500){const G=N.error&&N.error.error&&N.error.error.message&&N.error.error.message.code?N.error.error.message.code:N.error&&N.error.error&&N.error.error.code?N.error.error.code:N.error&&N.error.code?N.error.code:N.code?N.code:N.status?N.status:w;return this.logger.info("Error Code: "+G),G}extractErrorNumber(N,w=500){const G=N.error&&N.error.error&&N.error.error.errno?N.error.error.errno:N.error&&N.error.errno?N.error.errno:N.errno?N.errno:N.status?N.status:w;return this.logger.info("Error Number: "+G),G}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return L.\u0275fac=function(N){return new(N||L)(R.LFG(h.D),R.LFG(I.mQ))},L.\u0275prov=R.Yz7({token:L,factory:L.\u0275fac}),L})()},7731:(ke,J,p)=>{"use strict";p.d(J,{$I:()=>r,$v:()=>N,AB:()=>nt,At:()=>we,Bn:()=>n,Df:()=>Oe,Dr:()=>I,Er:()=>a,Fq:()=>i,Gi:()=>ae,HW:()=>le,H_:()=>De,IV:()=>d,IX:()=>W,JX:()=>k,LO:()=>M,NT:()=>ce,OJ:()=>re,OO:()=>Ie,Pi:()=>ye,Qk:()=>ie,Qw:()=>l,TJ:()=>R,Vc:()=>E,Xk:()=>Se,Xr:()=>P,Xz:()=>C,Zs:()=>S,_t:()=>h,c3:()=>Ce,cu:()=>ne,g8:()=>G,gB:()=>ve,gG:()=>de,gK:()=>Y,gg:()=>y,hG:()=>j,hZ:()=>ue,hc:()=>u,kO:()=>b,lr:()=>Pe,m6:()=>_,nM:()=>w,n_:()=>Q,ol:()=>K,op:()=>D,p7:()=>pe,pg:()=>U,pt:()=>e,uA:()=>f,uR:()=>me,vn:()=>L,wZ:()=>T,x$:()=>ee,zZ:()=>he});var t=p(8739);function e(X){const Ye=new t.ye;return Ye.itemsPerPageLabel=X+" per page:",Ye}const f=["Sats","BTC"],C={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},a=[{id:"USD",name:"USD"},{id:"AUD",name:"AUD"},{id:"BRL",name:"BRL"},{id:"CAD",name:"CAD"},{id:"CHF",name:"CHF"},{id:"CLP",name:"CLP"},{id:"CNY",name:"CNY"},{id:"DKK",name:"DKK"},{id:"EUR",name:"EUR"},{id:"GBP",name:"GBP"},{id:"HKD",name:"HKD"},{id:"INR",name:"INR"},{id:"ISK",name:"ISK"},{id:"JPY",name:"JPY"},{id:"KRW",name:"KRW"},{id:"NZD",name:"NZD"},{id:"PLN",name:"PLN"},{id:"RUB",name:"RUB"},{id:"SEK",name:"SEK"},{id:"SGD",name:"SGD"},{id:"THB",name:"THB"},{id:"TWD",name:"TWD"}],M=["SECS","MINS","HOURS","DAYS"],d=10,R=[5,10,25,100],h=[{addressId:"0",addressCode:"bech32",addressTp:"Bech32 (P2WKH)",addressDetails:"Pay to witness key hash"},{addressId:"1",addressCode:"p2sh-segwit",addressTp:"P2SH (NP2WKH)",addressDetails:"Pay to nested witness key hash (default)"},{addressId:"4",addressCode:"p2tr",addressTp:"Taproot (P2TR)",addressDetails:"Pay to taproot pubkey"}],I=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],E=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Payment Amount",placeholder:"Percentage Limit"}],L=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],T={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 N=(()=>{return(X=N||(N={})).PAYMENT_RECEIVED="payment-received",X.PAYMENT_RELAYED="payment-relayed",X.PAYMENT_SENT="payment-sent",X.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",X.PAYMENT_FAILED="payment-failed",X.CHANNEL_OPENED="channel-opened",X.CHANNEL_STATE_CHANGED="channel-state-changed",X.CHANNEL_CLOSED="channel-closed",N;var X})(),w=(()=>{return(X=w||(w={})).INVOICE="invoice",X.BLOCK_HEIGHT="block-height",X.SEND_PAYMENT="send-payment",w;var X})(),G=(()=>((G||(G={})).INVOICE="invoice",G))(),K=(()=>{return(X=K||(K={})).OPERATOR="OPERATOR",X.MERCHANT="MERCHANT",X.ALL="ALL",K;var X})(),Q=(()=>{return(X=Q||(Q={})).INFORMATION="Information",X.WARNING="Warning",X.ERROR="Error",X.SUCCESS="Success",X.CONFIRM="Confirm",Q;var X})(),re=(()=>{return(X=re||(re={})).JWT="JWT",X.PASSWORD="PASSWORD",re;var X})(),ie=(()=>{return(X=ie||(ie={})).SECS="SECS",X.MINS="MINS",X.HOURS="HOURS",X.DAYS="DAYS",ie;var X})(),ce=(()=>{return(X=ce||(ce={})).SATS="Sats",X.BTC="BTC",X.OTHER="OTHER",ce;var X})(),ae=(()=>{return(X=ae||(ae={})).ARRAY="ARRAY",X.NUMBER="NUMBER",X.STRING="STRING",X.BOOLEAN="BOOLEAN",X.PASSWORD="PASSWORD",X.DATE="DATE",X.DATE_TIME="DATE_TIME",ae;var X})(),ne=(()=>{return(X=ne||(ne={})).XS="XS",X.SM="SM",X.MD="MD",X.LG="LG",X.XL="XL",ne;var X})();const le={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"}},ee={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 pe=(()=>{return(X=pe||(pe={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",X.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",X.WIRE_INVALID_ONION_KEY="Invalid Onion Key",X.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",X.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",X.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",X.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",X.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",X.WIRE_FEE_INSUFFICIENT="Insufficient Fee",X.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",X.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",X.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",X.WIRE_CHANNEL_DISABLED="Channel Disabled",X.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",X.WIRE_INVALID_REALM="Invalid Realm",X.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",X.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",X.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",X.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",X.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",X.WIRE_MPP_TIMEOUT="MPP Timeout",X.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",X.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",pe;var X})(),S=(()=>{return(X=S||(S={})).CHANNELD_NORMAL="Active",X.OPENINGD="Opening",X.CHANNELD_AWAITING_LOCKIN="Pending Open",X.CHANNELD_SHUTTING_DOWN="Shutting Down",X.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",X.CLOSINGD_COMPLETE="Closed",X.AWAITING_UNILATERAL="Awaiting Unilateral Close",X.FUNDING_SPEND_SEEN="Funding Spend Seen",X.ONCHAIN="Onchain",X.DUALOPEND_OPEN_INIT="Dual Open Initialized",X.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",S;var X})(),i=(()=>{return(X=i||(i={})).INITIATED="Initiated",X.PREIMAGE_REVEALED="Preimage Revealed",X.HTLC_PUBLISHED="HTLC Published",X.SUCCESS="Successful",X.FAILED="Failed",X.INVOICE_SETTLED="Invoice Settled",i;var X})(),r=(()=>{return(X=r||(r={})).LOOP_OUT="LOOP_OUT",X.LOOP_IN="LOOP_IN",r;var X})(),u=(()=>{return(X=u||(u={})).SWAP_OUT="SWAP_OUT",X.SWAP_IN="SWAP_IN",u;var X})(),l=(()=>{return(X=l||(l={}))["swap.created"]="Swap Created",X["swap.expired"]="Swap Expired",X["invoice.set"]="Invoice Set",X["invoice.paid"]="Invoice Paid",X["invoice.pending"]="Invoice Pending",X["invoice.settled"]="Invoice Settled",X["invoice.failedToPay"]="Invoice Failed To Pay",X["channel.created"]="Channel Created",X["transaction.failed"]="Transaction Failed",X["transaction.mempool"]="Transaction Mempool",X["transaction.claimed"]="Transaction Claimed",X["transaction.refunded"]="Transaction Refunded",X["transaction.confirmed"]="Transaction Confirmed",X["swap.refunded"]="Swap Refunded",X["swap.abandoned"]="Swap Abandoned",l;var X})();const y=[{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}],D=["MONTHLY","YEARLY"];var k=(()=>{return(X=k||(k={})).LOOP="LOOP",X.BOLTZ="BOLTZ",X.OFFERS="OFFERS",X.PEERSWAP="PEERSWAP",k;var X})();const b=["password","changeme","moneyprintergobrrr"];var n=(()=>{return(X=n||(n={})).UN_INITIATED="UN_INITIATED",X.INITIATED="INITIATED",X.COMPLETED="COMPLETED",X.ERROR="ERROR",n;var X})();const _={NO_SPINNER:"No Spinner...",GET_NODE_INFO:"Getting Node Information...",INITALIZE_NODE_DATA:"Initializing Node Data...",GENERATE_NEW_ADDRESS:"Getting New Address...",SEND_FUNDS:"Sending Funds...",UPDATE_CHAN_POLICY:"Updating Channel Policy...",GET_CHAN_POLICY:"Fetching Channel Policy...",GET_REMOTE_POLICY:"Fetching Remote Policy...",CLOSE_CHANNEL:"Closing Channel...",FORCE_CLOSE_CHANNEL:"Force Closing Channel...",OPEN_CHANNEL:"Opening Channel...",CONNECT_PEER:"Connecting Peer...",DISCONNECT_PEER:"Disconnecting Peer...",ADD_INVOICE:"Adding Invoice...",CREATE_INVOICE:"Creating Invoice...",DELETE_INVOICE:"Deleting Invoices...",DECODE_PAYMENT:"Decoding Payment...",DECODE_OFFER:"Decoding Offer...",DECODE_PAYMENTS:"Decoding Payments...",FETCH_INVOICE:"Fetching Invoice...",GET_SENT_PAYMENTS:"Getting Sent Payments...",SEND_PAYMENT:"Sending Payment...",SEND_KEYSEND:"Sending Keysend Payment...",SEARCHING_NODE:"Searching Node...",SEARCHING_CHANNEL:"Searching Channel...",SEARCHING_INVOICE:"Searching Invoice...",SEARCHING_PAYMENT:"Searching Payment...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channel...",DOWNLOAD_BACKUP_FILE:"Downloading Backup File...",RESTORE_CHANNEL:"Restoring Channels...",GET_TERMS_QUOTES:"Getting Terms and Quotes...",LABEL_UTXO:"Labelling UTXO...",GET_NODE_ADDRESS:"Getting Node Address...",GEN_SEED:"Generating Seed...",INITIALIZE_WALLET:"Initializing Wallet...",UNLOCK_WALLET:"Unlocking Wallet...",WAIT_SYNC_NODE:"Waiting for Node Sync...",UPDATE_BOLTZ_SETTINGS:"Updating Boltz Service Settings...",UPDATE_LOOP_SETTINGS:"Updating Loop Service Settings...",UPDATE_PEERSWAP_SETTINGS:"Updating Peerswap Service Settings...",UPDATE_SETTING:"Updating Setting...",UPDATE_UI_SETTINGS:"Updating Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",GET_SERVICE_INFO:"Getting Service Info...",GET_QUOTE:"Getting Quotes...",UPDATE_DEFAULT_NODE_SETTING:"Updating Defaule Node Settings...",GET_BOLTZ_SWAPS:"Getting Boltz Swaps...",SIGN_MESSAGE:"Signing Message...",VERIFY_MESSAGE:"Verifying Message...",BUMP_FEE:"Bumping Fee...",LEASE_UTXO:"Leasing UTXO...",GET_LOOP_SWAPS:"Getting List Swaps...",GET_FORWARDING_HISTORY:"Getting Forwarding History...",GET_LOOKUP_DETAILS:"Getting Lookup Details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token...",DISABLE_OFFER:"Disabling Offer...",CREATE_OFFER:"Creating Offer...",DELETE_OFFER_BOOKMARK:"Deleting Bookmark...",GET_FUNDER_POLICY:"Getting Or Updating Funder Policy...",GET_LIST_CONFIGS:"Getting Configurations List...",LIST_NETWORK_NODES:"Getting Network Nodes List...",GET_PAGE_SETTINGS:"Getting Page Settings...",SET_PAGE_SETTINGS:"Setting Page Settings...",UPDATE_PAGE_SETTINGS:"Updating Page Layout...",LOG_OUT:"Logging Out..."};var W=(()=>{return(X=W||(W={})).INVOICE="INVOICE",X.OFFER="OFFER",X.KEYSEND="KEYSEND",W;var X})(),P=(()=>{return(X=P||(P={})).FEES="FEES",X.EVENTS="EVENTS",P;var X})(),U=(()=>{return(X=U||(U={})).VOID="VOID",X.SET_API_URL_ECL="SET_API_URL_ECL",X.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",X.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",X.RESET_ROOT_STORE="RESET_ROOT_STORE",X.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",X.OPEN_SNACK_BAR="OPEN_SNACKBAR",X.OPEN_SPINNER="OPEN_SPINNER",X.CLOSE_SPINNER="CLOSE_SPINNER",X.OPEN_ALERT="OPEN_ALERT",X.CLOSE_ALERT="CLOSE_ALERT",X.OPEN_CONFIRMATION="OPEN_CONFIRMATION",X.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",X.SHOW_PUBKEY="SHOW_PUBKEY",X.FETCH_CONFIG="FETCH_CONFIG",X.SHOW_CONFIG="SHOW_CONFIG",X.FETCH_STORE="FETCH_STORE",X.SET_STORE="SET_STORE",X.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",X.SET_RTL_CONFIG="SET_RTL_CONFIG",X.SAVE_SSO="SAVE_SSO",X.SAVE_SETTINGS="SAVE_SETTINGS",X.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",X.SET_SELECTED_NODE="SET_SELECTED_NODE",X.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",X.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",X.SET_NODE_DATA="SET_NODE_DATA",X.IS_AUTHORIZED="IS_AUTHORIZED",X.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",X.LOGIN="LOGIN",X.VERIFY_TWO_FA="VERIFY_TWO_FA",X.LOGOUT="LOGOUT",X.RESET_PASSWORD="RESET_PASSWORD",X.RESET_PASSWORD_RES="RESET_PASSWORD_RES",X.FETCH_FILE="FETCH_FILE",X.SHOW_FILE="SHOW_FILE",U;var X})(),me=(()=>{return(X=me||(me={})).RESET_LND_STORE="RESET_LND_STORE",X.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",X.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",X.FETCH_PAGE_SETTINGS_LND="FETCH_PAGE_SETTINGS_LND",X.SET_PAGE_SETTINGS_LND="SET_PAGE_SETTINGS_LND",X.SAVE_PAGE_SETTINGS_LND="SAVE_PAGE_SETTINGS_LND",X.FETCH_INFO_LND="FETCH_INFO_LND",X.SET_INFO_LND="SET_INFO_LND",X.FETCH_PEERS_LND="FETCH_PEERS_LND",X.SET_PEERS_LND="SET_PEERS_LND",X.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",X.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",X.DETACH_PEER_LND="DETACH_PEER_LND",X.REMOVE_PEER_LND="REMOVE_PEER_LND",X.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",X.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",X.ADD_INVOICE_LND="ADD_INVOICE_LND",X.FETCH_FEES_LND="FETCH_FEES_LND",X.SET_FEES_LND="SET_FEES_LND",X.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",X.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",X.FETCH_NETWORK_LND="FETCH_NETWORK_LND",X.SET_NETWORK_LND="SET_NETWORK_LND",X.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",X.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",X.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",X.SET_CHANNELS_LND="SET_CHANNELS_LND",X.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",X.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",X.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",X.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",X.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",X.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",X.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",X.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",X.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",X.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",X.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",X.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",X.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",X.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",X.FETCH_INVOICES_LND="FETCH_INVOICES_LND",X.SET_INVOICES_LND="SET_INVOICES_LND",X.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",X.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",X.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",X.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",X.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",X.FETCH_UTXOS_LND="FETCH_UTXOS_LND",X.SET_UTXOS_LND="SET_UTXOS_LND",X.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",X.SET_PAYMENTS_LND="SET_PAYMENTS_LND",X.SEND_PAYMENT_LND="SEND_PAYMENT_LND",X.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",X.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",X.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",X.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",X.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",X.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",X.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",X.GEN_SEED_LND="GEN_SEED_LND",X.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",X.INIT_WALLET_LND="INIT_WALLET_LND",X.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",X.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",X.PEER_LOOKUP_LND="PEER_LOOKUP_LND",X.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",X.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",X.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",X.SET_LOOKUP_LND="SET_LOOKUP_LND",X.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",X.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",X.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",X.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",X.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",X.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",me;var X})(),nt=(()=>{return(X=nt||(nt={})).RESET_CLN_STORE="RESET_CLN_STORE",X.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",X.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",X.FETCH_PAGE_SETTINGS_CLN="FETCH_PAGE_SETTINGS_CLN",X.SET_PAGE_SETTINGS_CLN="SET_PAGE_SETTINGS_CLN",X.SAVE_PAGE_SETTINGS_CLN="SAVE_PAGE_SETTINGS_CLN",X.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",X.SET_INFO_CLN="SET_INFO_CLN",X.FETCH_FEES_CLN="FETCH_FEES_CLN",X.SET_FEES_CLN="SET_FEES_CLN",X.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",X.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",X.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",X.SET_BALANCE_CLN="SET_BALANCE_CLN",X.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",X.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",X.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",X.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",X.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",X.SET_UTXOS_CLN="SET_UTXOS_CLN",X.FETCH_PEERS_CLN="FETCH_PEERS_CLN",X.SET_PEERS_CLN="SET_PEERS_CLN",X.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",X.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",X.ADD_PEER_CLN="ADD_PEER_CLN",X.DETACH_PEER_CLN="DETACH_PEER_CLN",X.REMOVE_PEER_CLN="REMOVE_PEER_CLN",X.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",X.SET_CHANNELS_CLN="SET_CHANNELS_CLN",X.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",X.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",X.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",X.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",X.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",X.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",X.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",X.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",X.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",X.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",X.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",X.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",X.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",X.SET_LOOKUP_CLN="SET_LOOKUP_CLN",X.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",X.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",X.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",X.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",X.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",X.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",X.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",X.SET_INVOICES_CLN="SET_INVOICES_CLN",X.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",X.ADD_INVOICE_CLN="ADD_INVOICE_CLN",X.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",X.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",X.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",X.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",X.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",X.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",X.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",X.SET_OFFERS_CLN="SET_OFFERS_CLN",X.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",X.ADD_OFFER_CLN="ADD_OFFER_CLN",X.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",X.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",X.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",X.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",X.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",X.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",X.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",nt;var X})(),Pe=(()=>{return(X=Pe||(Pe={})).RESET_ECL_STORE="RESET_ECL_STORE",X.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",X.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",X.FETCH_PAGE_SETTINGS_ECL="FETCH_PAGE_SETTINGS_ECL",X.SET_PAGE_SETTINGS_ECL="SET_PAGE_SETTINGS_ECL",X.SAVE_PAGE_SETTINGS_ECL="SAVE_PAGE_SETTINGS_ECL",X.FETCH_INFO_ECL="FETCH_INFO_ECL",X.SET_INFO_ECL="SET_INFO_ECL",X.FETCH_FEES_ECL="FETCH_FEES_ECL",X.SET_FEES_ECL="SET_FEES_ECL",X.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",X.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",X.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",X.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",X.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",X.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",X.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",X.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",X.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",X.FETCH_PEERS_ECL="FETCH_PEERS_ECL",X.SET_PEERS_ECL="SET_PEERS_ECL",X.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",X.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",X.ADD_PEER_ECL="ADD_PEER_ECL",X.DETACH_PEER_ECL="DETACH_PEER_ECL",X.REMOVE_PEER_ECL="REMOVE_PEER_ECL",X.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",X.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",X.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",X.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",X.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",X.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",X.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",X.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",X.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",X.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",X.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",X.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",X.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",X.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",X.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",X.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",X.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",X.SET_INVOICES_ECL="SET_INVOICES_ECL",X.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",X.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",X.ADD_INVOICE_ECL="ADD_INVOICE_ECL",X.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",X.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",X.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",X.SET_LOOKUP_ECL="SET_LOOKUP_ECL",X.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",X.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",Pe;var X})();const Oe=[{range:{min:0,max:1},description:"Requires or supports extra channel re-establish fields"},{range:{min:4,max:5},description:"Commits to a shutdown script pubkey when opening channel"},{range:{min:6,max:7},description:"More sophisticated gossip control"},{range:{min:8,max:9},description:"Requires/supports variable-length routing onion payloads"},{range:{min:10,max:11},description:"Gossip queries can include additional information"},{range:{min:12,max:13},description:"Static key for remote output"},{range:{min:14,max:15},description:"Node supports payment secret field"},{range:{min:16,max:17},description:"Node can receive basic multi-part payments"},{range:{min:18,max:19},description:"Node can create large channels"},{range:{min:20,max:21},description:"Anchor outputs"},{range:{min:22,max:23},description:"Anchor commitment type with zero fee HTLC transactions"},{range:{min:26,max:27},description:"Future segwit versions allowed in shutdown"}];var De=(()=>{return(X=De||(De={})).gossip_queries_ex="Gossip queries including additional information",X.option_anchor_outputs="Anchor outputs",X.option_data_loss_protect="Extra channel re-establish fields",X.var_onion_optin="Variable-length routing onion payloads",X.option_static_remotekey="Static key for remote output",X.option_support_large_channel="Create large channels",X.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",X.payment_secret="Payment secret field",X.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",X.basic_mpp="Basic multi-part payments",X.gossip_queries="More sophisticated gossip control",X.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",X.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",X.amp="AMP",De;var X})(),ue=(()=>{return(X=ue||(ue={}))["data-loss-protect"]="Extra channel re-establish fields",X["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",X["gossip-queries"]="More sophisticated gossip control",X["tlv-onion"]="Variable-length routing onion payloads",X["ext-gossip-queries"]="Gossip queries can include additional information",X["static-remote-key"]="Static key for remote output",X["payment-addr"]="Payment secret field",X["multi-path-payments"]="Basic multi-part payments",X["wumbo-channels"]="Wumbo Channels",X.anchors="Anchor outputs",X["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",X.amp="AMP",ue;var X})();const ve=[{id:"match",placeholder:"Policy Match (%age)",min:0,max:200},{id:"available",placeholder:"Policy Available (%age)",min:0,max:100},{id:"fixed",placeholder:"Fixed Policy (Sats)",min:0,max:100}];var Ie=(()=>{return(X=Ie||(Ie={})).OFFERED="offered",X.SETTLED="settled",X.FAILED="failed",X.LOCAL_FAILED="local_failed",Ie;var X})(),ye=(()=>{return(X=ye||(ye={})).ASCENDING="asc",X.DESCENDING="desc",ye;var X})();const he=["asc","desc"],de=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:d,sortBy:"blockheight",sortOrder:ye.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]},{tableId:"dust_utxos",recordsPerPage:d,sortBy:"blockheight",sortOrder:ye.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:d,sortBy:"msatoshi_to_us",sortOrder:ye.DESCENDING,columnSelectionSM:["alias","msatoshi_to_us","msatoshi_to_them"],columnSelection:["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness"]},{tableId:"pending_inactive_channels",recordsPerPage:d,sortBy:"state",sortOrder:ye.DESCENDING,columnSelectionSM:["alias","state"],columnSelection:["alias","connected","state","msatoshi_total"]},{tableId:"peers",recordsPerPage:d,sortBy:"alias",sortOrder:ye.ASCENDING,columnSelectionSM:["alias","id"],columnSelection:["alias","id","netaddr"]}]},{pageId:"liquidity_ads",tables:[{tableId:"liquidity_ads",recordsPerPage:d,sortBy:"channel_opening_fee",sortOrder:ye.ASCENDING,columnSelectionSM:["alias","channel_opening_fee"],columnSelection:["alias","last_timestamp","lease_fee","routing_fee","channel_opening_fee"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:d,sortBy:"created_at",sortOrder:ye.DESCENDING,columnSelectionSM:["created_at","msatoshi"],columnSelection:["created_at","type","payment_hash","msatoshi_sent","msatoshi"]},{tableId:"invoices",recordsPerPage:d,sortBy:"expires_at",sortOrder:ye.DESCENDING,columnSelectionSM:["expires_at","msatoshi"],columnSelection:["expires_at","paid_at","type","description","msatoshi","msatoshi_received"]},{tableId:"offers",recordsPerPage:d,sortBy:"offer_id",sortOrder:ye.DESCENDING,columnSelectionSM:["offer_id","single_use"],columnSelection:["offer_id","single_use","used"]},{tableId:"offer_bookmarks",recordsPerPage:d,sortBy:"lastUpdatedAt",sortOrder:ye.DESCENDING,columnSelectionSM:["lastUpdatedAt","amountMSat"],columnSelection:["lastUpdatedAt","title","description","amountMSat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:d,sortBy:"received_time",sortOrder:ye.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"routing_peers",recordsPerPage:d,sortBy:"total_fee",sortOrder:ye.DESCENDING,columnSelectionSM:["alias","events","total_fee"],columnSelection:["channel_id","alias","events","total_amount","total_fee"]},{tableId:"failed",recordsPerPage:d,sortBy:"received_time",sortOrder:ye.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"local_failed",recordsPerPage:d,sortBy:"received_time",sortOrder:ye.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","in_channel_alias","in_msatoshi","style","failreason"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:d,sortBy:"received_time",sortOrder:ye.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"transactions",recordsPerPage:d,sortBy:"date",sortOrder:ye.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:d,sortBy:"msatoshi",sortOrder:ye.DESCENDING,columnSelectionSM:["alias","direction","msatoshi"],columnSelection:["alias","channel","direction","delay","msatoshi"]}]},{pageId:"peerswap",tables:[{tableId:"swaps",recordsPerPage:d,sortBy:"created_at",sortOrder:ye.DESCENDING,columnSelectionSM:["id","state","amount"],columnSelection:["id","alias","short_channel_id","created_at","state","amount"]}]}],we={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"short_channel_id"},{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_inactive_channels:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"state"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"}]},peers:{maxColumns:3,allowedColumns:[{column:"alias"},{column:"id"},{column:"netaddr",label:"Network Address"}]}},liquidity_ads:{liquidity_ads:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"nodeid",label:"Node ID"},{column:"last_timestamp",label:"Last Announcement At"},{column:"compact_lease"},{column:"lease_fee"},{column:"routing_fee"},{column:"channel_opening_fee"},{column:"funding_weight"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"created_at",label:"Created At"},{column:"type"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"destination"},{column:"memo"},{column:"label"},{column:"msatoshi_sent",label:"Sats Sent"},{column:"msatoshi",label:"Sats Received"}]},invoices:{maxColumns:7,allowedColumns:[{column:"expires_at",label:"Expiry Date"},{column:"paid_at",label:"Date Settled"},{column:"type"},{column:"description"},{column:"label"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"msatoshi",label:"Amount"},{column:"msatoshi_received",label:"Amount Settled"}]},offers:{maxColumns:4,allowedColumns:[{column:"offer_id",label:"Offer ID"},{column:"single_use"},{column:"used"},{column:"bolt12",label:"Invoice"}]},offer_bookmarks:{maxColumns:6,allowedColumns:[{column:"lastUpdatedAt",label:"Updated At"},{column:"title"},{column:"description"},{column:"vendor"},{column:"bolt12",label:"Invoice"},{column:"amountMSat",label:"Amount"}]}},routing:{forwarding_history:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channel_id"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount",label:"Amount"},{column:"total_fee",label:"Fee"}]},failed:{maxColumns:7,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},local_failed:{maxColumns:6,allowedColumns:[{column:"received_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"style"},{column:"failreason",label:"Fail Reason"}]}},reports:{routing:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:6,allowedColumns:[{column:"id"},{column:"alias"},{column:"channel"},{column:"direction"},{column:"delay"},{column:"msatoshi",label:"Amount"}]}},peerswap:{swaps:{maxColumns:6,allowedColumns:[{column:"id"},{column:"alias"},{column:"short_channel_id"},{column:"created_at"},{column:"state"},{column:"amount"}]}}},Y=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:d,sortBy:"tx_id",sortOrder:ye.DESCENDING,columnSelectionSM:["output","amount_sat","confirmations"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]},{tableId:"transactions",recordsPerPage:d,sortBy:"time_stamp",sortOrder:ye.DESCENDING,columnSelectionSM:["time_stamp","amount","num_confirmations"],columnSelection:["time_stamp","label","amount","total_fees","block_height","num_confirmations"]},{tableId:"dust_utxos",recordsPerPage:d,sortBy:"tx_id",sortOrder:ye.DESCENDING,columnSelectionSM:["output","amount_sat","confirmations"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open",recordsPerPage:d,sortBy:"balancedness",sortOrder:ye.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:ye.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","commit_fee","commit_weight","capacity"]},{tableId:"pending_force_closing",sortBy:"limbo_balance",sortOrder:ye.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","recovered_balance","limbo_balance","capacity"]},{tableId:"pending_closing",sortBy:"capacity",sortOrder:ye.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","local_balance","remote_balance","capacity"]},{tableId:"pending_waiting_close",sortBy:"limbo_balance",sortOrder:ye.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","limbo_balance","local_balance","remote_balance"]},{tableId:"closed",recordsPerPage:d,sortBy:"close_type",sortOrder:ye.DESCENDING,columnSelectionSM:["remote_alias","settled_balance"],columnSelection:["close_type","remote_alias","capacity","close_height","settled_balance"]},{tableId:"active_HTLCs",recordsPerPage:d,sortBy:"expiration_height",sortOrder:ye.DESCENDING,columnSelectionSM:["amount","incoming","expiration_height"],columnSelection:["amount","incoming","expiration_height","hash_lock"]},{tableId:"peers",recordsPerPage:d,sortBy:"alias",sortOrder:ye.DESCENDING,columnSelectionSM:["alias","sat_sent","sat_recv"],columnSelection:["alias","pub_key","sat_sent","sat_recv","ping_time"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:d,sortBy:"creation_date",sortOrder:ye.DESCENDING,columnSelectionSM:["creation_date","fee","value"],columnSelection:["creation_date","payment_hash","fee","value","hops"]},{tableId:"invoices",recordsPerPage:d,sortBy:"creation_date",sortOrder:ye.DESCENDING,columnSelectionSM:["creation_date","settle_date","value"],columnSelection:["creation_date","settle_date","memo","value","amt_paid_sat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:d,sortBy:"timestamp",sortOrder:ye.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"routing_peers",recordsPerPage:d,sortBy:"total_amount",sortOrder:ye.DESCENDING,columnSelectionSM:["alias","events","total_amount"],columnSelection:["chan_id","alias","events","total_amount"]},{tableId:"non_routing_peers",recordsPerPage:d,sortBy:"remote_alias",sortOrder:ye.DESCENDING,columnSelectionSM:["remote_alias","local_balance","remote_balance"],columnSelection:["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:d,sortBy:"timestamp",sortOrder:ye.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"transactions",recordsPerPage:d,sortBy:"date",sortOrder:ye.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:d,sortBy:"hop_sequence",sortOrder:ye.ASCENDING,columnSelectionSM:["hop_sequence","pubkey_alias","fee_msat"],columnSelection:["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat"]}]},{pageId:"loop",tables:[{tableId:"loop",recordsPerPage:d,sortBy:"initiation_time",sortOrder:ye.DESCENDING,columnSelectionSM:["state","amt"],columnSelection:["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain"]}]},{pageId:"boltz",tables:[{tableId:"swap_out",recordsPerPage:d,sortBy:"status",sortOrder:ye.DESCENDING,columnSelectionSM:["status","id","onchainAmount"],columnSelection:["status","id","claimAddress","onchainAmount","timeoutBlockHeight"]},{tableId:"swap_in",recordsPerPage:d,sortBy:"status",sortOrder:ye.DESCENDING,columnSelectionSM:["status","id","expectedAmount"],columnSelection:["status","id","lockupAddress","expectedAmount","timeoutBlockHeight"]}]}],j={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat",label:"Amount"},{column:"confirmations"}]},transactions:{maxColumns:7,allowedColumns:[{column:"time_stamp",label:"Date/Time"},{column:"label"},{column:"block_hash"},{column:"tx_hash",label:"Transaction Hash"},{column:"amount"},{column:"total_fees",label:"Fees"},{column:"block_height"},{column:"num_confirmations",label:"Confirmations"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat"},{column:"confirmations"}]}},peers_channels:{open:{maxColumns:8,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"initiator"},{column:"static_remote_key"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"},{column:"balancedness",label:"Balance Score"}]},pending_open:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"confirmation_height"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_force_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"maturity_height"},{column:"blocks_til_maturity",label:"Blocks till Maturity"},{column:"recovered_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_waiting_close:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},closed:{maxColumns:7,allowedColumns:[{column:"close_type"},{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"closing_tx_hash",label:"Closing Tx Hash"},{column:"chain_hash"},{column:"open_initiator"},{column:"close_initiator"},{column:"time_locked_balance",label:"Timelocked Balance"},{column:"capacity"},{column:"close_height"},{column:"settled_balance"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount"},{column:"incoming"},{column:"forwarding_channel"},{column:"htlc_index"},{column:"forwarding_htlc_index"},{column:"expiration_height"},{column:"hash_lock"}]},peers:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"pub_key",label:"Public Key"},{column:"address"},{column:"sync_type"},{column:"inbound"},{column:"bytes_sent"},{column:"bytes_recv",label:"Bytes Received"},{column:"sat_sent",label:"Sats Sent"},{column:"sat_recv",label:"Sats Received"},{column:"ping_time"}]}},transactions:{payments:{maxColumns:8,allowedColumns:[{column:"creation_date"},{column:"payment_hash"},{column:"payment_request"},{column:"payment_preimage"},{column:"description"},{column:"description_hash"},{column:"failure_reason"},{column:"payment_index"},{column:"fee"},{column:"value"},{column:"hops"}]},invoices:{maxColumns:9,allowedColumns:[{column:"private"},{column:"is_keysend",label:"Keysend"},{column:"is_amp",label:"AMP"},{column:"creation_date",label:"Date Created"},{column:"settle_date",label:"Date Settled"},{column:"memo"},{column:"r_preimage",label:"Preimage"},{column:"r_hash",label:"Preimage Hash"},{column:"payment_addr",label:"Payment Address"},{column:"payment_request"},{column:"description_hash"},{column:"expiry"},{column:"cltv_expiry"},{column:"add_index"},{column:"settle_index"},{column:"value",label:"Amount"},{column:"amt_paid_sat",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},routing_peers:{maxColumns:4,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount"}]},non_routing_peers:{maxColumns:8,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"remote_alias",label:"Peer Alias"},{column:"remote_pubkey",label:"Peer Pubkey"},{column:"channel_point"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"}]}},reports:{routing:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:8,disablePageSize:!0,allowedColumns:[{column:"hop_sequence",label:"Hop"},{column:"pubkey_alias",label:"Peer"},{column:"pub_key",label:"Peer Pubkey"},{column:"chan_id",label:"Channel ID"},{column:"tlv_payload"},{column:"expiry"},{column:"chan_capacity",label:"Capacity"},{column:"amt_to_forward_msat",label:"Amount To Fwd"},{column:"fee_msat",label:"Fee"}]}},loop:{loop:{maxColumns:8,allowedColumns:[{column:"state"},{column:"initiation_time"},{column:"last_update_time"},{column:"amt",label:"Amount"},{column:"cost_server"},{column:"cost_offchain"},{column:"cost_onchain"},{column:"htlc_address"},{column:"id"},{column:"id_bytes",label:"ID (Bytes)"}]}},boltz:{swap_out:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"claimAddress",label:"Claim Address"},{column:"onchainAmount",label:"Onchain Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"claimTransactionId",label:"Claim Tx ID"}]},swap_in:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"lockupAddress",label:"Lockup Address"},{column:"expectedAmount",label:"Expected Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"refundTransactionId",label:"Refund Tx ID"}]}}},Ce=[{pageId:"on_chain",tables:[{tableId:"transaction",recordsPerPage:d,sortBy:"timestamp",sortOrder:ye.DESCENDING,columnSelectionSM:["timestamp","amount"],columnSelection:["timestamp","address","amount","fees","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:d,sortBy:"alias",sortOrder:ye.DESCENDING,columnSelectionSM:["alias","toLocal","toRemote"],columnSelection:["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","balancedness"]},{tableId:"pending_channels",recordsPerPage:d,sortBy:"alias",sortOrder:ye.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","alias","toLocal","toRemote"]},{tableId:"inactive_channels",recordsPerPage:d,sortBy:"alias",sortOrder:ye.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","shortChannelId","alias","toLocal","toRemote","balancedness"]},{tableId:"peers",recordsPerPage:d,sortBy:"alias",sortOrder:ye.ASCENDING,columnSelectionSM:["alias","nodeId"],columnSelection:["alias","nodeId","address","channels"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:d,sortBy:"firstPartTimestamp",sortOrder:ye.DESCENDING,columnSelectionSM:["firstPartTimestamp","recipientAmount"],columnSelection:["firstPartTimestamp","id","recipientNodeAlias","recipientAmount"]},{tableId:"invoices",recordsPerPage:d,sortBy:"receivedAt",sortOrder:ye.DESCENDING,columnSelectionSM:["timestamp","amount","amountSettled"],columnSelection:["timestamp","receivedAt","description","amount","amountSettled"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:d,sortBy:"timestamp",sortOrder:ye.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"routing_peers",recordsPerPage:d,sortBy:"totalFee",sortOrder:ye.DESCENDING,columnSelectionSM:["alias","events","totalFee"],columnSelection:["channelId","alias","events","totalAmount","totalFee"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:d,sortBy:"timestamp",sortOrder:ye.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"transactions",recordsPerPage:d,sortBy:"date",sortOrder:ye.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]}],Se={on_chain:{transaction:{maxColumns:6,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"address"},{column:"blockHash"},{column:"txid",label:"Transaction ID"},{column:"amount"},{column:"fees"},{column:"confirmations"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"feeBaseMsat",label:"Base Fee"},{column:"feeProportionalMillionths",label:"Fee Rate"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"},{column:"balancedness",label:"Balance Score"}]},pending_channels:{maxColumns:7,allowedColumns:[{column:"state"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"}]},inactive_channels:{maxColumns:8,allowedColumns:[{column:"state"},{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"},{column:"balancedness",label:"Balance Score"}]},peers:{maxColumns:4,allowedColumns:[{column:"alias"},{column:"nodeId"},{column:"address",label:"Netwrok Address"},{column:"channels"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"firstPartTimestamp",label:"Date/Time"},{column:"id"},{column:"recipientNodeId",label:"Destination Node ID"},{column:"recipientNodeAlias",label:"Destination"},{column:"description"},{column:"paymentHash"},{column:"paymentPreimage",label:"Preimage"},{column:"recipientAmount",label:"Amount"}]},invoices:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date Created"},{column:"expiresAt",label:"Date Expiry"},{column:"receivedAt",label:"Date Settled"},{column:"nodeId",label:"Node ID"},{column:"description"},{column:"paymentHash"},{column:"amount"},{column:"amountSettled",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channelId"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"totalAmount",label:"Amount"},{column:"totalFee",label:"Fee"}]}},reports:{routing:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}}}},8104:(ke,J,p)=>{"use strict";p.d(J,{D:()=>le});var t=p(529),e=p(1135),f=p(7579),C=p(2843),a=p(9646),M=p(590),d=p(5577),R=p(2722),h=p(4004),I=p(262),E=p(1365),L=p(2340),T=p(7731),N=p(1786),w=p(7861),G=p(6523),K=p(6529),Q=p(9828),re=p(4650),ie=p(9653),ce=p(5043),ae=p(7009),ne=p(6895);let le=(()=>{class ee{constructor(S,i,r,u,l){this.httpClient=S,this.store=i,this.logger=r,this.snackBar=u,this.titleCasePipe=l,this.APIUrl=L.T5,this.lnImplementation="",this.lnImplementationUpdated=new e.X(null),this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x],this.mapAliases=(y,D)=>(y&&y.length>0?y.forEach((k,b)=>{if(D&&D.length>0)for(let n=0;n<D.length;n++){if(D[n].short_channel_id&&D[n].short_channel_id===k.in_channel&&(k.in_channel_alias=D[n].alias?D[n].alias:k.in_channel,k.out_channel_alias)||D[n].short_channel_id&&D[n].short_channel_id?.toString()===k.out_channel&&(k.out_channel_alias=D[n].alias?D[n].alias:k.out_channel,k.in_channel_alias))return;n===D.length-1&&(k.in_channel_alias||(k.in_channel_alias=k.in_channel?k.in_channel:"-"),k.out_channel_alias||(k.out_channel_alias=k.out_channel?k.out_channel:"-"))}else k.in_channel_alias=k.in_channel?k.in_channel:"-",k.out_channel_alias=k.out_channel?k.out_channel:"-"}):y=[],y)}setLnImplementation(S){this.lnImplementation=S.toLowerCase(),this.lnImplementationUpdated.next(this.lnImplementation)}getFiatRates(){return this.httpClient.get(L.NZ.CONF_API+"/rates")}decodePayment(S,i){return this.lnImplementationUpdated.pipe((0,M.P)(r=>null!==r),(0,d.z)(r=>{let u=this.APIUrl+"/"+r+L.NZ.PAYMENTS_API+"/decode/"+S;return"cln"===r&&(u=this.APIUrl+"/"+r+L.NZ.UTILITY_API+"/decode/"+S),this.store.dispatch((0,w.ac)({payload:T.m6.DECODE_PAYMENT})),this.httpClient.get(u).pipe((0,R.R)(this.unSubs[0]),(0,h.U)(l=>(this.store.dispatch((0,w.uO)({payload:T.m6.DECODE_PAYMENT})),l)),(0,I.K)(l=>(i?this.handleErrorWithoutAlert("Decode Payment",T.m6.DECODE_PAYMENT,l):this.handleErrorWithAlert("decodePaymentData",T.m6.DECODE_PAYMENT,"Decode Payment Failed",u,l),(0,C._)(()=>new Error(this.extractErrorMessage(l))))))}))}decodePayments(S){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,d.z)(i=>{let r="",u="";return"ecl"===i?(r=this.APIUrl+"/"+i+L.NZ.PAYMENTS_API+"/getsentinfos",u=T.m6.GET_SENT_PAYMENTS):"cln"===i?(r=this.APIUrl+"/"+i+L.NZ.UTILITY_API,u=T.m6.DECODE_PAYMENTS):(r=this.APIUrl+"/"+i+L.NZ.PAYMENTS_API,u=T.m6.DECODE_PAYMENTS),this.store.dispatch((0,w.ac)({payload:u})),this.httpClient.post(r,{payments:S}).pipe((0,R.R)(this.unSubs[1]),(0,h.U)(l=>(this.store.dispatch((0,w.uO)({payload:u})),l)),(0,I.K)(l=>(this.handleErrorWithAlert("decodePaymentsData",u,u+" Failed",r,l),(0,C._)(()=>new Error(this.extractErrorMessage(l))))))}))}getAliasesFromPubkeys(S,i){return this.lnImplementationUpdated.pipe((0,M.P)(r=>null!==r),(0,d.z)(r=>{if(i){const u=(new t.LE).set("pubkeys",S);return this.httpClient.get(this.APIUrl+"/"+r+L.NZ.NETWORK_API+"/nodes",{params:u})}return this.httpClient.get(this.APIUrl+"/"+r+L.NZ.NETWORK_API+"/node/"+S)}))}signMessage(S){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,d.z)(i=>{let r=this.APIUrl+"/"+i+L.NZ.MESSAGE_API+"/sign";return"cln"===i&&(r=this.APIUrl+"/"+i+L.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,w.ac)({payload:T.m6.SIGN_MESSAGE})),this.httpClient.post(r,{message:S}).pipe((0,R.R)(this.unSubs[2]),(0,h.U)(u=>(this.store.dispatch((0,w.uO)({payload:T.m6.SIGN_MESSAGE})),u)),(0,I.K)(u=>(this.handleErrorWithAlert("signMessageData",T.m6.SIGN_MESSAGE,"Sign Message Failed",r,u),(0,C._)(()=>new Error(this.extractErrorMessage(u))))))}))}verifyMessage(S,i){return this.lnImplementationUpdated.pipe((0,M.P)(r=>null!==r),(0,d.z)(r=>{let u=this.APIUrl+"/"+r+L.NZ.MESSAGE_API+"/verify";return"cln"===r&&(u=this.APIUrl+"/"+r+L.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,w.ac)({payload:T.m6.VERIFY_MESSAGE})),this.httpClient.post(u,{message:S,signature:i}).pipe((0,R.R)(this.unSubs[3]),(0,h.U)(l=>(this.store.dispatch((0,w.uO)({payload:T.m6.VERIFY_MESSAGE})),l)),(0,I.K)(l=>(this.handleErrorWithAlert("verifyMessageData",T.m6.VERIFY_MESSAGE,"Verify Message Failed",u,l),(0,C._)(()=>new Error(this.extractErrorMessage(l))))))}))}bumpFee(S,i,r,u){return this.lnImplementationUpdated.pipe((0,M.P)(l=>null!==l),(0,d.z)(l=>{const y={txid:S,outputIndex:i};return r&&(y.targetConf=r),u&&(y.satPerByte=u),this.store.dispatch((0,w.ac)({payload:T.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+l+L.NZ.WALLET_API+"/bumpfee",y).pipe((0,R.R)(this.unSubs[4]),(0,h.U)(D=>(this.store.dispatch((0,w.uO)({payload:T.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),D)),(0,I.K)(D=>(this.handleErrorWithoutAlert("Bump Fee",T.m6.BUMP_FEE,D),(0,C._)(()=>new Error(this.extractErrorMessage(D))))))}))}labelUTXO(S,i,r=!0){return this.lnImplementationUpdated.pipe((0,M.P)(u=>null!==u),(0,d.z)(u=>{const l={txid:S,label:i,overwrite:r};return this.store.dispatch((0,w.ac)({payload:T.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+u+L.NZ.WALLET_API+"/label",l).pipe((0,R.R)(this.unSubs[5]),(0,h.U)(y=>(this.store.dispatch((0,w.uO)({payload:T.m6.LABEL_UTXO})),y)),(0,I.K)(y=>(this.handleErrorWithoutAlert("Lease UTXO",T.m6.LABEL_UTXO,y),(0,C._)(()=>new Error(this.extractErrorMessage(y))))))}))}leaseUTXO(S,i){return this.lnImplementationUpdated.pipe((0,M.P)(r=>null!==r),(0,d.z)(r=>{const u={txid:S,outputIndex:i};return this.store.dispatch((0,w.ac)({payload:T.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+r+L.NZ.WALLET_API+"/lease",u).pipe((0,R.R)(this.unSubs[6]),(0,h.U)(l=>{this.store.dispatch((0,w.uO)({payload:T.m6.LEASE_UTXO})),this.store.dispatch((0,G.mC)()),this.store.dispatch((0,G.Ly)());const y=new Date(1e3*l.expiration),D=Math.round(y.getTime())-60*y.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(D).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,I.K)(l=>(this.handleErrorWithoutAlert("Lease UTXO",T.m6.LEASE_UTXO,l),(0,C._)(()=>new Error(this.extractErrorMessage(l))))))}))}getForwardingHistory(S,i,r,u){if("LND"===S){const l={end_time:r,start_time:i};return this.store.dispatch((0,w.ac)({payload:T.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+L.NZ.SWITCH_API,l).pipe((0,R.R)(this.unSubs[7]),(0,E.M)(this.store.select(K._f)),(0,d.z)(([y,D])=>{if(y.forwarding_events){const k=[...D.channels,...D.closedChannels];y.forwarding_events.forEach(b=>{if(k&&k.length>0)for(let n=0;n<k.length;n++){if(k[n].chan_id?.toString()===b.chan_id_in&&(b.alias_in=k[n].remote_alias?k[n].remote_alias:b.chan_id_in,b.alias_out)||k[n].chan_id?.toString()===b.chan_id_out&&(b.alias_out=k[n].remote_alias?k[n].remote_alias:b.chan_id_out,b.alias_in))return;n===k.length-1&&(b.alias_in||(b.alias_in=b.chan_id_in),b.alias_out||(b.alias_out=b.chan_id_out))}else b.alias_in=b.chan_id_in,b.alias_out=b.chan_id_out})}else y={};return this.store.dispatch((0,w.uO)({payload:T.m6.GET_FORWARDING_HISTORY})),(0,a.of)(y)}),(0,I.K)(y=>(this.handleErrorWithAlert("getForwardingHistoryData",T.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+L.NZ.SWITCH_API,y),(0,C._)(()=>new Error(this.extractErrorMessage(y))))))}return"CLN"===S?(this.store.dispatch((0,w.ac)({payload:T.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+L.NZ.CHANNELS_API+"/listForwards?status="+u).pipe((0,R.R)(this.unSubs[8]),(0,E.M)(this.store.select(Q.ZW)),(0,d.z)(([l,y])=>{const D=this.mapAliases(l,[...y.activeChannels,...y.pendingChannels,...y.inactiveChannels]);return this.store.dispatch((0,w.uO)({payload:T.m6.GET_FORWARDING_HISTORY})),(0,a.of)(D)}),(0,I.K)(l=>(this.handleErrorWithAlert("getForwardingHistoryData",T.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+L.NZ.CHANNELS_API+"/listForwards?status="+u+"&start="+i+"&end="+r,l),(0,C._)(()=>new Error(this.extractErrorMessage(l))))))):(0,a.of)({})}listNetworkNodes(S=""){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,d.z)(i=>(this.store.dispatch((0,w.ac)({payload:T.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+i+L.NZ.NETWORK_API+"/listNodes"+S).pipe((0,R.R)(this.unSubs[9]),(0,d.z)(r=>(this.store.dispatch((0,w.uO)({payload:T.m6.LIST_NETWORK_NODES})),(0,a.of)(r))),(0,I.K)(r=>(this.handleErrorWithoutAlert("List Network Nodes",T.m6.LIST_NETWORK_NODES,r),(0,C._)(()=>this.extractErrorMessage(r))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,M.P)(S=>null!==S),(0,d.z)(S=>(this.store.dispatch((0,w.ac)({payload:T.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+S+L.NZ.UTILITY_API+"/listConfigs").pipe((0,R.R)(this.unSubs[10]),(0,d.z)(i=>(this.store.dispatch((0,w.uO)({payload:T.m6.GET_LIST_CONFIGS})),(0,a.of)(i))),(0,I.K)(i=>(this.handleErrorWithoutAlert("List Configurations",T.m6.GET_LIST_CONFIGS,i),(0,C._)(()=>this.extractErrorMessage(i))))))))}getOrUpdateFunderPolicy(S,i,r,u,l,y){return this.lnImplementationUpdated.pipe((0,M.P)(D=>null!==D),(0,d.z)(D=>{const k=S?{policy:S,policy_mod:i,lease_fee_base_msat:r,lease_fee_basis:u,channel_fee_max_base_msat:l,channel_fee_max_proportional_thousandths:y}:null;return this.store.dispatch((0,w.ac)({payload:T.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+D+L.NZ.CHANNELS_API+"/funderUpdate",k).pipe((0,R.R)(this.unSubs[11]),(0,h.U)(b=>(this.store.dispatch((0,w.uO)({payload:T.m6.GET_FUNDER_POLICY})),k&&this.store.dispatch((0,w.jW)({payload:"Funder Policy Updated Successfully with Compact Lease: "+b.compact_lease+"!"})),b)),(0,I.K)(b=>(this.handleErrorWithoutAlert("Funder Policy",T.m6.GET_FUNDER_POLICY,b),(0,C._)(()=>new Error(this.extractErrorMessage(b))))))}))}extractErrorMessage(S,i="Unknown Error."){return this.titleCasePipe.transform(S.error.text&&"string"==typeof S.error.text&&S.error.text.includes('<!DOCTYPE html><html lang="en">')?"API Route Does Not Exist.":S.error&&S.error.error&&S.error.error.error&&S.error.error.error.error&&S.error.error.error.error.error&&"string"==typeof S.error.error.error.error.error?S.error.error.error.error.error:S.error&&S.error.error&&S.error.error.error&&S.error.error.error.error&&"string"==typeof S.error.error.error.error?S.error.error.error.error:S.error&&S.error.error&&S.error.error.error&&"string"==typeof S.error.error.error?S.error.error.error:S.error&&S.error.error&&"string"==typeof S.error.error?S.error.error:S.error&&"string"==typeof S.error?S.error:S.error&&S.error.error&&S.error.error.error&&S.error.error.error.error&&S.error.error.error.error.message&&"string"==typeof S.error.error.error.error.message?S.error.error.error.error.message:S.error&&S.error.error&&S.error.error.error&&S.error.error.error.message&&"string"==typeof S.error.error.error.message?S.error.error.error.message:S.error&&S.error.error&&S.error.error.message&&"string"==typeof S.error.error.message?S.error.error.message:S.error&&S.error.message&&"string"==typeof S.error.message?S.error.message:S.message&&"string"==typeof S.message?S.message:i)}handleErrorWithoutAlert(S,i,r){r.error.text&&"string"==typeof r.error.text&&r.error.text.includes('<!DOCTYPE html><html lang="en">')&&(r={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+S+"\n"+JSON.stringify(r)),401===r.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,w.uO)({payload:i})),this.store.dispatch((0,w.qi)({payload:{action:S,status:T.Bn.ERROR,statusCode:r.status.toString(),message:this.extractErrorMessage(r)}})))}handleErrorWithAlert(S,i,r,u,l){if(this.logger.error(l),401===l.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,w.uO)({payload:i}));const y=this.extractErrorMessage(l);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:l.status?l.status:"Unknown Error",message:y,URL:u},component:N.H}}})),this.store.dispatch((0,w.qi)({payload:{action:S,status:T.Bn.ERROR,statusCode:l.status.toString(),message:y,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(S=>{S.next(null),S.complete()})}}return ee.\u0275fac=function(S){return new(S||ee)(re.LFG(t.eN),re.LFG(ie.yh),re.LFG(ce.mQ),re.LFG(ae.ux),re.LFG(ne.rS))},ee.\u0275prov=re.Yz7({token:ee,factory:ee.\u0275fac}),ee})()},5043:(ke,J,p)=>{"use strict";p.d(J,{LG:()=>d,mQ:()=>M});var t=p(2340),e=p(4650);const{isDebugMode:f}=t.NZ,C=()=>null;let M=(()=>{class R{invokeConsoleMethod(I,E){}}return R.\u0275fac=function(I){return new(I||R)},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})(),d=(()=>{class R{get info(){return f?console.log.bind(console):C}get warn(){return f?console.warn.bind(console):C}get error(){return f?console.error.bind(console):C}invokeConsoleMethod(I,E){(console[I]||console.log||C).apply(console,[E])}}return R.\u0275fac=function(I){return new(I||R)},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})()},9107:(ke,J,p)=>{"use strict";p.d(J,{W:()=>K});var t=p(529),e=p(1135),f=p(7579),C=p(9646),a=p(2843),M=p(2722),d=p(262),R=p(4004),h=p(2340),I=p(7731),E=p(1786),L=p(7861),T=p(4650),N=p(5043),w=p(9653),G=p(62);let K=(()=>{class Q{constructor(ie,ce,ae,ne){this.httpClient=ie,this.logger=ce,this.store=ae,this.commonService=ne,this.loopUrl="",this.swaps=[],this.swapsChanged=new e.X([]),this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,L.ac)({payload:I.m6.GET_LOOP_SWAPS})),this.loopUrl=h.T5+h.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,M.R)(this.unSubs[0])).subscribe({next:ie=>{this.store.dispatch((0,L.uO)({payload:I.m6.GET_LOOP_SWAPS})),this.swaps=ie,this.swapsChanged.next(this.swaps)},error:ie=>this.swapsChanged.error(this.handleErrorWithAlert(I.m6.GET_LOOP_SWAPS,this.loopUrl,ie))})}loopOut(ie,ce,ae,ne,le,ee,pe,S,i,r){const u={amount:ie,targetConf:ae,swapRoutingFee:ne,minerFee:le,prepayRoutingFee:ee,prepayAmt:pe,swapFee:S,swapPublicationDeadline:i,destAddress:r};return""!==ce&&(u.chanId=ce),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,u).pipe((0,d.K)(l=>this.handleErrorWithoutAlert("Loop Out for Channel: "+ce,I.m6.NO_SPINNER,l)))}getLoopOutTerms(){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(ie=>this.handleErrorWithoutAlert("Loop Out Terms",I.m6.NO_SPINNER,ie)))}getLoopOutQuote(ie,ce,ae){let ne=new t.LE;return ne=ne.append("targetConf",ce.toString()),ne=ne.append("swapPublicationDeadline",ae.toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/quote/"+ie,this.store.dispatch((0,L.ac)({payload:I.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ne}).pipe((0,M.R)(this.unSubs[1]),(0,R.U)(le=>(this.store.dispatch((0,L.uO)({payload:I.m6.GET_QUOTE})),le)),(0,d.K)(le=>this.handleErrorWithoutAlert("Loop Out Quote",I.m6.GET_QUOTE,le)))}getLoopOutTermsAndQuotes(ie){let ce=new t.LE;return ce=ce.append("targetConf",ie.toString()),ce=ce.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,L.ac)({payload:I.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ce}).pipe((0,M.R)(this.unSubs[2]),(0,R.U)(ae=>(this.store.dispatch((0,L.uO)({payload:I.m6.GET_TERMS_QUOTES})),ae)),(0,d.K)(ae=>(0,C.of)(this.handleErrorWithAlert(I.m6.GET_TERMS_QUOTES,this.loopUrl,ae))))}loopIn(ie,ce,ae,ne,le){const ee={amount:ie,swapFee:ce,minerFee:ae,lastHop:ne,externalHtlc:le};return this.loopUrl=h.T5+h.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,ee).pipe((0,d.K)(pe=>this.handleErrorWithoutAlert("Loop In",I.m6.NO_SPINNER,pe)))}getLoopInTerms(){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(ie=>this.handleErrorWithoutAlert("Loop In Terms",I.m6.NO_SPINNER,ie)))}getLoopInQuote(ie,ce,ae){let ne=new t.LE;return ne=ne.append("targetConf",ce.toString()),ne=ne.append("swapPublicationDeadline",ae.toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/quote/"+ie,this.store.dispatch((0,L.ac)({payload:I.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ne}).pipe((0,M.R)(this.unSubs[3]),(0,R.U)(le=>(this.store.dispatch((0,L.uO)({payload:I.m6.GET_QUOTE})),le)),(0,d.K)(le=>this.handleErrorWithoutAlert("Loop In Qoute",I.m6.GET_QUOTE,le)))}getLoopInTermsAndQuotes(ie){let ce=new t.LE;return ce=ce.append("targetConf",ie.toString()),ce=ce.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,L.ac)({payload:I.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ce}).pipe((0,M.R)(this.unSubs[4]),(0,R.U)(ae=>(this.store.dispatch((0,L.uO)({payload:I.m6.GET_TERMS_QUOTES})),ae)),(0,d.K)(ae=>(0,C.of)(this.handleErrorWithAlert(I.m6.GET_TERMS_QUOTES,this.loopUrl,ae))))}getSwap(ie){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/swap/"+ie,this.httpClient.get(this.loopUrl).pipe((0,d.K)(ce=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+ie,I.m6.NO_SPINNER,ce)))}handleErrorWithoutAlert(ie,ce,ae){let ne="";return this.logger.error("ERROR IN: "+ie+"\n"+JSON.stringify(ae)),this.store.dispatch((0,L.uO)({payload:ce})),401===ae.status?(ne="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.kS)())):503===ae.status?(ne="Unable to Connect to Loop Server.",this.store.dispatch((0,L.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ae.status,message:"Unable to Connect to Loop Server",URL:ie},component:E.H}}}))):ne=this.commonService.extractErrorMessage(ae),(0,a._)(()=>new Error(ne))}handleErrorWithAlert(ie,ce,ae){let ne="";if(this.logger.error(ae),this.store.dispatch((0,L.uO)({payload:ie})),401===ae.status)ne="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.kS)());else if(503===ae.status)ne="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,L.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ae.status,message:"Unable to Connect to Loop Server",URL:ce},component:E.H}}}))},100);else{ne=this.commonService.extractErrorMessage(ae);const le=ae.error&&ae.error.error&&ae.error.error.code?ae.error.error.code:ae.error&&ae.error.code?ae.error.code:ae.code?ae.code:ae.status;setTimeout(()=>{this.store.dispatch((0,L.qR)({payload:{data:{type:I.n_.ERROR,alertTitle:"ERROR",message:{code:le,message:ne,URL:ce},component:E.H}}}))},100)}return{message:ne}}ngOnDestroy(){this.unSubs.forEach(ie=>{ie.next(null),ie.complete()})}}return Q.\u0275fac=function(ie){return new(ie||Q)(T.LFG(t.eN),T.LFG(N.mQ),T.LFG(w.yh),T.LFG(G.v))},Q.\u0275prov=T.Yz7({token:Q,factory:Q.\u0275fac}),Q})()},5986:(ke,J,p)=>{"use strict";p.d(J,{m:()=>f});var t=p(7579),e=p(4650);let f=(()=>{class C{constructor(){this.sessionSub=new t.x}watchSession(){return this.sessionSub.asObservable()}getItem(M){return sessionStorage.getItem(M)}getAllItems(){return sessionStorage}setItem(M,d){sessionStorage.setItem(M,d),this.sessionSub.next(sessionStorage)}removeItem(M){sessionStorage.removeItem(M),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac}),C})()},7998:(ke,J,p)=>{"use strict";p.d(J,{d:()=>N});var t=p(1135),e=p(7579),f=p(2722),C=p(930),a=p(9751),M=p(727),d=p(4707);const R={url:"",deserializer:w=>JSON.parse(w.data),serializer:w=>JSON.stringify(w)};class I extends e.u{constructor(G,K){if(super(),this._socket=null,G instanceof a.y)this.destination=K,this.source=G;else{const Q=this._config=Object.assign({},R);if(this._output=new e.x,"string"==typeof G)Q.url=G;else for(const re in G)G.hasOwnProperty(re)&&(Q[re]=G[re]);if(!Q.WebSocketCtor&&WebSocket)Q.WebSocketCtor=WebSocket;else if(!Q.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new d.t}}lift(G){const K=new I(this._config,this.destination);return K.operator=G,K.source=this,K}_resetState(){this._socket=null,this.source||(this.destination=new d.t),this._output=new e.x}multiplex(G,K,Q){const re=this;return new a.y(ie=>{try{re.next(G())}catch(ae){ie.error(ae)}const ce=re.subscribe({next:ae=>{try{Q(ae)&&ie.next(ae)}catch(ne){ie.error(ne)}},error:ae=>ie.error(ae),complete:()=>ie.complete()});return()=>{try{re.next(K())}catch(ae){ie.error(ae)}ce.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:G,protocol:K,url:Q,binaryType:re}=this._config,ie=this._output;let ce=null;try{ce=K?new G(Q,K):new G(Q),this._socket=ce,re&&(this._socket.binaryType=re)}catch(ne){return void ie.error(ne)}const ae=new M.w0(()=>{this._socket=null,ce&&1===ce.readyState&&ce.close()});ce.onopen=ne=>{const{_socket:le}=this;if(!le)return ce.close(),void this._resetState();const{openObserver:ee}=this._config;ee&&ee.next(ne);const pe=this.destination;this.destination=C.Lv.create(S=>{if(1===ce.readyState)try{const{serializer:i}=this._config;ce.send(i(S))}catch(i){this.destination.error(i)}},S=>{const{closingObserver:i}=this._config;i&&i.next(void 0),S&&S.code?ce.close(S.code,S.reason):ie.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:S}=this._config;S&&S.next(void 0),ce.close(),this._resetState()}),pe&&pe instanceof d.t&&ae.add(pe.subscribe(this.destination))},ce.onerror=ne=>{this._resetState(),ie.error(ne)},ce.onclose=ne=>{ce===this._socket&&this._resetState();const{closeObserver:le}=this._config;le&&le.next(ne),ne.wasClean?ie.complete():ie.error(ne)},ce.onmessage=ne=>{try{const{deserializer:le}=this._config;ie.next(le(ne))}catch(le){ie.error(le)}}}_subscribe(G){const{source:K}=this;return K?K.subscribe(G):(this._socket||this._connectSocket(),this._output.subscribe(G),G.add(()=>{const{_socket:Q}=this;0===this._output.observers.length&&(Q&&(1===Q.readyState||0===Q.readyState)&&Q.close(),this._resetState())}),G)}unsubscribe(){const{_socket:G}=this;G&&(1===G.readyState||0===G.readyState)&&G.close(),this._resetState(),super.unsubscribe()}}var E=p(4650),L=p(5043),T=p(5986);let N=(()=>{class w{constructor(K,Q){this.logger=K,this.sessionService=Q,this.clWSMessages=new t.X(null),this.eclWSMessages=new t.X(null),this.lndWSMessages=new t.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x]}connectWebSocket(K,Q){(!this.socket||this.socket.closed)&&(this.wsUrl=K,this.nodeIndex=Q,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new I({url:K,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,f.R)(this.unSubs[1])).subscribe({next:K=>{if((K="string"==typeof K?JSON.parse(K):K).error)this.handleError(K.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(K)),K.source){case"LND":this.lndWSMessages.next(K);break;case"CLN":this.clWSMessages.next(K);break;case"ECL":this.eclWSMessages.next(K)}},error:K=>this.handleError(K),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(K){this.logger.error(K),this.clWSMessages.error(K),this.eclWSMessages.error(K),this.lndWSMessages.error(K),this.reconnectOnError()}ngOnDestroy(){this.closeConnection(),this.clWSMessages.next(null),this.clWSMessages.complete(),this.eclWSMessages.next(null),this.eclWSMessages.complete(),this.lndWSMessages.next(null),this.lndWSMessages.complete()}}return w.\u0275fac=function(K){return new(K||w)(E.LFG(L.mQ),E.LFG(T.m))},w.\u0275prov=E.Yz7({token:w,factory:w.\u0275fac}),w})()},9470:(ke,J,p)=>{"use strict";p.d(J,{m:()=>ls});var t=p(6895),e=p(9116),f=p(4006),C=p(529),a=p(2216),M=p(4650),d=p(2233),R=p(5829),h=p(1576);p(1281);let Je=(()=>{class St{}return St.\u0275fac=function(Mt){return new(Mt||St)},St.\u0275mod=M.oAB({type:St}),St.\u0275inj=M.cJS({imports:[[d.IR]]}),St})(),se=(()=>{class St{constructor(Mt,ti){(0,t.PM)(ti)&&!Mt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(Mt,ti=[]){return{ngModule:St,providers:Mt.serverLoaded?[{provide:d.WU,useValue:{...d.g5,...Mt}},{provide:d.Bs,useValue:ti,multi:!0},{provide:d.wY,useValue:!0}]:[{provide:d.WU,useValue:{...d.g5,...Mt}},{provide:d.Bs,useValue:ti,multi:!0}]}}}return St.\u0275fac=function(Mt){return new(Mt||St)(M.LFG(d.wY),M.LFG(M.Lbi))},St.\u0275mod=M.oAB({type:St}),St.\u0275inj=M.cJS({imports:[[h.ae,R.aT,Je],h.ae,R.aT,Je]}),St})();var Xe=p(2289),bt=p(3238),Vt=p(5412),mi=p(7957),Hi=p(2673),Ui=p(4859);p(4761),p(5017);let Zn=(()=>{class St{}return St.\u0275fac=function(Mt){return new(Mt||St)},St.\u0275mod=M.oAB({type:St}),St.\u0275inj=M.cJS({imports:[bt.BQ,bt.si,bt.BQ]}),St})();var Nn=p(3546),Qn=p(6709),An=p(9602),Si=p(752),Yi=p(782),Mn=p(7392),ha=p(4144),qn=p(6338),Ts=p(8255),Fs=p(8739),Kr=p(3162),Wa=p(1572),Er=p(1948),Pa=p(4385),Ya=p(3267),ns=p(455);p(445),p(9521),p(3353),p(727);let Qs=(()=>{class St{}return St.\u0275fac=function(Mt){return new(Mt||St)},St.\u0275mod=M.oAB({type:St}),St.\u0275inj=M.cJS({imports:[t.ez,bt.BQ,bt.BQ]}),St})();var ur=p(7009),fa=p(6308),Ea=p(8425),Ls=p(671),Na=p(3848),os=p(3683),nr=p(266),Hr=p(5423),ja=p(7331),Ta=p(6883),Zr=p(658),pa=p(6839),Aa=p(8184);let Tr=(()=>{class St extends Aa.Xj{_createContainer(){const Mt=document.createElement("div");Mt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(Mt),this._containerElement=Mt}}return St.\u0275fac=function(){let di;return function(ti){return(di||(di=M.n5z(St)))(ti||St)}}(),St.\u0275prov=M.Yz7({token:St,factory:St.\u0275fac}),St})();var Jn=p(5043),vs=p(7731),rr=p(9445);const io={suppressScrollX:!1,suppressScrollY:!1};let jr=(()=>{class St extends bt.LF{format(Mt,ti){if("input"===ti){let ki=Mt.getDate().toString();return ki=+ki<10?"0"+ki:ki,ki+"/"+vs.gg[Mt.getMonth()].name.toUpperCase()+"/"+Mt.getFullYear()}return vs.gg[Mt.getMonth()].name.toUpperCase()+" "+Mt.getFullYear()}}return St.\u0275fac=function(){let di;return function(ti){return(di||(di=M.n5z(St)))(ti||St)}}(),St.\u0275prov=M.Yz7({token:St,factory:St.\u0275fac}),St})();const ys={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 ls=(()=>{class St{}return St.\u0275fac=function(Mt){return new(Mt||St)},St.\u0275mod=M.oAB({type:St}),St.\u0275inj=M.cJS({providers:[{provide:Jn.mQ,useClass:Jn.LG},{provide:pa.op,useValue:io},{provide:ur.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:Vt.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:bt._A,useClass:jr},{provide:bt.sG,useValue:ys},{provide:Aa.Xj,useClass:Tr},t.JJ,t.rS,t.uU,rr.al,rr.h9,rr.D3,rr.i1],imports:[t.ez,f.u5,f.UX,a.uH,se,Xe.xu,Vt.Is,Ui.ot,Zn,Nn.QW,Qn.p9,Si.To,Yi.N6,An.FA,bt.XK,Mn.Ps,ha.c,qn.ie,Ts.Tx,Kr.Cv,Wa.Cq,Er.Fk,Hr.dp,ja.Hi,Pa.LD,Ya.SJ,ns.rP,fa.JX,Ls.p0,os.g0,nr.AV,Hi.g,Fs.TU,Ea.T5,Qs,Na.Nh,ur.ZX,mi.Bb,Ta.a4,Zr.OF,e.Bz,C.JF,pa.Xd,f.u5,f.UX,a.uH,se,Xe.xu,Vt.Is,Ui.ot,Zn,Nn.QW,Qn.p9,Si.To,Yi.N6,An.FA,bt.XK,Mn.Ps,ha.c,qn.ie,Ts.Tx,Kr.Cv,Wa.Cq,Er.Fk,Hr.dp,ja.Hi,Pa.LD,Ya.SJ,ns.rP,fa.JX,Ls.p0,os.g0,nr.AV,Hi.g,Fs.TU,Ea.T5,Qs,Na.Nh,ur.ZX,mi.Bb,Ta.a4,Zr.OF,pa.Xd]}),St})()},7861:(ke,J,p)=>{"use strict";p.d(J,{M6:()=>E,Q2:()=>w,QO:()=>l,Tm:()=>le,Uy:()=>ae,XT:()=>ie,_V:()=>pe,ac:()=>R,c0:()=>r,c1:()=>L,dc:()=>b,ey:()=>re,fk:()=>ne,jS:()=>ee,jW:()=>d,kS:()=>i,lC:()=>C,qR:()=>I,qi:()=>a,tj:()=>N,ts:()=>M,tw:()=>K,uO:()=>h,vI:()=>Q,x4:()=>D,yb:()=>T,zQ:()=>ce});var t=p(9653),e=p(7731);(0,t.PH)(e.pg.VOID);const C=(0,t.PH)(e.pg.SET_API_URL_ECL,(0,t.Ky)()),a=(0,t.PH)(e.pg.UPDATE_API_CALL_STATUS_ROOT,(0,t.Ky)()),M=(0,t.PH)(e.pg.CLOSE_ALL_DIALOGS),d=(0,t.PH)(e.pg.OPEN_SNACK_BAR,(0,t.Ky)()),R=(0,t.PH)(e.pg.OPEN_SPINNER,(0,t.Ky)()),h=(0,t.PH)(e.pg.CLOSE_SPINNER,(0,t.Ky)()),I=(0,t.PH)(e.pg.OPEN_ALERT,(0,t.Ky)()),E=(0,t.PH)(e.pg.CLOSE_ALERT,(0,t.Ky)()),L=(0,t.PH)(e.pg.OPEN_CONFIRMATION,(0,t.Ky)()),T=(0,t.PH)(e.pg.CLOSE_CONFIRMATION,(0,t.Ky)()),N=(0,t.PH)(e.pg.SHOW_PUBKEY),w=(0,t.PH)(e.pg.FETCH_CONFIG,(0,t.Ky)()),K=((0,t.PH)(e.pg.SHOW_CONFIG,(0,t.Ky)()),(0,t.PH)(e.pg.UPDATE_SELECTED_NODE_OPTIONS)),Q=(0,t.PH)(e.pg.RESET_ROOT_STORE,(0,t.Ky)()),re=(0,t.PH)(e.pg.FETCH_RTL_CONFIG),ie=(0,t.PH)(e.pg.SET_RTL_CONFIG,(0,t.Ky)()),ce=(0,t.PH)(e.pg.SAVE_SETTINGS,(0,t.Ky)()),ae=(0,t.PH)(e.pg.TWO_FA_SAVE_SETTINGS,(0,t.Ky)()),ne=(0,t.PH)(e.pg.SET_SELECTED_NODE,(0,t.Ky)()),le=(0,t.PH)(e.pg.UPDATE_ROOT_NODE_SETTINGS,(0,t.Ky)()),ee=(0,t.PH)(e.pg.UPDATE_SERVICE_SETTINGS,(0,t.Ky)()),pe=(0,t.PH)(e.pg.SET_NODE_DATA,(0,t.Ky)()),i=((0,t.PH)(e.pg.SAVE_SSO,(0,t.Ky)()),(0,t.PH)(e.pg.LOGOUT)),r=(0,t.PH)(e.pg.RESET_PASSWORD,(0,t.Ky)()),l=((0,t.PH)(e.pg.RESET_PASSWORD_RES,(0,t.Ky)()),(0,t.PH)(e.pg.IS_AUTHORIZED,(0,t.Ky)())),D=((0,t.PH)(e.pg.IS_AUTHORIZED_RES,(0,t.Ky)()),(0,t.PH)(e.pg.LOGIN,(0,t.Ky)())),b=((0,t.PH)(e.pg.VERIFY_TWO_FA,(0,t.Ky)()),(0,t.PH)(e.pg.FETCH_FILE,(0,t.Ky)()));(0,t.PH)(e.pg.SHOW_FILE,(0,t.Ky)())},3093:(ke,J,p)=>{"use strict";p.d(J,{V:()=>_n});var t=p(493),e=p(7579),f=p(9646),C=p(9751),a=p(4128),M=p(4004),d=p(5698),R=p(1365),h=p(5577),I=p(262),E=p(2722),L=p(2340),T=p(7731),N=p(5412),w=p(4650),G=p(1576),K=p(1572);let Q=(()=>{class si{constructor(ot,Bt){this.dialogRef=ot,this.data=Bt}}return si.\u0275fac=function(ot){return new(ot||si)(w.Y36(N.so),w.Y36(N.WI))},si.\u0275cmp=w.Xpm({type:si,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(ot,Bt){1&ot&&(w.TgZ(0,"div",0)(1,"div",1),w._UZ(2,"mat-spinner"),w.TgZ(3,"h1"),w._uU(4),w.qZA()()()),2&ot&&(w.xp6(4),w.Oqu(Bt.data.titleMessage))},dependencies:[G.xw,G.Wh,K.Ou],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),si})();var re=p(5043),ie=p(7009),ce=p(62),ae=p(6895),ne=p(5829),le=p(4859),ee=p(3546),pe=p(7392),S=p(4850),i=p(658),r=p(6839),u=p(5199),l=p(3390);const y=["scrollContainer"];function D(si,Ti){if(1&si&&w._UZ(0,"qr-code",15),2&si){const ot=w.oxw();w.Q6J("value",ot.showQRField)("size",200)("errorCorrectionLevel","L")}}function k(si,Ti){1&si&&w.GkF(0)}const b=function(si){return{"h-40":si}};function n(si,Ti){if(1&si&&(w.ynx(0),w.TgZ(1,"mat-card-content",16,17),w.YNc(3,k,1,0,"ng-container",18),w.qZA(),w.BQk()),2&si){const ot=w.oxw(),Bt=w.MAs(20);w.xp6(1),w.Q6J("ngClass",w.VKq(2,b,ot.data.scrollable)),w.xp6(2),w.Q6J("ngTemplateOutlet",Bt)}}function _(si,Ti){1&si&&w.GkF(0)}function W(si,Ti){if(1&si&&(w.ynx(0),w.TgZ(1,"mat-card-content",19),w.YNc(2,_,1,0,"ng-container",18),w.qZA(),w.BQk()),2&si){w.oxw();const ot=w.MAs(20);w.xp6(2),w.Q6J("ngTemplateOutlet",ot)}}function P(si,Ti){1&si&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_downward"),w.qZA())}function U(si,Ti){1&si&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_upward"),w.qZA())}function me(si,Ti){if(1&si){const ot=w.EpF();w.TgZ(0,"div",20)(1,"button",21),w.NdJ("click",function(){w.CHM(ot);const Xt=w.oxw();return w.KtG(Xt.onScroll())}),w.YNc(2,P,2,0,"mat-icon",22),w.YNc(3,U,2,0,"mat-icon",22),w.qZA()()}if(2&si){const ot=w.oxw();w.xp6(2),w.Q6J("ngIf","DOWN"===ot.scrollDirection),w.xp6(1),w.Q6J("ngIf","UP"===ot.scrollDirection)}}function nt(si,Ti){1&si&&(w.TgZ(0,"button",24),w._uU(1,"OK"),w.qZA()),2&si&&w.Q6J("mat-dialog-close",!1)}function Pe(si,Ti){1&si&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&si&&w.Q6J("mat-dialog-close",!1)}function Oe(si,Ti){if(1&si){const ot=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(Xt){w.CHM(ot);const fi=w.oxw();return w.KtG(fi.onCopyField(Xt))}),w._uU(1),w.qZA()}if(2&si){const ot=w.oxw();w.Q6J("payload",ot.showCopyField),w.xp6(1),w.hij("Copy ",ot.showCopyName,"")}}function De(si,Ti){1&si&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&si&&w.Q6J("mat-dialog-close",!1)}function ue(si,Ti){if(1&si){const ot=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(Xt){w.CHM(ot);const fi=w.oxw();return w.KtG(fi.onCopyField(Xt))}),w._uU(1),w.qZA()}if(2&si){const ot=w.oxw();w.Q6J("payload",ot.showQRField),w.xp6(1),w.hij("Copy ",ot.showQRName,"")}}function ve(si,Ti){if(1&si&&w._UZ(0,"qr-code",15),2&si){const ot=w.oxw(2);w.Q6J("value",ot.showQRField)("size",200)("errorCorrectionLevel","L")}}function Ie(si,Ti){if(1&si&&(w.TgZ(0,"p",32),w._uU(1),w.qZA()),2&si){const ot=w.oxw(2);w.xp6(1),w.Oqu(ot.data.titleMessage)}}function $(si,Ti){1&si&&w._UZ(0,"span",46),2&si&&w.Q6J("innerHTML",Ti.$implicit,w.oJD)}function Ge(si,Ti){if(1&si&&(w.ynx(0),w.YNc(1,$,1,1,"span",45),w.BQk()),2&si){const ot=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",ot.value)}}function ut(si,Ti){if(1&si&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&si){const ot=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*ot.value,"dd/MMM/y HH:mm"))}}function Ee(si,Ti){if(1&si&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&si){const ot=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,ot.value,ot.digitsInfo?ot.digitsInfo:"1.0-3"))}}function ye(si,Ti){if(1&si&&(w.ynx(0),w._uU(1),w.BQk()),2&si){const ot=w.oxw(2).$implicit;w.xp6(1),w.Oqu(ot.value?"True":"False")}}function he(si,Ti){1&si&&(w.TgZ(0,"mat-icon",51),w._uU(1,"info"),w.qZA())}const de=function(si){return{"failed-status":si}};function we(si,Ti){if(1&si&&(w.TgZ(0,"p",49),w._uU(1),w.YNc(2,he,2,0,"mat-icon",50),w.qZA()),2&si){const ot=w.oxw(3).$implicit,Bt=w.oxw(4);w.Q6J("ngClass",w.VKq(3,de,ot.value===Bt.LoopStateEnum.FAILED)),w.xp6(1),w.hij(" ",ot.value," "),w.xp6(1),w.Q6J("ngIf",ot.value===Bt.LoopStateEnum.FAILED)}}function Y(si,Ti){if(1&si&&w._uU(0),2&si){const ot=w.oxw(3).$implicit;w.Oqu(ot.value)}}function j(si,Ti){if(1&si&&(w.ynx(0),w.YNc(1,we,3,5,"p",47),w.YNc(2,Y,1,1,"ng-template",null,48,w.W1O),w.BQk()),2&si){const ot=w.MAs(3),Bt=w.oxw(2).$implicit,Xt=w.oxw(4);w.xp6(1),w.Q6J("ngIf","SWAP"===Xt.data.openedBy&&"state"===Bt.key)("ngIfElse",ot)}}function Ce(si,Ti){if(1&si&&(w.TgZ(0,"span")(1,"span",42),w.YNc(2,Ge,2,1,"ng-container",43),w.YNc(3,ut,3,4,"ng-container",43),w.YNc(4,Ee,3,4,"ng-container",43),w.YNc(5,ye,2,1,"ng-container",43),w.YNc(6,j,4,2,"ng-container",44),w.qZA()()),2&si){const ot=w.oxw().$implicit,Bt=w.oxw(4);w.xp6(1),w.Q6J("ngSwitch",ot.type),w.xp6(1),w.Q6J("ngSwitchCase",Bt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Bt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Bt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Bt.dataTypeEnum.BOOLEAN)}}function Se(si,Ti){1&si&&(w.TgZ(0,"span",52),w._uU(1,"\xa0"),w.qZA())}function X(si,Ti){if(1&si&&(w.TgZ(0,"div",37)(1,"h4",38),w._uU(2),w.qZA(),w.YNc(3,Ce,7,5,"span",39),w.YNc(4,Se,2,0,"ng-template",null,40,w.W1O),w._UZ(6,"mat-divider",41),w.qZA()),2&si){const ot=Ti.$implicit,Bt=w.MAs(5);w.s9C("fxFlex.gt-md",ot.width),w.xp6(2),w.Oqu(ot.title),w.xp6(1),w.Q6J("ngIf",ot&&(!!ot.value||0===ot.value))("ngIfElse",Bt)}}function Ye(si,Ti){if(1&si&&(w.TgZ(0,"div")(1,"div",35),w.YNc(2,X,7,4,"div",36),w.qZA()()),2&si){const ot=Ti.$implicit;w.xp6(2),w.Q6J("ngForOf",ot)}}function Le(si,Ti){if(1&si&&(w.TgZ(0,"div",33),w.YNc(1,Ye,3,1,"div",34),w.qZA()),2&si){const ot=w.oxw(2);w.xp6(1),w.Q6J("ngForOf",ot.messageObjs)}}const gt=function(si){return{"display-none":si}};function Wt(si,Ti){if(1&si&&(w.TgZ(0,"div",27)(1,"div",28),w.YNc(2,ve,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",29),w.YNc(4,Ie,2,1,"p",30),w.YNc(5,Le,2,1,"div",31),w.qZA()()),2&si){const ot=w.oxw();w.xp6(1),w.Q6J("ngClass",w.VKq(4,gt,""===ot.showQRField||ot.screenSize!==ot.screenSizeEnum.XS&&ot.screenSize!==ot.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==ot.showQRField),w.xp6(2),w.Q6J("ngIf",ot.data.titleMessage),w.xp6(1),w.Q6J("ngIf",(null==ot.messageObjs?null:ot.messageObjs.length)>0)}}let Rt=(()=>{class si{constructor(ot,Bt,Xt,fi,Li,Ri){this.dialogRef=ot,this.data=Bt,this.logger=Xt,this.snackBar=fi,this.commonService=Li,this.renderer=Ri,this.LoopStateEnum=T.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=T.n_,this.dataTypeEnum=T.Gi,this.screenSize="",this.screenSizeEnum=T.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(ot){ot&&(this.scrollContainer=ot,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",Bt=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",Bt=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message||[],this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===T.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)}ngAfterViewChecked(){setTimeout(()=>{this.shouldScroll=this.scrollContainer&&this.scrollContainer.nativeElement&&this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")},500)}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(ot){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+ot)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return si.\u0275fac=function(ot){return new(ot||si)(w.Y36(N.so),w.Y36(N.WI),w.Y36(re.mQ),w.Y36(ie.ux),w.Y36(ce.v),w.Y36(w.Qsj))},si.\u0275cmp=w.Xpm({type:si,selectors:[["rtl-alert-message"]],viewQuery:function(ot,Bt){if(1&ot&&w.Gf(y,5),2&ot){let Xt;w.iGM(Xt=w.CRH())&&(Bt.container=Xt.first)}},decls:21,vars:14,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","ml-1",3,"ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],[3,"fxFlex"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["contentBlock",""],[3,"value","size","errorCorrectionLevel"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],["scrollContainer",""],[4,"ngTemplateOutlet"],[1,"padding-gap-x-large"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","mb-1",3,"ngClass"],["fxLayout","column","fxFlex","100"],["fxLayoutAlign","start center","class","pb-2",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-2"],["fxFlex","100"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["noStyleBlock",""],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(ot,Bt){1&ot&&(w.TgZ(0,"div",0)(1,"div",1),w.YNc(2,D,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5)(6,"span",6),w._uU(7),w.qZA()(),w.TgZ(8,"button",7),w.NdJ("click",function(){return Bt.onClose()}),w._uU(9,"X"),w.qZA()(),w.YNc(10,n,4,4,"ng-container",8),w.YNc(11,W,3,1,"ng-container",8),w.YNc(12,me,4,2,"div",9),w.TgZ(13,"div",10),w.YNc(14,nt,2,1,"button",11),w.YNc(15,Pe,2,1,"button",12),w.YNc(16,Oe,2,2,"button",13),w.YNc(17,De,2,1,"button",12),w.YNc(18,ue,2,2,"button",13),w.qZA()()(),w.YNc(19,Wt,6,6,"ng-template",null,14,w.W1O)),2&ot&&(w.xp6(1),w.Q6J("ngClass",w.VKq(12,gt,""===Bt.showQRField||Bt.screenSize===Bt.screenSizeEnum.XS||Bt.screenSize===Bt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==Bt.showQRField),w.xp6(1),w.Q6J("fxFlex",""===Bt.showQRField||Bt.screenSize===Bt.screenSizeEnum.XS||Bt.screenSize===Bt.screenSizeEnum.SM?"100":"70"),w.xp6(4),w.Oqu(Bt.data.alertTitle||Bt.alertTypeEnum[Bt.data.type]),w.xp6(3),w.Q6J("ngIf",Bt.data.scrollable),w.xp6(1),w.Q6J("ngIf",!Bt.data.scrollable),w.xp6(1),w.Q6J("ngIf",Bt.data.scrollable&&Bt.shouldScroll),w.xp6(2),w.Q6J("ngIf",(!Bt.showQRField||""===Bt.showQRField)&&""===Bt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Bt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Bt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Bt.showQRField),w.xp6(1),w.Q6J("ngIf",""!==Bt.showQRField))},dependencies:[ae.mk,ae.sg,ae.O5,ae.tP,ae.RF,ae.n9,ae.ED,G.xw,G.Wh,G.yH,ne.oO,N.ZT,le.lW,ee.dk,ee.dn,pe.Hw,S.d,i.uU,r.$V,u.y,l.h,ae.JJ,ae.uU],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),si})();var jt=p(2687),hi=p(7861),yt=p(9653),Pt=p(4006),pt=p(2216),vt=p(9549),Ct=p(4144),At=p(6534);function dt(si,Ti){if(1&si&&(w.TgZ(0,"div",18),w._UZ(1,"fa-icon",19),w.TgZ(2,"span"),w._uU(3),w.qZA()()),2&si){const ot=w.oxw();w.xp6(1),w.Q6J("icon",ot.faExclamationTriangle),w.xp6(2),w.Oqu(ot.warningMessage)}}function ze(si,Ti){if(1&si&&(w.TgZ(0,"div",20),w._UZ(1,"fa-icon",19),w.TgZ(2,"span"),w._uU(3),w.qZA()()),2&si){const ot=w.oxw();w.xp6(1),w.Q6J("icon",ot.faInfoCircle),w.xp6(2),w.Oqu(ot.informationMessage)}}function Ve(si,Ti){if(1&si&&(w.TgZ(0,"p",21),w._uU(1),w.qZA()),2&si){const ot=w.oxw();w.xp6(1),w.Oqu(ot.data.titleMessage)}}function Fe(si,Ti){1&si&&w._UZ(0,"div",36),2&si&&w.Q6J("innerHTML",Ti.$implicit,w.oJD)}function be(si,Ti){if(1&si&&(w.ynx(0,34),w.YNc(1,Fe,1,1,"div",35),w.BQk()),2&si){const ot=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",ot.value)}}function xt(si,Ti){if(1&si&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&si){const ot=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*ot.value,"dd/MMM/y HH:mm"))}}function ct(si,Ti){if(1&si&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&si){const ot=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,ot.value,"1.0-3"))}}function Nt(si,Ti){if(1&si&&(w.ynx(0),w._uU(1),w.BQk()),2&si){const ot=w.oxw(2).$implicit;w.xp6(1),w.Oqu(!0===ot.value?"True":"False")}}function et(si,Ti){if(1&si&&(w.ynx(0),w._uU(1),w.BQk()),2&si){const ot=w.oxw(2).$implicit;w.xp6(1),w.Oqu(ot.value)}}function Ae(si,Ti){if(1&si&&(w.TgZ(0,"span")(1,"span",30),w.YNc(2,be,2,1,"ng-container",31),w.YNc(3,xt,3,4,"ng-container",32),w.YNc(4,ct,3,4,"ng-container",32),w.YNc(5,Nt,2,1,"ng-container",32),w.YNc(6,et,2,1,"ng-container",33),w.qZA()()),2&si){const ot=w.oxw().$implicit,Bt=w.oxw(3);w.xp6(1),w.Q6J("ngSwitch",ot.type),w.xp6(1),w.Q6J("ngSwitchCase",Bt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Bt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Bt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Bt.dataTypeEnum.BOOLEAN)}}function rt(si,Ti){1&si&&(w.TgZ(0,"span",37),w._uU(1,"\xa0"),w.qZA())}function Qe(si,Ti){if(1&si&&(w.TgZ(0,"div",25)(1,"h4",26),w._uU(2),w.qZA(),w.YNc(3,Ae,7,5,"span",27),w.YNc(4,rt,2,0,"ng-template",null,28,w.W1O),w._UZ(6,"mat-divider",29),w.qZA()),2&si){const ot=Ti.$implicit,Bt=w.MAs(5);w.s9C("fxFlex.gt-md",ot.width),w.xp6(2),w.Oqu(ot.title),w.xp6(1),w.Q6J("ngIf",ot&&(!!ot.value||0===ot.value))("ngIfElse",Bt)}}function Ke(si,Ti){if(1&si&&(w.TgZ(0,"div")(1,"div",23),w.YNc(2,Qe,7,4,"div",24),w.qZA()()),2&si){const ot=Ti.$implicit;w.xp6(2),w.Q6J("ngForOf",ot)}}function mt(si,Ti){if(1&si&&(w.TgZ(0,"div"),w.YNc(1,Ke,3,1,"div",22),w.qZA()),2&si){const ot=w.oxw();w.xp6(1),w.Q6J("ngForOf",ot.messageObjs)}}function $t(si,Ti){if(1&si&&(w.TgZ(0,"p",21),w._uU(1),w.qZA()),2&si){const ot=w.oxw(2);w.xp6(1),w.Oqu(ot.data.titleMessage)}}function Gt(si,Ti){if(1&si&&(w.TgZ(0,"mat-error"),w._uU(1),w.qZA()),2&si){const ot=w.oxw(2).$implicit;w.xp6(1),w.hij("",ot.placeholder," is required.")}}function zt(si,Ti){if(1&si){const ot=w.EpF();w.TgZ(0,"mat-form-field",41)(1,"input",42),w.NdJ("ngModelChange",function(Xt){w.CHM(ot);const fi=w.oxw().$implicit;return w.KtG(fi.inputValue=Xt)}),w.ALo(2,"lowercase"),w.qZA(),w.YNc(3,Gt,2,1,"mat-error",11),w.TgZ(4,"mat-hint"),w._uU(5),w.qZA()()}if(2&si){const ot=w.oxw(),Bt=ot.$implicit,Xt=ot.index;w.Q6J("fxFlex",Bt.width),w.xp6(1),w.MGl("name","input",Xt,""),w.Q6J("autoFocus",0===Xt)("placeholder",Bt.placeholder)("min",Bt.min)("step",Bt.step)("type",w.lcZ(2,11,Bt.inputType))("ngModel",Bt.inputValue)("tabindex",Xt+1),w.xp6(2),w.Q6J("ngIf",!Bt.inputValue),w.xp6(2),w.Oqu(Bt.hintFunction?Bt.hintFunction(Bt.inputValue):Bt.hintText)}}function Et(si,Ti){if(1&si&&(w.ynx(0),w.YNc(1,zt,6,13,"mat-form-field",40),w.BQk()),2&si){const ot=Ti.$implicit,Bt=w.oxw(2);w.xp6(1),w.Q6J("ngIf",!ot.advancedField||Bt.showAdvanced)}}function ht(si,Ti){if(1&si&&(w.TgZ(0,"div",38),w.YNc(1,$t,2,1,"p",10),w.TgZ(2,"div",39),w.YNc(3,Et,2,1,"ng-container",22),w.qZA()()),2&si){const ot=w.oxw();w.xp6(1),w.Q6J("ngIf",ot.data.titleMessage),w.xp6(2),w.Q6J("ngForOf",ot.getInputs)}}function at(si,Ti){1&si&&(w.TgZ(0,"p"),w._uU(1,"Show Advanced"),w.qZA())}function ei(si,Ti){1&si&&(w.TgZ(0,"p"),w._uU(1,"Hide Advanced"),w.qZA())}function Ut(si,Ti){if(1&si){const ot=w.EpF();w.TgZ(0,"button",43),w.NdJ("click",function(){w.CHM(ot);const Xt=w.oxw();return w.KtG(Xt.onShowAdvanced())}),w.YNc(1,at,2,0,"p",27),w.YNc(2,ei,2,0,"ng-template",null,44,w.W1O),w.qZA()}if(2&si){const ot=w.MAs(3),Bt=w.oxw();w.xp6(1),w.Q6J("ngIf",!Bt.showAdvanced)("ngIfElse",ot)}}function qt(si,Ti){if(1&si){const ot=w.EpF();w.TgZ(0,"button",45),w.NdJ("click",function(){w.CHM(ot);const Xt=w.oxw();return w.KtG(Xt.onClose(Xt.getInputs))}),w._uU(1),w.qZA()}if(2&si){const ot=w.oxw();w.xp6(1),w.Oqu(ot.yesBtnText)}}function Pi(si,Ti){if(1&si){const ot=w.EpF();w.TgZ(0,"button",46),w.NdJ("click",function(){w.CHM(ot);const Xt=w.oxw();return w.KtG(Xt.onClose(!0))}),w._uU(1),w.qZA()}if(2&si){const ot=w.oxw();w.xp6(1),w.Oqu(ot.yesBtnText)}}let Ii=(()=>{class si{constructor(ot,Bt,Xt,fi){this.dialogRef=ot,this.data=Bt,this.logger=Xt,this.store=fi,this.faInfoCircle=jt.sqG,this.faExclamationTriangle=jt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=T.n_,this.dataTypeEnum=T.Gi,this.getInputs=[{placeholder:"",inputType:T.Gi.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===T.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onClose(ot){if(ot&&this.getInputs&&this.getInputs.some(Bt=>typeof Bt.inputValue>"u"))return!0;!this.showAdvanced&&ot.length&&(ot=ot?.reduce((Bt,Xt)=>(Xt.advancedField||Bt.push(Xt),Bt),[])),this.store.dispatch((0,hi.yb)({payload:ot}))}}return si.\u0275fac=function(ot){return new(ot||si)(w.Y36(N.so),w.Y36(N.WI),w.Y36(re.mQ),w.Y36(yt.yh))},si.\u0275cmp=w.Xpm({type:si,selectors:[["rtl-confirmation-message"]],decls:21,vars:10,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],["mat-button","","color","primary","type","button","class","mr-1","tabindex","2",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngIf"],[3,"fxFlex"],["matInput","","required","",3,"autoFocus","placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(ot,Bt){1&ot&&(w.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),w._uU(5),w.qZA()(),w.TgZ(6,"button",5),w.NdJ("click",function(){return Bt.onClose(!1)}),w._uU(7,"X"),w.qZA()(),w.TgZ(8,"mat-card-content",6)(9,"form",7),w.YNc(10,dt,4,2,"div",8),w.YNc(11,ze,4,2,"div",9),w.YNc(12,Ve,2,1,"p",10),w.YNc(13,mt,2,1,"div",11),w.YNc(14,ht,4,2,"div",12),w.TgZ(15,"div",13)(16,"button",14),w.NdJ("click",function(){return Bt.onClose(!1)}),w._uU(17),w.qZA(),w.YNc(18,Ut,4,2,"button",15),w.YNc(19,qt,2,1,"button",16),w.YNc(20,Pi,2,1,"button",17),w.qZA()()()()()),2&ot&&(w.xp6(5),w.Oqu(Bt.data.alertTitle||Bt.alertTypeEnum[Bt.data.type]),w.xp6(5),w.Q6J("ngIf",Bt.warningMessage&&""!==Bt.warningMessage),w.xp6(1),w.Q6J("ngIf",Bt.informationMessage&&""!==Bt.informationMessage),w.xp6(1),w.Q6J("ngIf",Bt.data.titleMessage&&!Bt.flgShowInput),w.xp6(1),w.Q6J("ngIf",(null==Bt.messageObjs?null:Bt.messageObjs.length)>0),w.xp6(1),w.Q6J("ngIf",Bt.flgShowInput),w.xp6(3),w.Oqu(Bt.noBtnText),w.xp6(1),w.Q6J("ngIf",Bt.hasAdvanced),w.xp6(1),w.Q6J("ngIf",Bt.flgShowInput),w.xp6(1),w.Q6J("ngIf",!Bt.flgShowInput))},dependencies:[ae.sg,ae.O5,ae.RF,ae.n9,ae.ED,Pt._Y,Pt.Fj,Pt.JJ,Pt.JL,Pt.Q7,Pt.On,Pt.F,pt.BN,G.xw,G.Wh,G.yH,le.lW,ee.dk,ee.dn,vt.TO,vt.KE,vt.bx,Ct.Nt,S.d,l.h,At.q,ae.i8,ae.JJ,ae.uU]}),si})();var Ei=p(1786),Vi=p(4385),Be=p(3238);function kt(si,Ti){if(1&si&&(w.TgZ(0,"mat-option",23),w._uU(1),w.qZA()),2&si){const ot=Ti.$implicit;w.Q6J("value",ot),w.xp6(1),w.hij(" ",ot.infoName," ")}}function _e(si,Ti){if(1&si){const ot=w.EpF();w.TgZ(0,"div",13)(1,"mat-form-field",20)(2,"mat-select",21),w.NdJ("valueChange",function(Xt){w.CHM(ot);const fi=w.oxw();return w.KtG(fi.selInfoType=Xt)}),w.YNc(3,kt,2,2,"mat-option",22),w.qZA()()()}if(2&si){const ot=w.oxw();w.xp6(2),w.Q6J("value",ot.selInfoType),w.xp6(1),w.Q6J("ngForOf",ot.infoTypes)}}const Je=function(si){return{"display-none":si}};let _t=(()=>{class si{constructor(ot,Bt,Xt,fi,Li){this.dialogRef=ot,this.data=Bt,this.logger=Xt,this.snackBar=fi,this.commonService=Li,this.faReceipt=jt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=T.cu}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((ot,Bt)=>{this.infoTypes.push({infoID:Bt+1,infoKey:"node URI "+(Bt+1),infoName:"Node URI "+(Bt+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(ot){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+ot)}}return si.\u0275fac=function(ot){return new(ot||si)(w.Y36(N.so),w.Y36(N.WI),w.Y36(re.mQ),w.Y36(ie.ux),w.Y36(ce.v))},si.\u0275cmp=w.Xpm({type:si,selectors:[["rtl-show-pubkey"]],decls:26,vars:19,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"value","size","errorCorrectionLevel"],["fxFlex","100","fxFlex.gt-sm","70"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(ot,Bt){1&ot&&(w.TgZ(0,"div",0)(1,"div",1),w._UZ(2,"qr-code",2),w.qZA(),w.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5),w._UZ(6,"fa-icon",6),w.TgZ(7,"span",7),w._uU(8),w.qZA()(),w.TgZ(9,"button",8),w.NdJ("click",function(){return Bt.onClose()}),w._uU(10,"X"),w.qZA()(),w.TgZ(11,"mat-card-content",9)(12,"div",10)(13,"div",11),w._UZ(14,"qr-code",2),w.qZA(),w.YNc(15,_e,4,2,"div",12),w.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),w._uU(19),w.qZA(),w.TgZ(20,"span",16),w._uU(21),w.qZA()()(),w._UZ(22,"mat-divider",17),w.TgZ(23,"div",18)(24,"button",19),w.NdJ("copied",function(fi){return Bt.onCopyPubkey(fi)}),w._uU(25),w.qZA()()()()()()),2&ot&&(w.xp6(1),w.Q6J("ngClass",w.VKq(15,Je,Bt.screenSize===Bt.screenSizeEnum.XS||Bt.screenSize===Bt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Bt.selInfoType.infoID?Bt.information.identity_pubkey:Bt.information.uris[Bt.selInfoType.infoID-1]),w.Q6J("size",Bt.qrWidth)("errorCorrectionLevel","L"),w.xp6(4),w.Q6J("icon",Bt.faReceipt),w.xp6(2),w.Oqu(Bt.selInfoType.infoName),w.xp6(5),w.Q6J("ngClass",w.VKq(17,Je,Bt.screenSize!==Bt.screenSizeEnum.XS&&Bt.screenSize!==Bt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Bt.selInfoType.infoID?Bt.information.identity_pubkey:Bt.information.uris[Bt.selInfoType.infoID-1]),w.Q6J("size",Bt.qrWidth)("errorCorrectionLevel","L"),w.xp6(1),w.Q6J("ngIf",Bt.information.uris&&Bt.information.uris.length>0),w.xp6(4),w.Oqu(Bt.selInfoType.infoName),w.xp6(2),w.Oqu(0===Bt.selInfoType.infoID?Bt.information.identity_pubkey:Bt.information.uris[Bt.selInfoType.infoID-1]),w.xp6(3),w.s9C("payload",0===Bt.selInfoType.infoID?Bt.information.identity_pubkey:Bt.information.uris[Bt.selInfoType.infoID-1]),w.xp6(1),w.hij("Copy ",Bt.selInfoType.infoKey,""))},dependencies:[ae.mk,ae.sg,ae.O5,pt.BN,G.xw,G.Wh,G.yH,ne.oO,le.lW,ee.dk,ee.dn,vt.KE,S.d,Vi.gD,Be.ey,i.uU,u.y,l.h]}),si})();var se=p(6523),Xe=p(429),bt=p(2994),Vt=p(8377),mi=p(529),Hi=p(7998),Ui=p(5986),Ji=p(8104),an=p(9116);let _n=(()=>{class si{constructor(ot,Bt,Xt,fi,Li,Ri,Dn,Zn,Nn,Qn,An){this.actions=ot,this.httpClient=Bt,this.store=Xt,this.logger=fi,this.wsService=Li,this.sessionService=Ri,this.commonService=Dn,this.dataService=Zn,this.dialog=Nn,this.snackBar=Qn,this.router=An,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new e.x,new e.x],this.closeAllDialogs=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.CLOSE_ALL_DIALOGS),(0,M.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.OPEN_SNACK_BAR),(0,M.U)(Si=>{"string"==typeof Si.payload?this.snackBar.open(Si.payload):this.snackBar.open(Si.payload.message,"","ERROR"===Si.payload.type?{duration:Si.payload.duration?Si.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===Si.payload.type?{duration:Si.payload.duration?Si.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:Si.payload.duration?Si.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.OPEN_SPINNER),(0,M.U)(Si=>{Si.payload!==T.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(Q,{data:{titleMessage:Si.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.CLOSE_SPINNER),(0,M.U)(Si=>{if(Si.payload!==T.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===Si.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Yi=>{Yi.componentInstance&&Yi.componentInstance.data&&Yi.componentInstance.data.titleMessage&&Yi.componentInstance.data.titleMessage===Si.payload&&Yi.close()})}catch(Yi){this.logger.error(Yi)}})),{dispatch:!1}),this.openAlert=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.OPEN_ALERT),(0,M.U)(Si=>{const Yi=JSON.parse(JSON.stringify(Si.payload));Yi.width||(Yi.width=this.alertWidth),this.dialogRef=this.dialog.open(Si.payload.data.component?Si.payload.data.component:Rt,Yi)})),{dispatch:!1}),this.closeAlert=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.CLOSE_ALERT),(0,M.U)(Si=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Si.payload),Si.payload))),{dispatch:!1}),this.openConfirm=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.OPEN_CONFIRMATION),(0,M.U)(Si=>{const Yi=JSON.parse(JSON.stringify(Si.payload));Yi.width||(Yi.width=this.confirmWidth),this.dialogRef=this.dialog.open(Ii,Yi)})),{dispatch:!1}),this.closeConfirm=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.CLOSE_CONFIRMATION),(0,d.q)(1),(0,M.U)(Si=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Si.payload),Si.payload))),{dispatch:!1}),this.showNodePubkey=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.SHOW_PUBKEY),(0,R.M)(this.store.select(Vt.R4)),(0,h.z)(([Si,Yi])=>(this.sessionService.getItem("token")&&Yi.identity_pubkey?this.store.dispatch((0,hi.qR)({payload:{data:{information:Yi,component:_t}}})):this.snackBar.open("Node Pubkey does not exist."),(0,f.of)({type:T.pg.VOID}))))),this.appConfigFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.FETCH_RTL_CONFIG),(0,h.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===T.cu.XS||this.screenSize===T.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===T.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,hi.ac)({payload:T.m6.GET_RTL_CONFIG})),this.store.dispatch((0,hi.qi)({payload:{action:"FetchRTLConfig",status:T.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(L.NZ.CONF_API+"/rtlconf"):this.httpClient.get(L.NZ.CONF_API+"/rtlconfinit"))),(0,M.U)(Si=>{this.logger.info(Si),this.store.dispatch((0,hi.uO)({payload:T.m6.GET_RTL_CONFIG})),this.store.dispatch((0,hi.qi)({payload:{action:"FetchRTLConfig",status:T.Bn.COMPLETED}}));let Yi=null;return Si.nodes.forEach(Mn=>{Mn.settings.currencyUnits=[...T.uA,Mn.settings?.currencyUnit?Mn.settings?.currencyUnit:""],+(Mn.index||-1)===Si.selectedNodeIndex&&(Yi=Mn)}),Yi?(this.store.dispatch((0,hi.fk)({payload:{uiMessage:T.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Yi,isInitialSetup:!0}})),{type:T.pg.SET_RTL_CONFIG,payload:Si}):{type:T.pg.VOID}}),(0,I.K)(Si=>(this.handleErrorWithAlert("FetchRTLConfig",T.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",L.NZ.CONF_API,Si),(0,f.of)({type:T.pg.VOID}))))),this.settingSave=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.SAVE_SETTINGS),(0,h.z)(Si=>{this.store.dispatch((0,hi.ac)({payload:Si.payload.uiMessage})),this.store.dispatch((0,hi.qi)({payload:{action:"UpdateSettings",status:T.Bn.INITIATED}}));let Yi=new C.y;if(Si.payload.settings&&Si.payload.defaultNodeIndex){const Mn=this.httpClient.post(L.NZ.CONF_API,{updatedSettings:Si.payload.settings}),ha=this.httpClient.post(L.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Si.payload.defaultNodeIndex});Yi=(0,a.D)([Mn,ha])}else Si.payload.settings&&!Si.payload.defaultNodeIndex?Yi=this.httpClient.post(L.NZ.CONF_API,{updatedSettings:Si.payload.settings}):!Si.payload.settings&&Si.payload.defaultNodeIndex&&(Yi=this.httpClient.post(L.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Si.payload.defaultNodeIndex}));return Yi.pipe((0,M.U)(Mn=>(this.logger.info(Mn),this.store.dispatch((0,hi.qi)({payload:{action:"UpdateSettings",status:T.Bn.COMPLETED}})),this.store.dispatch((0,hi.uO)({payload:Si.payload.uiMessage})),{type:T.pg.OPEN_SNACK_BAR,payload:Mn.length?Mn[0].message+".":Mn.message+"."})),(0,I.K)(Mn=>(this.handleErrorWithAlert("UpdateSettings",Si.payload.uiMessage,"Update Settings Failed!",L.NZ.CONF_API,Mn.length?Mn[0]:Mn),(0,f.of)({type:T.pg.VOID}))))}))),this.updateServicesettings=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.UPDATE_SERVICE_SETTINGS),(0,h.z)(Si=>(this.store.dispatch((0,hi.ac)({payload:Si.payload.uiMessage})),this.store.dispatch((0,hi.qi)({payload:{action:"UpdateServiceSettings",status:T.Bn.INITIATED}})),this.httpClient.post(L.NZ.CONF_API+"/updateServiceSettings",Si.payload).pipe((0,M.U)(Yi=>(this.logger.info(Yi),this.store.dispatch((0,hi.qi)({payload:{action:"UpdateServiceSettings",status:T.Bn.COMPLETED}})),this.store.dispatch((0,hi.uO)({payload:Si.payload.uiMessage})),this.store.dispatch((0,hi.Tm)({payload:Si.payload})),{type:T.pg.OPEN_SNACK_BAR,payload:Yi.message+"."})),(0,I.K)(Yi=>(this.handleErrorWithAlert("UpdateServiceSettings",Si.payload.uiMessage,"Update Service Settings Failed!",L.NZ.CONF_API,Yi),(0,f.of)({type:T.pg.VOID})))))))),this.twoFASettingSave=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.TWO_FA_SAVE_SETTINGS),(0,h.z)(Si=>(this.store.dispatch((0,hi.ac)({payload:T.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,hi.qi)({payload:{action:"Update2FASettings",status:T.Bn.INITIATED}})),this.httpClient.post(L.NZ.CONF_API+"/update2FA",{secret2fa:Si.payload.secret2fa}))),(0,R.M)(this.store.select(Vt.Yj)),(0,M.U)(([Si,Yi])=>{this.logger.info(Si),Yi.enable2FA=!Yi.enable2FA,this.store.dispatch((0,hi.qi)({payload:{action:"Update2FASettings",status:T.Bn.COMPLETED}})),this.store.dispatch((0,hi.uO)({payload:T.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,hi.XT)({payload:Yi}))}),(0,I.K)(Si=>(this.handleErrorWithAlert("Update2FASettings",T.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",L.NZ.CONF_API,Si),(0,f.of)({type:T.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.FETCH_CONFIG),(0,h.z)(Si=>(this.store.dispatch((0,hi.ac)({payload:T.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,hi.qi)({payload:{action:"fetchConfig",status:T.Bn.INITIATED}})),this.httpClient.get(L.NZ.CONF_API+"/config/"+Si.payload).pipe((0,M.U)(Yi=>(this.store.dispatch((0,hi.qi)({payload:{action:"fetchConfig",status:T.Bn.COMPLETED}})),this.store.dispatch((0,hi.uO)({payload:T.m6.OPEN_CONFIG_FILE})),{type:T.pg.SHOW_CONFIG,payload:Yi})),(0,I.K)(Yi=>(this.handleErrorWithAlert("fetchConfig",T.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",L.NZ.CONF_API+"/config/"+Si.payload,Yi),(0,f.of)({type:T.pg.VOID})))))))),this.showLnConfig=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.SHOW_CONFIG),(0,M.U)(Si=>Si.payload)),{dispatch:!1}),this.isAuthorized=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.IS_AUTHORIZED),(0,h.z)(Si=>(this.store.dispatch((0,hi.qi)({payload:{action:"IsAuthorized",status:T.Bn.INITIATED}})),this.httpClient.post(L.NZ.AUTHENTICATE_API,{authenticateWith:Si.payload&&""!==Si.payload.trim()?T.OJ.PASSWORD:T.OJ.JWT,authenticationValue:Si.payload&&""!==Si.payload.trim()?Si.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,M.U)(Yi=>(this.logger.info(Yi),this.store.dispatch((0,hi.qi)({payload:{action:"IsAuthorized",status:T.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:T.pg.IS_AUTHORIZED_RES,payload:Yi})),(0,I.K)(Yi=>(this.handleErrorWithAlert("IsAuthorized",T.m6.NO_SPINNER,"Authorization Failed",L.NZ.AUTHENTICATE_API,Yi),(0,f.of)({type:T.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.IS_AUTHORIZED_RES),(0,M.U)(Si=>Si.payload)),{dispatch:!1}),this.authLogin=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.LOGIN),(0,R.M)(this.store.select(Vt.Yj)),(0,h.z)(([Si,Yi])=>(this.store.dispatch((0,se.Ll)({payload:null})),this.store.dispatch((0,Xe.xH)({payload:null})),this.store.dispatch((0,bt.Fd)({payload:null})),this.store.dispatch((0,hi.qi)({payload:{action:"Login",status:T.Bn.INITIATED}})),this.httpClient.post(L.NZ.AUTHENTICATE_API,{authenticateWith:Si.payload.password?T.OJ.PASSWORD:T.OJ.JWT,authenticationValue:Si.payload.password?Si.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:Si.payload.twoFAToken?Si.payload.twoFAToken:""}).pipe((0,M.U)(Mn=>{this.logger.info(Mn),this.store.dispatch((0,hi.qi)({payload:{action:"Login",status:T.Bn.COMPLETED}})),this.setLoggedInDetails(Si.payload.defaultPassword,Mn)}),(0,I.K)(Mn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",T.m6.NO_SPINNER,Mn),+Yi.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:Mn.error&&Mn.error.error?Mn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,f.of)({type:T.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.VERIFY_TWO_FA),(0,h.z)(Si=>(this.store.dispatch((0,hi.ac)({payload:T.m6.VERIFY_TOKEN})),this.store.dispatch((0,hi.qi)({payload:{action:"VerifyToken",status:T.Bn.INITIATED}})),this.httpClient.post(L.NZ.AUTHENTICATE_API+"/token",{authentication2FA:Si.payload.token}).pipe((0,M.U)(Yi=>{this.logger.info(Yi),this.store.dispatch((0,hi.uO)({payload:T.m6.VERIFY_TOKEN})),this.store.dispatch((0,hi.qi)({payload:{action:"VerifyToken",status:T.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,Si.payload.authResponse)}),(0,I.K)(Yi=>(this.handleErrorWithAlert("VerifyToken",T.m6.VERIFY_TOKEN,"Authorization Failed!",L.NZ.AUTHENTICATE_API+"/token",Yi),(0,f.of)({type:T.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.LOGOUT),(0,h.z)(Si=>(this.store.dispatch((0,hi.ac)({payload:T.m6.LOG_OUT})),Si.sso&&+Si.sso.rtlSSO?window.location.href=Si.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,hi._V)({payload:{}})),this.store.dispatch((0,hi.uO)({payload:T.m6.LOG_OUT})),this.logger.info("Logged out from browser"),this.httpClient.get(L.NZ.AUTHENTICATE_API+"/logout").pipe((0,M.U)(Yi=>{this.logger.info(Yi),this.store.dispatch((0,hi.uO)({payload:T.m6.LOG_OUT})),this.logger.info("Logged out from server")}))))),{dispatch:!1}),this.resetPassword=(0,t.GW)(()=>this.actions.pipe((0,E.R)(this.unSubs[1]),(0,t.l4)(T.pg.RESET_PASSWORD),(0,h.z)(Si=>(this.store.dispatch((0,hi.qi)({payload:{action:"ResetPassword",status:T.Bn.INITIATED}})),this.httpClient.post(L.NZ.AUTHENTICATE_API+"/reset",{currPassword:Si.payload.currPassword,newPassword:Si.payload.newPassword}).pipe((0,E.R)(this.unSubs[0]),(0,M.U)(Yi=>(this.logger.info(Yi),this.store.dispatch((0,hi.qi)({payload:{action:"ResetPassword",status:T.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,hi.jW)({payload:"Password Reset Successful!"})),this.SetToken(Yi.token),{type:T.pg.RESET_PASSWORD_RES,payload:Yi.token})),(0,I.K)(Yi=>(this.handleErrorWithAlert("ResetPassword",T.m6.NO_SPINNER,"Password Reset Failed!",L.NZ.AUTHENTICATE_API+"/reset",Yi),(0,f.of)({type:T.pg.VOID})))))))),this.setSelectedNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.SET_SELECTED_NODE),(0,h.z)(Si=>(this.store.dispatch((0,hi.ac)({payload:Si.payload.uiMessage})),this.store.dispatch((0,hi.qi)({payload:{action:"UpdateSelNode",status:T.Bn.INITIATED}})),this.httpClient.get(L.NZ.CONF_API+"/updateSelNode/"+Si.payload.currentLnNode?.index+"/"+Si.payload.prevLnNodeIndex).pipe((0,M.U)(Yi=>(this.logger.info(Yi),this.store.dispatch((0,hi.qi)({payload:{action:"UpdateSelNode",status:T.Bn.COMPLETED}})),this.store.dispatch((0,hi.uO)({payload:Si.payload.uiMessage})),this.initializeNode(Si.payload.currentLnNode,Si.payload.isInitialSetup),{type:T.pg.VOID})),(0,I.K)(Yi=>(this.handleErrorWithAlert("UpdateSelNode",Si.payload.uiMessage,"Update Selected Node Failed!",L.NZ.CONF_API+"/updateSelNode",Yi),(0,f.of)({type:T.pg.VOID})))))))),this.fetchFile=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.FETCH_FILE),(0,h.z)(Si=>{this.store.dispatch((0,hi.ac)({payload:T.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,hi.qi)({payload:{action:"FetchFile",status:T.Bn.INITIATED}}));const Yi="?channel="+Si.payload.channelPoint+(Si.payload.path?"&path="+Si.payload.path:"");return this.httpClient.get(L.NZ.CONF_API+"/file"+Yi).pipe((0,M.U)(Mn=>(this.store.dispatch((0,hi.qi)({payload:{action:"FetchFile",status:T.Bn.COMPLETED}})),this.store.dispatch((0,hi.uO)({payload:T.m6.DOWNLOAD_BACKUP_FILE})),{type:T.pg.SHOW_FILE,payload:Mn})),(0,I.K)(Mn=>(this.handleErrorWithAlert("fetchFile",T.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",L.NZ.CONF_API+"/file"+Yi,{status:this.commonService.extractErrorNumber(Mn),error:{error:this.commonService.extractErrorCode(Mn)}}),(0,f.of)({type:T.pg.VOID}))))}))),this.showFile=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(T.pg.SHOW_FILE),(0,M.U)(Si=>Si.payload)),{dispatch:!1})}initializeNode(ot,Bt){this.logger.info("Initializing node from RTL Effects.");const Xt=Bt?"":"HOME",fi={userPersona:ot.settings.userPersona,channelBackupPath:ot.settings.channelBackupPath,unannouncedChannels:!!ot.settings.unannouncedChannels,selCurrencyUnit:ot.settings.currencyUnit,currencyUnits:T.uA,fiatConversion:ot.settings.fiatConversion,lnImplementation:ot.lnImplementation,swapServerUrl:ot.settings.swapServerUrl,boltzServerUrl:ot.settings.boltzServerUrl,enableOffers:ot.settings.enableOffers,enablePeerswap:ot.settings.enablePeerswap};if(ot.settings.fiatConversion&&ot.settings.currencyUnit&&(fi.currencyUnits=[...T.uA,ot.settings.currencyUnit]),this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,hi.vI)({payload:ot})),this.store.dispatch((0,se.Ll)({payload:fi})),this.store.dispatch((0,Xe.xH)({payload:fi})),this.store.dispatch((0,bt.Fd)({payload:fi})),this.sessionService.getItem("token")){const Li=ot.lnImplementation?ot.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Li);const Ri=L.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":L.T5;switch(this.wsService.connectWebSocket(Ri?.replace(/^http/,"ws")+L.NZ.Web_SOCKET_API,ot.index?ot.index.toString():"-1"),Li){case"CLN":this.store.dispatch((0,Xe.CN)({payload:{loadPage:Xt}}));break;case"ECL":this.store.dispatch((0,bt.iz)({payload:{loadPage:Xt}}));break;default:this.store.dispatch((0,se.sQ)({payload:{loadPage:Xt}}))}}}SetToken(ot){ot?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",ot)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(ot,Bt){this.logger.info("Successfully Authorized!"),this.SetToken(Bt.token),this.sessionService.setItem("defaultPassword",ot),ot?(this.store.dispatch((0,hi.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,hi.ey)())}handleErrorWithoutAlert(ot,Bt,Xt){this.logger.error("ERROR IN: "+ot+"\n"+JSON.stringify(Xt)),401===Xt.status&&"Login"!==ot?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,hi.ts)()),this.store.dispatch((0,hi.kS)()),this.store.dispatch((0,hi.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,hi.uO)({payload:Bt})),this.store.dispatch((0,hi.qi)({payload:{action:ot,status:T.Bn.ERROR,statusCode:Xt.status?Xt.status.toString():"",message:this.commonService.extractErrorMessage(Xt)}})))}handleErrorWithAlert(ot,Bt,Xt,fi,Li){if(this.logger.error(Li),0===Li.status&&Li.statusText&&"Unknown Error"===Li.statusText&&(Li={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Li.status&&"Login"!==ot)this.logger.info("Redirecting to Login"),this.store.dispatch((0,hi.ts)()),this.store.dispatch((0,hi.kS)()),this.store.dispatch((0,hi.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,hi.uO)({payload:Bt}));const Ri=this.commonService.extractErrorMessage(Li);this.store.dispatch((0,hi.qR)({payload:{data:{type:"ERROR",alertTitle:Xt,message:{code:Li.status?Li.status:"Unknown Error",message:Ri,URL:fi},component:Ei.H}}})),this.store.dispatch((0,hi.qi)({payload:{action:ot,status:T.Bn.ERROR,statusCode:Li.status?Li.status.toString():"",message:Ri,URL:fi}}))}}ngOnDestroy(){this.unSubs.forEach(ot=>{ot.next(null),ot.complete()})}}return si.\u0275fac=function(ot){return new(ot||si)(w.LFG(t.eX),w.LFG(mi.eN),w.LFG(yt.yh),w.LFG(re.mQ),w.LFG(Hi.d),w.LFG(Ui.m),w.LFG(ce.v),w.LFG(Ji.D),w.LFG(N.uw),w.LFG(ie.ux),w.LFG(an.F0))},si.\u0275prov=w.Yz7({token:si,factory:si.\u0275fac}),si})()},8377:(ke,J,p)=>{"use strict";p.d(J,{R4:()=>M,Sr:()=>R,Yj:()=>a,dT:()=>C,gW:()=>h,ul:()=>d});var t=p(9653);const e=(0,t.ZF)("root"),C=((0,t.P1)(e,I=>I.apiURL),(0,t.P1)(e,I=>I.selNode)),a=(0,t.P1)(e,I=>I.appConfig),M=(0,t.P1)(e,I=>I.nodeData),d=(0,t.P1)(e,I=>I.apisCallStatus.Login),R=(0,t.P1)(e,I=>I.apisCallStatus.IsAuthorized),h=(0,t.P1)(e,I=>({nodeDate:I.nodeData,selNode:I.selNode}))},2340:(ke,J,p)=>{"use strict";p.d(J,{NZ:()=>e,T5:()=>t,q4:()=>f});const t="./api",e={production:!0,isDebugMode:!1,AUTHENTICATE_API:t+"/authenticate",CONF_API:t+"/conf",PAGE_SETTINGS_API:t+"/pagesettings",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",OFFERS_API:"/offers",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},f="0.13.3-beta"},5415:(ke,J,p)=>{"use strict";var t=p(1481),e=p(4650),f=p(7340);function a(H){return new e.vHH(3e3,!1)}function nt(){return typeof window<"u"&&typeof window.document<"u"}function Pe(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Oe(H){switch(H.length){case 0:return new f.ZN;case 1:return H[0];default:return new f.ZE(H)}}function De(H,F,v,V,te=new Map,je=new Map){const Ft=[],Qt=[];let ci=-1,xi=null;if(V.forEach(qi=>{const Zi=qi.get("offset"),Hn=Zi==ci,zn=Hn&&xi||new Map;qi.forEach((gn,En)=>{let ir=En,Ar=gn;if("offset"!==En)switch(ir=F.normalizePropertyName(ir,Ft),Ar){case f.k1:Ar=te.get(En);break;case f.l3:Ar=je.get(En);break;default:Ar=F.normalizeStyleValue(En,ir,Ar,Ft)}zn.set(ir,Ar)}),Hn||Qt.push(zn),xi=zn,ci=Zi}),Ft.length)throw function r(H){return new e.vHH(3502,!1)}();return Qt}function ue(H,F,v,V){switch(F){case"start":H.onStart(()=>V(v&&ve(v,"start",H)));break;case"done":H.onDone(()=>V(v&&ve(v,"done",H)));break;case"destroy":H.onDestroy(()=>V(v&&ve(v,"destroy",H)))}}function ve(H,F,v){const je=Ie(H.element,H.triggerName,H.fromState,H.toState,F||H.phaseName,v.totalTime??H.totalTime,!!v.disabled),Ft=H._data;return null!=Ft&&(je._data=Ft),je}function Ie(H,F,v,V,te="",je=0,Ft){return{element:H,triggerName:F,fromState:v,toState:V,phaseName:te,totalTime:je,disabled:!!Ft}}function $(H,F,v){let V=H.get(F);return V||H.set(F,V=v),V}function Ge(H){const F=H.indexOf(":");return[H.substring(1,F),H.slice(F+1)]}let ut=(H,F)=>!1,Ee=(H,F,v)=>[],ye=null;function he(H){const F=H.parentNode||H.host;return F===ye?null:F}(Pe()||typeof Element<"u")&&(nt()?(ye=(()=>document.documentElement)(),ut=(H,F)=>{for(;F;){if(F===H)return!0;F=he(F)}return!1}):ut=(H,F)=>H.contains(F),Ee=(H,F,v)=>{if(v)return Array.from(H.querySelectorAll(F));const V=H.querySelector(F);return V?[V]:[]});let Y=null,j=!1;const Ye=ut,Le=Ee;let Wt=(()=>{class H{validateStyleProperty(v){return function Ce(H){Y||(Y=function X(){return typeof document<"u"?document.body:null}()||{},j=!!Y.style&&"WebkitAppearance"in Y.style);let F=!0;return Y.style&&!function we(H){return"ebkit"==H.substring(1,6)}(H)&&(F=H in Y.style,!F&&j&&(F="Webkit"+H.charAt(0).toUpperCase()+H.slice(1)in Y.style)),F}(v)}matchesElement(v,V){return!1}containsElement(v,V){return Ye(v,V)}getParentElement(v){return he(v)}query(v,V,te){return Le(v,V,te)}computeStyle(v,V,te){return te||""}animate(v,V,te,je,Ft,Qt=[],ci){return new f.ZN(te,je)}}return H.\u0275fac=function(v){return new(v||H)},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})(),Rt=(()=>{class H{}return H.NOOP=new Wt,H})();const Pt="ng-enter",pt="ng-leave",vt="ng-trigger",Ct=".ng-trigger",At="ng-animating",dt=".ng-animating";function ze(H){if("number"==typeof H)return H;const F=H.match(/^(-?[\.\d]+)(m?s)/);return!F||F.length<2?0:Ve(parseFloat(F[1]),F[2])}function Ve(H,F){return"s"===F?1e3*H:H}function Fe(H,F,v){return H.hasOwnProperty("duration")?H:function be(H,F,v){let te,je=0,Ft="";if("string"==typeof H){const Qt=H.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Qt)return F.push(a()),{duration:0,delay:0,easing:""};te=Ve(parseFloat(Qt[1]),Qt[2]);const ci=Qt[3];null!=ci&&(je=Ve(parseFloat(ci),Qt[4]));const xi=Qt[5];xi&&(Ft=xi)}else te=H;if(!v){let Qt=!1,ci=F.length;te<0&&(F.push(function M(){return new e.vHH(3100,!1)}()),Qt=!0),je<0&&(F.push(function d(){return new e.vHH(3101,!1)}()),Qt=!0),Qt&&F.splice(ci,0,a())}return{duration:te,delay:je,easing:Ft}}(H,F,v)}function xt(H,F={}){return Object.keys(H).forEach(v=>{F[v]=H[v]}),F}function ct(H){const F=new Map;return Object.keys(H).forEach(v=>{F.set(v,H[v])}),F}function Ae(H,F=new Map,v){if(v)for(let[V,te]of v)F.set(V,te);for(let[V,te]of H)F.set(V,te);return F}function rt(H,F,v){return v?F+":"+v+";":""}function Qe(H){let F="";for(let v=0;v<H.style.length;v++){const V=H.style.item(v);F+=rt(0,V,H.style.getPropertyValue(V))}for(const v in H.style)H.style.hasOwnProperty(v)&&!v.startsWith("_")&&(F+=rt(0,qt(v),H.style[v]));H.setAttribute("style",F)}function Ke(H,F,v){H.style&&(F.forEach((V,te)=>{const je=Ut(te);v&&!v.has(te)&&v.set(te,H.style[je]),H.style[je]=V}),Pe()&&Qe(H))}function mt(H,F){H.style&&(F.forEach((v,V)=>{const te=Ut(V);H.style[te]=""}),Pe()&&Qe(H))}function $t(H){return Array.isArray(H)?1==H.length?H[0]:(0,f.vP)(H):H}const zt=new RegExp("{{\\s*(.+?)\\s*}}","g");function Et(H){let F=[];if("string"==typeof H){let v;for(;v=zt.exec(H);)F.push(v[1]);zt.lastIndex=0}return F}function ht(H,F,v){const V=H.toString(),te=V.replace(zt,(je,Ft)=>{let Qt=F[Ft];return null==Qt&&(v.push(function h(H){return new e.vHH(3003,!1)}()),Qt=""),Qt.toString()});return te==V?H:te}function at(H){const F=[];let v=H.next();for(;!v.done;)F.push(v.value),v=H.next();return F}const ei=/-+([a-z0-9])/g;function Ut(H){return H.replace(ei,(...F)=>F[1].toUpperCase())}function qt(H){return H.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ei(H,F,v){switch(F.type){case 7:return H.visitTrigger(F,v);case 0:return H.visitState(F,v);case 1:return H.visitTransition(F,v);case 2:return H.visitSequence(F,v);case 3:return H.visitGroup(F,v);case 4:return H.visitAnimate(F,v);case 5:return H.visitKeyframes(F,v);case 6:return H.visitStyle(F,v);case 8:return H.visitReference(F,v);case 9:return H.visitAnimateChild(F,v);case 10:return H.visitAnimateRef(F,v);case 11:return H.visitQuery(F,v);case 12:return H.visitStagger(F,v);default:throw function I(H){return new e.vHH(3004,!1)}()}}function Vi(H,F){return window.getComputedStyle(H)[F]}function Vt(H,F){const v=[];return"string"==typeof H?H.split(/\s*,\s*/).forEach(V=>function mi(H,F,v){if(":"==H[0]){const ci=function Hi(H,F){switch(H){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(v,V)=>parseFloat(V)>parseFloat(v);case":decrement":return(v,V)=>parseFloat(V)<parseFloat(v);default:return F.push(function ee(H){return new e.vHH(3016,!1)}()),"* => *"}}(H,v);if("function"==typeof ci)return void F.push(ci);H=ci}const V=H.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==V||V.length<4)return v.push(function le(H){return new e.vHH(3015,!1)}()),F;const te=V[1],je=V[2],Ft=V[3];F.push(an(te,Ft));"<"==je[0]&&!("*"==te&&"*"==Ft)&&F.push(an(Ft,te))}(V,v,F)):v.push(H),v}const Ui=new Set(["true","1"]),Ji=new Set(["false","0"]);function an(H,F){const v=Ui.has(H)||Ji.has(H),V=Ui.has(F)||Ji.has(F);return(te,je)=>{let Ft="*"==H||H==te,Qt="*"==F||F==je;return!Ft&&v&&"boolean"==typeof te&&(Ft=te?Ui.has(H):Ji.has(H)),!Qt&&V&&"boolean"==typeof je&&(Qt=je?Ui.has(F):Ji.has(F)),Ft&&Qt}}const si=new RegExp("s*:selfs*,?","g");function Ti(H,F,v,V){return new Bt(H).build(F,v,V)}class Bt{constructor(F){this._driver=F}build(F,v,V){const te=new Li(v);return this._resetContextStyleTimingState(te),Ei(this,$t(F),te)}_resetContextStyleTimingState(F){F.currentQuerySelector="",F.collectedStyles=new Map,F.collectedStyles.set("",new Map),F.currentTime=0}visitTrigger(F,v){let V=v.queryCount=0,te=v.depCount=0;const je=[],Ft=[];return"@"==F.name.charAt(0)&&v.errors.push(function L(){return new e.vHH(3006,!1)}()),F.definitions.forEach(Qt=>{if(this._resetContextStyleTimingState(v),0==Qt.type){const ci=Qt,xi=ci.name;xi.toString().split(/\s*,\s*/).forEach(qi=>{ci.name=qi,je.push(this.visitState(ci,v))}),ci.name=xi}else if(1==Qt.type){const ci=this.visitTransition(Qt,v);V+=ci.queryCount,te+=ci.depCount,Ft.push(ci)}else v.errors.push(function T(){return new e.vHH(3007,!1)}())}),{type:7,name:F.name,states:je,transitions:Ft,queryCount:V,depCount:te,options:null}}visitState(F,v){const V=this.visitStyle(F.styles,v),te=F.options&&F.options.params||null;if(V.containsDynamicStyles){const je=new Set,Ft=te||{};V.styles.forEach(Qt=>{Qt instanceof Map&&Qt.forEach(ci=>{Et(ci).forEach(xi=>{Ft.hasOwnProperty(xi)||je.add(xi)})})}),je.size&&(at(je.values()),v.errors.push(function N(H,F){return new e.vHH(3008,!1)}()))}return{type:0,name:F.name,style:V,options:te?{params:te}:null}}visitTransition(F,v){v.queryCount=0,v.depCount=0;const V=Ei(this,$t(F.animation),v);return{type:1,matchers:Vt(F.expr,v.errors),animation:V,queryCount:v.queryCount,depCount:v.depCount,options:Zn(F.options)}}visitSequence(F,v){return{type:2,steps:F.steps.map(V=>Ei(this,V,v)),options:Zn(F.options)}}visitGroup(F,v){const V=v.currentTime;let te=0;const je=F.steps.map(Ft=>{v.currentTime=V;const Qt=Ei(this,Ft,v);return te=Math.max(te,v.currentTime),Qt});return v.currentTime=te,{type:3,steps:je,options:Zn(F.options)}}visitAnimate(F,v){const V=function Dn(H,F){if(H.hasOwnProperty("duration"))return H;if("number"==typeof H)return Nn(Fe(H,F).duration,0,"");const v=H;if(v.split(/\s+/).some(je=>"{"==je.charAt(0)&&"{"==je.charAt(1))){const je=Nn(0,0,"");return je.dynamic=!0,je.strValue=v,je}const te=Fe(v,F);return Nn(te.duration,te.delay,te.easing)}(F.timings,v.errors);v.currentAnimateTimings=V;let te,je=F.styles?F.styles:(0,f.oB)({});if(5==je.type)te=this.visitKeyframes(je,v);else{let Ft=F.styles,Qt=!1;if(!Ft){Qt=!0;const xi={};V.easing&&(xi.easing=V.easing),Ft=(0,f.oB)(xi)}v.currentTime+=V.duration+V.delay;const ci=this.visitStyle(Ft,v);ci.isEmptyStep=Qt,te=ci}return v.currentAnimateTimings=null,{type:4,timings:V,style:te,options:null}}visitStyle(F,v){const V=this._makeStyleAst(F,v);return this._validateStyleAst(V,v),V}_makeStyleAst(F,v){const V=[],te=Array.isArray(F.styles)?F.styles:[F.styles];for(let Qt of te)"string"==typeof Qt?Qt===f.l3?V.push(Qt):v.errors.push(new e.vHH(3002,!1)):V.push(ct(Qt));let je=!1,Ft=null;return V.forEach(Qt=>{if(Qt instanceof Map&&(Qt.has("easing")&&(Ft=Qt.get("easing"),Qt.delete("easing")),!je))for(let ci of Qt.values())if(ci.toString().indexOf("{{")>=0){je=!0;break}}),{type:6,styles:V,easing:Ft,offset:F.offset,containsDynamicStyles:je,options:null}}_validateStyleAst(F,v){const V=v.currentAnimateTimings;let te=v.currentTime,je=v.currentTime;V&&je>0&&(je-=V.duration+V.delay),F.styles.forEach(Ft=>{"string"!=typeof Ft&&Ft.forEach((Qt,ci)=>{const xi=v.collectedStyles.get(v.currentQuerySelector),qi=xi.get(ci);let Zi=!0;qi&&(je!=te&&je>=qi.startTime&&te<=qi.endTime&&(v.errors.push(function K(H,F,v,V,te){return new e.vHH(3010,!1)}()),Zi=!1),je=qi.startTime),Zi&&xi.set(ci,{startTime:je,endTime:te}),v.options&&function Gt(H,F,v){const V=F.params||{},te=Et(H);te.length&&te.forEach(je=>{V.hasOwnProperty(je)||v.push(function R(H){return new e.vHH(3001,!1)}())})}(Qt,v.options,v.errors)})})}visitKeyframes(F,v){const V={type:5,styles:[],options:null};if(!v.currentAnimateTimings)return v.errors.push(function Q(){return new e.vHH(3011,!1)}()),V;let je=0;const Ft=[];let Qt=!1,ci=!1,xi=0;const qi=F.steps.map(Ar=>{const ra=this._makeStyleAst(Ar,v);let ws=null!=ra.offset?ra.offset:function Ri(H){if("string"==typeof H)return null;let F=null;if(Array.isArray(H))H.forEach(v=>{if(v instanceof Map&&v.has("offset")){const V=v;F=parseFloat(V.get("offset")),V.delete("offset")}});else if(H instanceof Map&&H.has("offset")){const v=H;F=parseFloat(v.get("offset")),v.delete("offset")}return F}(ra.styles),za=0;return null!=ws&&(je++,za=ra.offset=ws),ci=ci||za<0||za>1,Qt=Qt||za<xi,xi=za,Ft.push(za),ra});ci&&v.errors.push(function re(){return new e.vHH(3012,!1)}()),Qt&&v.errors.push(function ie(){return new e.vHH(3200,!1)}());const Zi=F.steps.length;let Hn=0;je>0&&je<Zi?v.errors.push(function ce(){return new e.vHH(3202,!1)}()):0==je&&(Hn=1/(Zi-1));const zn=Zi-1,gn=v.currentTime,En=v.currentAnimateTimings,ir=En.duration;return qi.forEach((Ar,ra)=>{const ws=Hn>0?ra==zn?1:Hn*ra:Ft[ra],za=ws*ir;v.currentTime=gn+En.delay+za,En.duration=za,this._validateStyleAst(Ar,v),Ar.offset=ws,V.styles.push(Ar)}),V}visitReference(F,v){return{type:8,animation:Ei(this,$t(F.animation),v),options:Zn(F.options)}}visitAnimateChild(F,v){return v.depCount++,{type:9,options:Zn(F.options)}}visitAnimateRef(F,v){return{type:10,animation:this.visitReference(F.animation,v),options:Zn(F.options)}}visitQuery(F,v){const V=v.currentQuerySelector,te=F.options||{};v.queryCount++,v.currentQuery=F;const[je,Ft]=function Xt(H){const F=!!H.split(/\s*,\s*/).find(v=>":self"==v);return F&&(H=H.replace(si,"")),H=H.replace(/@\*/g,Ct).replace(/@\w+/g,v=>Ct+"-"+v.slice(1)).replace(/:animating/g,dt),[H,F]}(F.selector);v.currentQuerySelector=V.length?V+" "+je:je,$(v.collectedStyles,v.currentQuerySelector,new Map);const Qt=Ei(this,$t(F.animation),v);return v.currentQuery=null,v.currentQuerySelector=V,{type:11,selector:je,limit:te.limit||0,optional:!!te.optional,includeSelf:Ft,animation:Qt,originalSelector:F.selector,options:Zn(F.options)}}visitStagger(F,v){v.currentQuery||v.errors.push(function ae(){return new e.vHH(3013,!1)}());const V="full"===F.timings?{duration:0,delay:0,easing:"full"}:Fe(F.timings,v.errors,!0);return{type:12,animation:Ei(this,$t(F.animation),v),timings:V,options:null}}}class Li{constructor(F){this.errors=F,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Zn(H){return H?(H=xt(H)).params&&(H.params=function fi(H){return H?xt(H):null}(H.params)):H={},H}function Nn(H,F,v){return{duration:H,delay:F,easing:v}}function Qn(H,F,v,V,te,je,Ft=null,Qt=!1){return{type:1,element:H,keyframes:F,preStyleProps:v,postStyleProps:V,duration:te,delay:je,totalTime:te+je,easing:Ft,subTimeline:Qt}}class An{constructor(){this._map=new Map}get(F){return this._map.get(F)||[]}append(F,v){let V=this._map.get(F);V||this._map.set(F,V=[]),V.push(...v)}has(F){return this._map.has(F)}clear(){this._map.clear()}}const Mn=new RegExp(":enter","g"),qn=new RegExp(":leave","g");function Ts(H,F,v,V,te,je=new Map,Ft=new Map,Qt,ci,xi=[]){return(new Fs).buildKeyframes(H,F,v,V,te,je,Ft,Qt,ci,xi)}class Fs{buildKeyframes(F,v,V,te,je,Ft,Qt,ci,xi,qi=[]){xi=xi||new An;const Zi=new Wa(F,v,xi,te,je,qi,[]);Zi.options=ci;const Hn=ci.delay?ze(ci.delay):0;Zi.currentTimeline.delayNextStep(Hn),Zi.currentTimeline.setStyles([Ft],null,Zi.errors,ci),Ei(this,V,Zi);const zn=Zi.timelines.filter(gn=>gn.containsAnimation());if(zn.length&&Qt.size){let gn;for(let En=zn.length-1;En>=0;En--){const ir=zn[En];if(ir.element===v){gn=ir;break}}gn&&!gn.allowOnlyTimelineStyles()&&gn.setStyles([Qt],null,Zi.errors,ci)}return zn.length?zn.map(gn=>gn.buildKeyframes()):[Qn(v,[],[],[],0,Hn,"",!1)]}visitTrigger(F,v){}visitState(F,v){}visitTransition(F,v){}visitAnimateChild(F,v){const V=v.subInstructions.get(v.element);if(V){const te=v.createSubContext(F.options),je=v.currentTimeline.currentTime,Ft=this._visitSubInstructions(V,te,te.options);je!=Ft&&v.transformIntoNewTimeline(Ft)}v.previousNode=F}visitAnimateRef(F,v){const V=v.createSubContext(F.options);V.transformIntoNewTimeline(),this._applyAnimationRefDelays([F.options,F.animation.options],v,V),this.visitReference(F.animation,V),v.transformIntoNewTimeline(V.currentTimeline.currentTime),v.previousNode=F}_applyAnimationRefDelays(F,v,V){for(const te of F){const je=te?.delay;if(je){const Ft="number"==typeof je?je:ze(ht(je,te?.params??{},v.errors));V.delayNextStep(Ft)}}}_visitSubInstructions(F,v,V){let je=v.currentTimeline.currentTime;const Ft=null!=V.duration?ze(V.duration):null,Qt=null!=V.delay?ze(V.delay):null;return 0!==Ft&&F.forEach(ci=>{const xi=v.appendInstructionToTimeline(ci,Ft,Qt);je=Math.max(je,xi.duration+xi.delay)}),je}visitReference(F,v){v.updateOptions(F.options,!0),Ei(this,F.animation,v),v.previousNode=F}visitSequence(F,v){const V=v.subContextCount;let te=v;const je=F.options;if(je&&(je.params||je.delay)&&(te=v.createSubContext(je),te.transformIntoNewTimeline(),null!=je.delay)){6==te.previousNode.type&&(te.currentTimeline.snapshotCurrentStyles(),te.previousNode=Kr);const Ft=ze(je.delay);te.delayNextStep(Ft)}F.steps.length&&(F.steps.forEach(Ft=>Ei(this,Ft,te)),te.currentTimeline.applyStylesToKeyframe(),te.subContextCount>V&&te.transformIntoNewTimeline()),v.previousNode=F}visitGroup(F,v){const V=[];let te=v.currentTimeline.currentTime;const je=F.options&&F.options.delay?ze(F.options.delay):0;F.steps.forEach(Ft=>{const Qt=v.createSubContext(F.options);je&&Qt.delayNextStep(je),Ei(this,Ft,Qt),te=Math.max(te,Qt.currentTimeline.currentTime),V.push(Qt.currentTimeline)}),V.forEach(Ft=>v.currentTimeline.mergeTimelineCollectedStyles(Ft)),v.transformIntoNewTimeline(te),v.previousNode=F}_visitTiming(F,v){if(F.dynamic){const V=F.strValue;return Fe(v.params?ht(V,v.params,v.errors):V,v.errors)}return{duration:F.duration,delay:F.delay,easing:F.easing}}visitAnimate(F,v){const V=v.currentAnimateTimings=this._visitTiming(F.timings,v),te=v.currentTimeline;V.delay&&(v.incrementTime(V.delay),te.snapshotCurrentStyles());const je=F.style;5==je.type?this.visitKeyframes(je,v):(v.incrementTime(V.duration),this.visitStyle(je,v),te.applyStylesToKeyframe()),v.currentAnimateTimings=null,v.previousNode=F}visitStyle(F,v){const V=v.currentTimeline,te=v.currentAnimateTimings;!te&&V.hasCurrentStyleProperties()&&V.forwardFrame();const je=te&&te.easing||F.easing;F.isEmptyStep?V.applyEmptyStep(je):V.setStyles(F.styles,je,v.errors,v.options),v.previousNode=F}visitKeyframes(F,v){const V=v.currentAnimateTimings,te=v.currentTimeline.duration,je=V.duration,Qt=v.createSubContext().currentTimeline;Qt.easing=V.easing,F.styles.forEach(ci=>{Qt.forwardTime((ci.offset||0)*je),Qt.setStyles(ci.styles,ci.easing,v.errors,v.options),Qt.applyStylesToKeyframe()}),v.currentTimeline.mergeTimelineCollectedStyles(Qt),v.transformIntoNewTimeline(te+je),v.previousNode=F}visitQuery(F,v){const V=v.currentTimeline.currentTime,te=F.options||{},je=te.delay?ze(te.delay):0;je&&(6===v.previousNode.type||0==V&&v.currentTimeline.hasCurrentStyleProperties())&&(v.currentTimeline.snapshotCurrentStyles(),v.previousNode=Kr);let Ft=V;const Qt=v.invokeQuery(F.selector,F.originalSelector,F.limit,F.includeSelf,!!te.optional,v.errors);v.currentQueryTotal=Qt.length;let ci=null;Qt.forEach((xi,qi)=>{v.currentQueryIndex=qi;const Zi=v.createSubContext(F.options,xi);je&&Zi.delayNextStep(je),xi===v.element&&(ci=Zi.currentTimeline),Ei(this,F.animation,Zi),Zi.currentTimeline.applyStylesToKeyframe(),Ft=Math.max(Ft,Zi.currentTimeline.currentTime)}),v.currentQueryIndex=0,v.currentQueryTotal=0,v.transformIntoNewTimeline(Ft),ci&&(v.currentTimeline.mergeTimelineCollectedStyles(ci),v.currentTimeline.snapshotCurrentStyles()),v.previousNode=F}visitStagger(F,v){const V=v.parentContext,te=v.currentTimeline,je=F.timings,Ft=Math.abs(je.duration),Qt=Ft*(v.currentQueryTotal-1);let ci=Ft*v.currentQueryIndex;switch(je.duration<0?"reverse":je.easing){case"reverse":ci=Qt-ci;break;case"full":ci=V.currentStaggerTime}const qi=v.currentTimeline;ci&&qi.delayNextStep(ci);const Zi=qi.currentTime;Ei(this,F.animation,v),v.previousNode=F,V.currentStaggerTime=te.currentTime-Zi+(te.startTime-V.currentTimeline.startTime)}}const Kr={};class Wa{constructor(F,v,V,te,je,Ft,Qt,ci){this._driver=F,this.element=v,this.subInstructions=V,this._enterClassName=te,this._leaveClassName=je,this.errors=Ft,this.timelines=Qt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Kr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ci||new Er(this._driver,v,0),Qt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(F,v){if(!F)return;const V=F;let te=this.options;null!=V.duration&&(te.duration=ze(V.duration)),null!=V.delay&&(te.delay=ze(V.delay));const je=V.params;if(je){let Ft=te.params;Ft||(Ft=this.options.params={}),Object.keys(je).forEach(Qt=>{(!v||!Ft.hasOwnProperty(Qt))&&(Ft[Qt]=ht(je[Qt],Ft,this.errors))})}}_copyOptions(){const F={};if(this.options){const v=this.options.params;if(v){const V=F.params={};Object.keys(v).forEach(te=>{V[te]=v[te]})}}return F}createSubContext(F=null,v,V){const te=v||this.element,je=new Wa(this._driver,te,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(te,V||0));return je.previousNode=this.previousNode,je.currentAnimateTimings=this.currentAnimateTimings,je.options=this._copyOptions(),je.updateOptions(F),je.currentQueryIndex=this.currentQueryIndex,je.currentQueryTotal=this.currentQueryTotal,je.parentContext=this,this.subContextCount++,je}transformIntoNewTimeline(F){return this.previousNode=Kr,this.currentTimeline=this.currentTimeline.fork(this.element,F),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(F,v,V){const te={duration:v??F.duration,delay:this.currentTimeline.currentTime+(V??0)+F.delay,easing:""},je=new Pa(this._driver,F.element,F.keyframes,F.preStyleProps,F.postStyleProps,te,F.stretchStartingKeyframe);return this.timelines.push(je),te}incrementTime(F){this.currentTimeline.forwardTime(this.currentTimeline.duration+F)}delayNextStep(F){F>0&&this.currentTimeline.delayNextStep(F)}invokeQuery(F,v,V,te,je,Ft){let Qt=[];if(te&&Qt.push(this.element),F.length>0){F=(F=F.replace(Mn,"."+this._enterClassName)).replace(qn,"."+this._leaveClassName);let xi=this._driver.query(this.element,F,1!=V);0!==V&&(xi=V<0?xi.slice(xi.length+V,xi.length):xi.slice(0,V)),Qt.push(...xi)}return!je&&0==Qt.length&&Ft.push(function ne(H){return new e.vHH(3014,!1)}()),Qt}}class Er{constructor(F,v,V,te){this._driver=F,this.element=v,this.startTime=V,this._elementTimelineStylesLookup=te,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(v),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(v,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(F){const v=1===this._keyframes.size&&this._pendingStyles.size;this.duration||v?(this.forwardTime(this.currentTime+F),v&&this.snapshotCurrentStyles()):this.startTime+=F}fork(F,v){return this.applyStylesToKeyframe(),new Er(this._driver,F,v||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(F){this.applyStylesToKeyframe(),this.duration=F,this._loadKeyframe()}_updateStyle(F,v){this._localTimelineStyles.set(F,v),this._globalTimelineStyles.set(F,v),this._styleSummary.set(F,{time:this.currentTime,value:v})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(F){F&&this._previousKeyframe.set("easing",F);for(let[v,V]of this._globalTimelineStyles)this._backFill.set(v,V||f.l3),this._currentKeyframe.set(v,f.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(F,v,V,te){v&&this._previousKeyframe.set("easing",v);const je=te&&te.params||{},Ft=function ns(H,F){const v=new Map;let V;return H.forEach(te=>{if("*"===te){V=V||F.keys();for(let je of V)v.set(je,f.l3)}else Ae(te,v)}),v}(F,this._globalTimelineStyles);for(let[Qt,ci]of Ft){const xi=ht(ci,je,V);this._pendingStyles.set(Qt,xi),this._localTimelineStyles.has(Qt)||this._backFill.set(Qt,this._globalTimelineStyles.get(Qt)??f.l3),this._updateStyle(Qt,xi)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((F,v)=>{this._currentKeyframe.set(v,F)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((F,v)=>{this._currentKeyframe.has(v)||this._currentKeyframe.set(v,F)}))}snapshotCurrentStyles(){for(let[F,v]of this._localTimelineStyles)this._pendingStyles.set(F,v),this._updateStyle(F,v)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const F=[];for(let v in this._currentKeyframe)F.push(v);return F}mergeTimelineCollectedStyles(F){F._styleSummary.forEach((v,V)=>{const te=this._styleSummary.get(V);(!te||v.time>te.time)&&this._updateStyle(V,v.value)})}buildKeyframes(){this.applyStylesToKeyframe();const F=new Set,v=new Set,V=1===this._keyframes.size&&0===this.duration;let te=[];this._keyframes.forEach((Qt,ci)=>{const xi=Ae(Qt,new Map,this._backFill);xi.forEach((qi,Zi)=>{qi===f.k1?F.add(Zi):qi===f.l3&&v.add(Zi)}),V||xi.set("offset",ci/this.duration),te.push(xi)});const je=F.size?at(F.values()):[],Ft=v.size?at(v.values()):[];if(V){const Qt=te[0],ci=new Map(Qt);Qt.set("offset",0),ci.set("offset",1),te=[Qt,ci]}return Qn(this.element,te,je,Ft,this.duration,this.startTime,this.easing,!1)}}class Pa extends Er{constructor(F,v,V,te,je,Ft,Qt=!1){super(F,v,Ft.delay),this.keyframes=V,this.preStyleProps=te,this.postStyleProps=je,this._stretchStartingKeyframe=Qt,this.timings={duration:Ft.duration,delay:Ft.delay,easing:Ft.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let F=this.keyframes,{delay:v,duration:V,easing:te}=this.timings;if(this._stretchStartingKeyframe&&v){const je=[],Ft=V+v,Qt=v/Ft,ci=Ae(F[0]);ci.set("offset",0),je.push(ci);const xi=Ae(F[0]);xi.set("offset",Ya(Qt)),je.push(xi);const qi=F.length-1;for(let Zi=1;Zi<=qi;Zi++){let Hn=Ae(F[Zi]);const zn=Hn.get("offset");Hn.set("offset",Ya((v+zn*V)/Ft)),je.push(Hn)}V=Ft,v=0,te="",F=je}return Qn(this.element,F,this.preStyleProps,this.postStyleProps,V,v,te,!0)}}function Ya(H,F=3){const v=Math.pow(10,F-1);return Math.round(H*v)/v}class dr{}const Ma=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 rs extends dr{normalizePropertyName(F,v){return Ut(F)}normalizeStyleValue(F,v,V,te){let je="";const Ft=V.toString().trim();if(Ma.has(v)&&0!==V&&"0"!==V)if("number"==typeof V)je="px";else{const Qt=V.match(/^[+-]?[\d\.]+([a-z]*)$/);Qt&&0==Qt[1].length&&te.push(function E(H,F){return new e.vHH(3005,!1)}())}return Ft+je}}function fr(H,F,v,V,te,je,Ft,Qt,ci,xi,qi,Zi,Hn){return{type:0,element:H,triggerName:F,isRemovalTransition:te,fromState:v,fromStyles:je,toState:V,toStyles:Ft,timelines:Qt,queriedElements:ci,preStyleProps:xi,postStyleProps:qi,totalTime:Zi,errors:Hn}}const la={};class Gr{constructor(F,v,V){this._triggerName=F,this.ast=v,this._stateStyles=V}match(F,v,V,te){return function ta(H,F,v,V,te){return H.some(je=>je(F,v,V,te))}(this.ast.matchers,F,v,V,te)}buildStyles(F,v,V){let te=this._stateStyles.get("*");return void 0!==F&&(te=this._stateStyles.get(F?.toString())||te),te?te.buildStyles(v,V):new Map}build(F,v,V,te,je,Ft,Qt,ci,xi,qi){const Zi=[],Hn=this.ast.options&&this.ast.options.params||la,gn=this.buildStyles(V,Qt&&Qt.params||la,Zi),En=ci&&ci.params||la,ir=this.buildStyles(te,En,Zi),Ar=new Set,ra=new Map,ws=new Map,za="void"===te,sl={params:as(En,Hn),delay:this.ast.options?.delay},go=qi?[]:Ts(F,v,this.ast.animation,je,Ft,gn,ir,sl,xi,Zi);let Ss=0;if(go.forEach(Lo=>{Ss=Math.max(Lo.duration+Lo.delay,Ss)}),Zi.length)return fr(v,this._triggerName,V,te,za,gn,ir,[],[],ra,ws,Ss,Zi);go.forEach(Lo=>{const Ko=Lo.element,F2=$(ra,Ko,new Set);Lo.preStyleProps.forEach(ol=>F2.add(ol));const Oc=$(ws,Ko,new Set);Lo.postStyleProps.forEach(ol=>Oc.add(ol)),Ko!==v&&Ar.add(Ko)});const Ao=at(Ar.values());return fr(v,this._triggerName,V,te,za,gn,ir,go,Ao,ra,ws,Ss)}}function as(H,F){const v=xt(F);for(const V in H)H.hasOwnProperty(V)&&null!=H[V]&&(v[V]=H[V]);return v}class wa{constructor(F,v,V){this.styles=F,this.defaultParams=v,this.normalizer=V}buildStyles(F,v){const V=new Map,te=xt(this.defaultParams);return Object.keys(F).forEach(je=>{const Ft=F[je];null!==Ft&&(te[je]=Ft)}),this.styles.styles.forEach(je=>{"string"!=typeof je&&je.forEach((Ft,Qt)=>{Ft&&(Ft=ht(Ft,te,v));const ci=this.normalizer.normalizePropertyName(Qt,v);Ft=this.normalizer.normalizeStyleValue(Qt,ci,Ft,v),V.set(ci,Ft)})}),V}}class Rr{constructor(F,v,V){this.name=F,this.ast=v,this._normalizer=V,this.transitionFactories=[],this.states=new Map,v.states.forEach(te=>{this.states.set(te.name,new wa(te.style,te.options&&te.options.params||{},V))}),yr(this.states,"true","1"),yr(this.states,"false","0"),v.transitions.forEach(te=>{this.transitionFactories.push(new Gr(F,te,this.states))}),this.fallbackTransition=function Sa(H,F,v){return new Gr(H,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ft,Qt)=>!0],options:null,queryCount:0,depCount:0},F)}(F,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(F,v,V,te){return this.transitionFactories.find(Ft=>Ft.match(F,v,V,te))||null}matchStyles(F,v,V){return this.fallbackTransition.buildStyles(F,v,V)}}function yr(H,F,v){H.has(F)?H.has(v)||H.set(v,H.get(F)):H.has(v)&&H.set(F,H.get(v))}const _s=new An;class ss{constructor(F,v,V){this.bodyNode=F,this._driver=v,this._normalizer=V,this._animations=new Map,this._playersById=new Map,this.players=[]}register(F,v){const V=[],je=Ti(this._driver,v,V,[]);if(V.length)throw function u(H){return new e.vHH(3503,!1)}();this._animations.set(F,je)}_buildPlayer(F,v,V){const te=F.element,je=De(0,this._normalizer,0,F.keyframes,v,V);return this._driver.animate(te,je,F.duration,F.delay,F.easing,[],!0)}create(F,v,V={}){const te=[],je=this._animations.get(F);let Ft;const Qt=new Map;if(je?(Ft=Ts(this._driver,v,je,Pt,pt,new Map,new Map,V,_s,te),Ft.forEach(qi=>{const Zi=$(Qt,qi.element,new Map);qi.postStyleProps.forEach(Hn=>Zi.set(Hn,null))})):(te.push(function l(){return new e.vHH(3300,!1)}()),Ft=[]),te.length)throw function y(H){return new e.vHH(3504,!1)}();Qt.forEach((qi,Zi)=>{qi.forEach((Hn,zn)=>{qi.set(zn,this._driver.computeStyle(Zi,zn,f.l3))})});const xi=Oe(Ft.map(qi=>{const Zi=Qt.get(qi.element);return this._buildPlayer(qi,new Map,Zi)}));return this._playersById.set(F,xi),xi.onDestroy(()=>this.destroy(F)),this.players.push(xi),xi}destroy(F){const v=this._getPlayer(F);v.destroy(),this._playersById.delete(F);const V=this.players.indexOf(v);V>=0&&this.players.splice(V,1)}_getPlayer(F){const v=this._playersById.get(F);if(!v)throw function D(H){return new e.vHH(3301,!1)}();return v}listen(F,v,V,te){const je=Ie(v,"","","");return ue(this._getPlayer(F),V,je,te),()=>{}}command(F,v,V,te){if("register"==V)return void this.register(F,te[0]);if("create"==V)return void this.create(F,v,te[0]||{});const je=this._getPlayer(F);switch(V){case"play":je.play();break;case"pause":je.pause();break;case"reset":je.reset();break;case"restart":je.restart();break;case"finish":je.finish();break;case"init":je.init();break;case"setPosition":je.setPosition(parseFloat(te[0]));break;case"destroy":this.destroy(F)}}}const ka="ng-animate-queued",ur="ng-animate-disabled",Na=[],os={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Hr="__ng_removed";class ja{constructor(F,v=""){this.namespaceId=v;const V=F&&F.hasOwnProperty("value");if(this.value=function vs(H){return H??null}(V?F.value:F),V){const je=xt(F);delete je.value,this.options=je}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(F){const v=F.params;if(v){const V=this.options.params;Object.keys(v).forEach(te=>{null==V[te]&&(V[te]=v[te])})}}}const Ta="void",Zr=new ja(Ta);class pa{constructor(F,v,V){this.id=F,this.hostElement=v,this._engine=V,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+F,St(v,this._hostClassName)}listen(F,v,V,te){if(!this._triggers.has(v))throw function k(H,F){return new e.vHH(3302,!1)}();if(null==V||0==V.length)throw function b(H){return new e.vHH(3303,!1)}();if(!function io(H){return"start"==H||"done"==H}(V))throw function n(H,F){return new e.vHH(3400,!1)}();const je=$(this._elementListeners,F,[]),Ft={name:v,phase:V,callback:te};je.push(Ft);const Qt=$(this._engine.statesByElement,F,new Map);return Qt.has(v)||(St(F,vt),St(F,vt+"-"+v),Qt.set(v,Zr)),()=>{this._engine.afterFlush(()=>{const ci=je.indexOf(Ft);ci>=0&&je.splice(ci,1),this._triggers.has(v)||Qt.delete(v)})}}register(F,v){return!this._triggers.has(F)&&(this._triggers.set(F,v),!0)}_getTrigger(F){const v=this._triggers.get(F);if(!v)throw function _(H){return new e.vHH(3401,!1)}();return v}trigger(F,v,V,te=!0){const je=this._getTrigger(v),Ft=new Tr(this.id,v,F);let Qt=this._engine.statesByElement.get(F);Qt||(St(F,vt),St(F,vt+"-"+v),this._engine.statesByElement.set(F,Qt=new Map));let ci=Qt.get(v);const xi=new ja(V,this.id);if(!(V&&V.hasOwnProperty("value"))&&ci&&xi.absorbOptions(ci.options),Qt.set(v,xi),ci||(ci=Zr),xi.value!==Ta&&ci.value===xi.value){if(!function $i(H,F){const v=Object.keys(H),V=Object.keys(F);if(v.length!=V.length)return!1;for(let te=0;te<v.length;te++){const je=v[te];if(!F.hasOwnProperty(je)||H[je]!==F[je])return!1}return!0}(ci.params,xi.params)){const En=[],ir=je.matchStyles(ci.value,ci.params,En),Ar=je.matchStyles(xi.value,xi.params,En);En.length?this._engine.reportError(En):this._engine.afterFlush(()=>{mt(F,ir),Ke(F,Ar)})}return}const Hn=$(this._engine.playersByElement,F,[]);Hn.forEach(En=>{En.namespaceId==this.id&&En.triggerName==v&&En.queued&&En.destroy()});let zn=je.matchTransition(ci.value,xi.value,F,xi.params),gn=!1;if(!zn){if(!te)return;zn=je.fallbackTransition,gn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:F,triggerName:v,transition:zn,fromState:ci,toState:xi,player:Ft,isFallbackTransition:gn}),gn||(St(F,ka),Ft.onStart(()=>{di(F,ka)})),Ft.onDone(()=>{let En=this.players.indexOf(Ft);En>=0&&this.players.splice(En,1);const ir=this._engine.playersByElement.get(F);if(ir){let Ar=ir.indexOf(Ft);Ar>=0&&ir.splice(Ar,1)}}),this.players.push(Ft),Hn.push(Ft),Ft}deregister(F){this._triggers.delete(F),this._engine.statesByElement.forEach(v=>v.delete(F)),this._elementListeners.forEach((v,V)=>{this._elementListeners.set(V,v.filter(te=>te.name!=F))})}clearElementCache(F){this._engine.statesByElement.delete(F),this._elementListeners.delete(F);const v=this._engine.playersByElement.get(F);v&&(v.forEach(V=>V.destroy()),this._engine.playersByElement.delete(F))}_signalRemovalForInnerTriggers(F,v){const V=this._engine.driver.query(F,Ct,!0);V.forEach(te=>{if(te[Hr])return;const je=this._engine.fetchNamespacesByElement(te);je.size?je.forEach(Ft=>Ft.triggerLeaveAnimation(te,v,!1,!0)):this.clearElementCache(te)}),this._engine.afterFlushAnimationsDone(()=>V.forEach(te=>this.clearElementCache(te)))}triggerLeaveAnimation(F,v,V,te){const je=this._engine.statesByElement.get(F),Ft=new Map;if(je){const Qt=[];if(je.forEach((ci,xi)=>{if(Ft.set(xi,ci.value),this._triggers.has(xi)){const qi=this.trigger(F,xi,Ta,te);qi&&Qt.push(qi)}}),Qt.length)return this._engine.markElementAsRemoved(this.id,F,!0,v,Ft),V&&Oe(Qt).onDone(()=>this._engine.processLeaveNode(F)),!0}return!1}prepareLeaveAnimationListeners(F){const v=this._elementListeners.get(F),V=this._engine.statesByElement.get(F);if(v&&V){const te=new Set;v.forEach(je=>{const Ft=je.name;if(te.has(Ft))return;te.add(Ft);const ci=this._triggers.get(Ft).fallbackTransition,xi=V.get(Ft)||Zr,qi=new ja(Ta),Zi=new Tr(this.id,Ft,F);this._engine.totalQueuedPlayers++,this._queue.push({element:F,triggerName:Ft,transition:ci,fromState:xi,toState:qi,player:Zi,isFallbackTransition:!0})})}}removeNode(F,v){const V=this._engine;if(F.childElementCount&&this._signalRemovalForInnerTriggers(F,v),this.triggerLeaveAnimation(F,v,!0))return;let te=!1;if(V.totalAnimations){const je=V.players.length?V.playersByQueriedElement.get(F):[];if(je&&je.length)te=!0;else{let Ft=F;for(;Ft=Ft.parentNode;)if(V.statesByElement.get(Ft)){te=!0;break}}}if(this.prepareLeaveAnimationListeners(F),te)V.markElementAsRemoved(this.id,F,!1,v);else{const je=F[Hr];(!je||je===os)&&(V.afterFlush(()=>this.clearElementCache(F)),V.destroyInnerAnimations(F),V._onRemovalComplete(F,v))}}insertNode(F,v){St(F,this._hostClassName)}drainQueuedTransitions(F){const v=[];return this._queue.forEach(V=>{const te=V.player;if(te.destroyed)return;const je=V.element,Ft=this._elementListeners.get(je);Ft&&Ft.forEach(Qt=>{if(Qt.name==V.triggerName){const ci=Ie(je,V.triggerName,V.fromState.value,V.toState.value);ci._data=F,ue(V.player,Qt.phase,ci,Qt.callback)}}),te.markedForDestroy?this._engine.afterFlush(()=>{te.destroy()}):v.push(V)}),this._queue=[],v.sort((V,te)=>{const je=V.transition.ast.depCount,Ft=te.transition.ast.depCount;return 0==je||0==Ft?je-Ft:this._engine.driver.containsElement(V.element,te.element)?1:-1})}destroy(F){this.players.forEach(v=>v.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,F)}elementContainsData(F){let v=!1;return this._elementListeners.has(F)&&(v=!0),v=!!this._queue.find(V=>V.element===F)||v,v}}class Aa{constructor(F,v,V){this.bodyNode=F,this.driver=v,this._normalizer=V,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(te,je)=>{}}_onRemovalComplete(F,v){this.onRemovalComplete(F,v)}get queuedPlayers(){const F=[];return this._namespaceList.forEach(v=>{v.players.forEach(V=>{V.queued&&F.push(V)})}),F}createNamespace(F,v){const V=new pa(F,v,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,v)?this._balanceNamespaceList(V,v):(this.newHostElements.set(v,V),this.collectEnterElement(v)),this._namespaceLookup[F]=V}_balanceNamespaceList(F,v){const V=this._namespaceList,te=this.namespacesByHostElement;if(V.length-1>=0){let Ft=!1,Qt=this.driver.getParentElement(v);for(;Qt;){const ci=te.get(Qt);if(ci){const xi=V.indexOf(ci);V.splice(xi+1,0,F),Ft=!0;break}Qt=this.driver.getParentElement(Qt)}Ft||V.unshift(F)}else V.push(F);return te.set(v,F),F}register(F,v){let V=this._namespaceLookup[F];return V||(V=this.createNamespace(F,v)),V}registerTrigger(F,v,V){let te=this._namespaceLookup[F];te&&te.register(v,V)&&this.totalAnimations++}destroy(F,v){if(!F)return;const V=this._fetchNamespace(F);this.afterFlush(()=>{this.namespacesByHostElement.delete(V.hostElement),delete this._namespaceLookup[F];const te=this._namespaceList.indexOf(V);te>=0&&this._namespaceList.splice(te,1)}),this.afterFlushAnimationsDone(()=>V.destroy(v))}_fetchNamespace(F){return this._namespaceLookup[F]}fetchNamespacesByElement(F){const v=new Set,V=this.statesByElement.get(F);if(V)for(let te of V.values())if(te.namespaceId){const je=this._fetchNamespace(te.namespaceId);je&&v.add(je)}return v}trigger(F,v,V,te){if(rr(v)){const je=this._fetchNamespace(F);if(je)return je.trigger(v,V,te),!0}return!1}insertNode(F,v,V,te){if(!rr(v))return;const je=v[Hr];if(je&&je.setForRemoval){je.setForRemoval=!1,je.setForMove=!0;const Ft=this.collectedLeaveElements.indexOf(v);Ft>=0&&this.collectedLeaveElements.splice(Ft,1)}if(F){const Ft=this._fetchNamespace(F);Ft&&Ft.insertNode(v,V)}te&&this.collectEnterElement(v)}collectEnterElement(F){this.collectedEnterElements.push(F)}markElementAsDisabled(F,v){v?this.disabledNodes.has(F)||(this.disabledNodes.add(F),St(F,ur)):this.disabledNodes.has(F)&&(this.disabledNodes.delete(F),di(F,ur))}removeNode(F,v,V,te){if(rr(v)){const je=F?this._fetchNamespace(F):null;if(je?je.removeNode(v,te):this.markElementAsRemoved(F,v,!1,te),V){const Ft=this.namespacesByHostElement.get(v);Ft&&Ft.id!==F&&Ft.removeNode(v,te)}}else this._onRemovalComplete(v,te)}markElementAsRemoved(F,v,V,te,je){this.collectedLeaveElements.push(v),v[Hr]={namespaceId:F,setForRemoval:te,hasAnimation:V,removedBeforeQueried:!1,previousTriggersValues:je}}listen(F,v,V,te,je){return rr(v)?this._fetchNamespace(F).listen(v,V,te,je):()=>{}}_buildInstruction(F,v,V,te,je){return F.transition.build(this.driver,F.element,F.fromState.value,F.toState.value,V,te,F.fromState.options,F.toState.options,v,je)}destroyInnerAnimations(F){let v=this.driver.query(F,Ct,!0);v.forEach(V=>this.destroyActiveAnimationsForElement(V)),0!=this.playersByQueriedElement.size&&(v=this.driver.query(F,dt,!0),v.forEach(V=>this.finishActiveQueriedAnimationOnElement(V)))}destroyActiveAnimationsForElement(F){const v=this.playersByElement.get(F);v&&v.forEach(V=>{V.queued?V.markedForDestroy=!0:V.destroy()})}finishActiveQueriedAnimationOnElement(F){const v=this.playersByQueriedElement.get(F);v&&v.forEach(V=>V.finish())}whenRenderingDone(){return new Promise(F=>{if(this.players.length)return Oe(this.players).onDone(()=>F());F()})}processLeaveNode(F){const v=F[Hr];if(v&&v.setForRemoval){if(F[Hr]=os,v.namespaceId){this.destroyInnerAnimations(F);const V=this._fetchNamespace(v.namespaceId);V&&V.clearElementCache(F)}this._onRemovalComplete(F,v.setForRemoval)}F.classList?.contains(ur)&&this.markElementAsDisabled(F,!1),this.driver.query(F,".ng-animate-disabled",!0).forEach(V=>{this.markElementAsDisabled(V,!1)})}flush(F=-1){let v=[];if(this.newHostElements.size&&(this.newHostElements.forEach((V,te)=>this._balanceNamespaceList(V,te)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let V=0;V<this.collectedEnterElements.length;V++)St(this.collectedEnterElements[V],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const V=[];try{v=this._flushAnimations(V,F)}finally{for(let te=0;te<V.length;te++)V[te]()}}else for(let V=0;V<this.collectedLeaveElements.length;V++)this.processLeaveNode(this.collectedLeaveElements[V]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(V=>V()),this._flushFns=[],this._whenQuietFns.length){const V=this._whenQuietFns;this._whenQuietFns=[],v.length?Oe(v).onDone(()=>{V.forEach(te=>te())}):V.forEach(te=>te())}}reportError(F){throw function W(H){return new e.vHH(3402,!1)}()}_flushAnimations(F,v){const V=new An,te=[],je=new Map,Ft=[],Qt=new Map,ci=new Map,xi=new Map,qi=new Set;this.disabledNodes.forEach(un=>{qi.add(un);const Cn=this.driver.query(un,".ng-animate-queued",!0);for(let Pn=0;Pn<Cn.length;Pn++)qi.add(Cn[Pn])});const Zi=this.bodyNode,Hn=Array.from(this.statesByElement.keys()),zn=ls(Hn,this.collectedEnterElements),gn=new Map;let En=0;zn.forEach((un,Cn)=>{const Pn=Pt+En++;gn.set(Cn,Pn),un.forEach(sr=>St(sr,Pn))});const ir=[],Ar=new Set,ra=new Set;for(let un=0;un<this.collectedLeaveElements.length;un++){const Cn=this.collectedLeaveElements[un],Pn=Cn[Hr];Pn&&Pn.setForRemoval&&(ir.push(Cn),Ar.add(Cn),Pn.hasAnimation?this.driver.query(Cn,".ng-star-inserted",!0).forEach(sr=>Ar.add(sr)):ra.add(Cn))}const ws=new Map,za=ls(Hn,Array.from(Ar));za.forEach((un,Cn)=>{const Pn=pt+En++;ws.set(Cn,Pn),un.forEach(sr=>St(sr,Pn))}),F.push(()=>{zn.forEach((un,Cn)=>{const Pn=gn.get(Cn);un.forEach(sr=>di(sr,Pn))}),za.forEach((un,Cn)=>{const Pn=ws.get(Cn);un.forEach(sr=>di(sr,Pn))}),ir.forEach(un=>{this.processLeaveNode(un)})});const sl=[],go=[];for(let un=this._namespaceList.length-1;un>=0;un--)this._namespaceList[un].drainQueuedTransitions(v).forEach(Pn=>{const sr=Pn.player,Ba=Pn.element;if(sl.push(sr),this.collectedEnterElements.length){const Ga=Ba[Hr];if(Ga&&Ga.setForMove){if(Ga.previousTriggersValues&&Ga.previousTriggersValues.has(Pn.triggerName)){const Xl=Ga.previousTriggersValues.get(Pn.triggerName),Ns=this.statesByElement.get(Pn.element);if(Ns&&Ns.has(Pn.triggerName)){const _o=Ns.get(Pn.triggerName);_o.value=Xl,Ns.set(Pn.triggerName,_o)}}return void sr.destroy()}}const jo=!Zi||!this.driver.containsElement(Zi,Ba),Ua=ws.get(Ba),Qo=gn.get(Ba),ea=this._buildInstruction(Pn,V,Qo,Ua,jo);if(ea.errors&&ea.errors.length)return void go.push(ea);if(jo)return sr.onStart(()=>mt(Ba,ea.fromStyles)),sr.onDestroy(()=>Ke(Ba,ea.toStyles)),void te.push(sr);if(Pn.isFallbackTransition)return sr.onStart(()=>mt(Ba,ea.fromStyles)),sr.onDestroy(()=>Ke(Ba,ea.toStyles)),void te.push(sr);const Pc=[];ea.timelines.forEach(Ga=>{Ga.stretchStartingKeyframe=!0,this.disabledNodes.has(Ga.element)||Pc.push(Ga)}),ea.timelines=Pc,V.append(Ba,ea.timelines),Ft.push({instruction:ea,player:sr,element:Ba}),ea.queriedElements.forEach(Ga=>$(Qt,Ga,[]).push(sr)),ea.preStyleProps.forEach((Ga,Xl)=>{if(Ga.size){let Ns=ci.get(Xl);Ns||ci.set(Xl,Ns=new Set),Ga.forEach((_o,kc)=>Ns.add(kc))}}),ea.postStyleProps.forEach((Ga,Xl)=>{let Ns=xi.get(Xl);Ns||xi.set(Xl,Ns=new Set),Ga.forEach((_o,kc)=>Ns.add(kc))})});if(go.length){const un=[];go.forEach(Cn=>{un.push(function U(H,F){return new e.vHH(3505,!1)}())}),sl.forEach(Cn=>Cn.destroy()),this.reportError(un)}const Ss=new Map,Ao=new Map;Ft.forEach(un=>{const Cn=un.element;V.has(Cn)&&(Ao.set(Cn,Cn),this._beforeAnimationBuild(un.player.namespaceId,un.instruction,Ss))}),te.forEach(un=>{const Cn=un.element;this._getPreviousPlayers(Cn,!1,un.namespaceId,un.triggerName,null).forEach(sr=>{$(Ss,Cn,[]).push(sr),sr.destroy()})});const Lo=ir.filter(un=>Kn(un,ci,xi)),Ko=new Map;ys(Ko,this.driver,ra,xi,f.l3).forEach(un=>{Kn(un,ci,xi)&&Lo.push(un)});const Oc=new Map;zn.forEach((un,Cn)=>{ys(Oc,this.driver,new Set(un),ci,f.k1)}),Lo.forEach(un=>{const Cn=Ko.get(un),Pn=Oc.get(un);Ko.set(un,new Map([...Array.from(Cn?.entries()??[]),...Array.from(Pn?.entries()??[])]))});const ol=[],d3=[],V2={};Ft.forEach(un=>{const{element:Cn,player:Pn,instruction:sr}=un;if(V.has(Cn)){if(qi.has(Cn))return Pn.onDestroy(()=>Ke(Cn,sr.toStyles)),Pn.disabled=!0,Pn.overrideTotalTime(sr.totalTime),void te.push(Pn);let Ba=V2;if(Ao.size>1){let Ua=Cn;const Qo=[];for(;Ua=Ua.parentNode;){const ea=Ao.get(Ua);if(ea){Ba=ea;break}Qo.push(Ua)}Qo.forEach(ea=>Ao.set(ea,Ba))}const jo=this._buildAnimation(Pn.namespaceId,sr,Ss,je,Oc,Ko);if(Pn.setRealPlayer(jo),Ba===V2)ol.push(Pn);else{const Ua=this.playersByElement.get(Ba);Ua&&Ua.length&&(Pn.parentPlayer=Oe(Ua)),te.push(Pn)}}else mt(Cn,sr.fromStyles),Pn.onDestroy(()=>Ke(Cn,sr.toStyles)),d3.push(Pn),qi.has(Cn)&&te.push(Pn)}),d3.forEach(un=>{const Cn=je.get(un.element);if(Cn&&Cn.length){const Pn=Oe(Cn);un.setRealPlayer(Pn)}}),te.forEach(un=>{un.parentPlayer?un.syncPlayerEvents(un.parentPlayer):un.destroy()});for(let un=0;un<ir.length;un++){const Cn=ir[un],Pn=Cn[Hr];if(di(Cn,pt),Pn&&Pn.hasAnimation)continue;let sr=[];if(Qt.size){let jo=Qt.get(Cn);jo&&jo.length&&sr.push(...jo);let Ua=this.driver.query(Cn,dt,!0);for(let Qo=0;Qo<Ua.length;Qo++){let ea=Qt.get(Ua[Qo]);ea&&ea.length&&sr.push(...ea)}}const Ba=sr.filter(jo=>!jo.destroyed);Ba.length?Mt(this,Cn,Ba):this.processLeaveNode(Cn)}return ir.length=0,ol.forEach(un=>{this.players.push(un),un.onDone(()=>{un.destroy();const Cn=this.players.indexOf(un);this.players.splice(Cn,1)}),un.play()}),ol}elementContainsData(F,v){let V=!1;const te=v[Hr];return te&&te.setForRemoval&&(V=!0),this.playersByElement.has(v)&&(V=!0),this.playersByQueriedElement.has(v)&&(V=!0),this.statesByElement.has(v)&&(V=!0),this._fetchNamespace(F).elementContainsData(v)||V}afterFlush(F){this._flushFns.push(F)}afterFlushAnimationsDone(F){this._whenQuietFns.push(F)}_getPreviousPlayers(F,v,V,te,je){let Ft=[];if(v){const Qt=this.playersByQueriedElement.get(F);Qt&&(Ft=Qt)}else{const Qt=this.playersByElement.get(F);if(Qt){const ci=!je||je==Ta;Qt.forEach(xi=>{xi.queued||!ci&&xi.triggerName!=te||Ft.push(xi)})}}return(V||te)&&(Ft=Ft.filter(Qt=>!(V&&V!=Qt.namespaceId||te&&te!=Qt.triggerName))),Ft}_beforeAnimationBuild(F,v,V){const je=v.element,Ft=v.isRemovalTransition?void 0:F,Qt=v.isRemovalTransition?void 0:v.triggerName;for(const ci of v.timelines){const xi=ci.element,qi=xi!==je,Zi=$(V,xi,[]);this._getPreviousPlayers(xi,qi,Ft,Qt,v.toState).forEach(zn=>{const gn=zn.getRealPlayer();gn.beforeDestroy&&gn.beforeDestroy(),zn.destroy(),Zi.push(zn)})}mt(je,v.fromStyles)}_buildAnimation(F,v,V,te,je,Ft){const Qt=v.triggerName,ci=v.element,xi=[],qi=new Set,Zi=new Set,Hn=v.timelines.map(gn=>{const En=gn.element;qi.add(En);const ir=En[Hr];if(ir&&ir.removedBeforeQueried)return new f.ZN(gn.duration,gn.delay);const Ar=En!==ci,ra=function ti(H){const F=[];return ki(H,F),F}((V.get(En)||Na).map(Ss=>Ss.getRealPlayer())).filter(Ss=>!!Ss.element&&Ss.element===En),ws=je.get(En),za=Ft.get(En),sl=De(0,this._normalizer,0,gn.keyframes,ws,za),go=this._buildPlayer(gn,sl,ra);if(gn.subTimeline&&te&&Zi.add(En),Ar){const Ss=new Tr(F,Qt,En);Ss.setRealPlayer(go),xi.push(Ss)}return go});xi.forEach(gn=>{$(this.playersByQueriedElement,gn.element,[]).push(gn),gn.onDone(()=>function Jn(H,F,v){let V=H.get(F);if(V){if(V.length){const te=V.indexOf(v);V.splice(te,1)}0==V.length&&H.delete(F)}return V}(this.playersByQueriedElement,gn.element,gn))}),qi.forEach(gn=>St(gn,At));const zn=Oe(Hn);return zn.onDestroy(()=>{qi.forEach(gn=>di(gn,At)),Ke(ci,v.toStyles)}),Zi.forEach(gn=>{$(te,gn,[]).push(zn)}),zn}_buildPlayer(F,v,V){return v.length>0?this.driver.animate(F.element,v,F.duration,F.delay,F.easing,V):new f.ZN(F.duration,F.delay)}}class Tr{constructor(F,v,V){this.namespaceId=F,this.triggerName=v,this.element=V,this._player=new f.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(F){this._containsRealPlayer||(this._player=F,this._queuedCallbacks.forEach((v,V)=>{v.forEach(te=>ue(F,V,void 0,te))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(F.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(F){this.totalTime=F}syncPlayerEvents(F){const v=this._player;v.triggerCallback&&F.onStart(()=>v.triggerCallback("start")),F.onDone(()=>this.finish()),F.onDestroy(()=>this.destroy())}_queueEvent(F,v){$(this._queuedCallbacks,F,[]).push(v)}onDone(F){this.queued&&this._queueEvent("done",F),this._player.onDone(F)}onStart(F){this.queued&&this._queueEvent("start",F),this._player.onStart(F)}onDestroy(F){this.queued&&this._queueEvent("destroy",F),this._player.onDestroy(F)}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(F){this.queued||this._player.setPosition(F)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(F){const v=this._player;v.triggerCallback&&v.triggerCallback(F)}}function rr(H){return H&&1===H.nodeType}function jr(H,F){const v=H.style.display;return H.style.display=F??"none",v}function ys(H,F,v,V,te){const je=[];v.forEach(ci=>je.push(jr(ci)));const Ft=[];V.forEach((ci,xi)=>{const qi=new Map;ci.forEach(Zi=>{const Hn=F.computeStyle(xi,Zi,te);qi.set(Zi,Hn),(!Hn||0==Hn.length)&&(xi[Hr]=nr,Ft.push(xi))}),H.set(xi,qi)});let Qt=0;return v.forEach(ci=>jr(ci,je[Qt++])),Ft}function ls(H,F){const v=new Map;if(H.forEach(Qt=>v.set(Qt,[])),0==F.length)return v;const te=new Set(F),je=new Map;function Ft(Qt){if(!Qt)return 1;let ci=je.get(Qt);if(ci)return ci;const xi=Qt.parentNode;return ci=v.has(xi)?xi:te.has(xi)?1:Ft(xi),je.set(Qt,ci),ci}return F.forEach(Qt=>{const ci=Ft(Qt);1!==ci&&v.get(ci).push(Qt)}),v}function St(H,F){H.classList?.add(F)}function di(H,F){H.classList?.remove(F)}function Mt(H,F,v){Oe(v).onDone(()=>H.processLeaveNode(F))}function ki(H,F){for(let v=0;v<H.length;v++){const V=H[v];V instanceof f.ZE?ki(V.players,F):F.push(V)}}function Kn(H,F,v){const V=v.get(H);if(!V)return!1;let te=F.get(H);return te?V.forEach(je=>te.add(je)):F.set(H,V),v.delete(H),!0}class Cr{constructor(F,v,V){this.bodyNode=F,this._driver=v,this._normalizer=V,this._triggerCache={},this.onRemovalComplete=(te,je)=>{},this._transitionEngine=new Aa(F,v,V),this._timelineEngine=new ss(F,v,V),this._transitionEngine.onRemovalComplete=(te,je)=>this.onRemovalComplete(te,je)}registerTrigger(F,v,V,te,je){const Ft=F+"-"+te;let Qt=this._triggerCache[Ft];if(!Qt){const ci=[],qi=Ti(this._driver,je,ci,[]);if(ci.length)throw function i(H,F){return new e.vHH(3404,!1)}();Qt=function As(H,F,v){return new Rr(H,F,v)}(te,qi,this._normalizer),this._triggerCache[Ft]=Qt}this._transitionEngine.registerTrigger(v,te,Qt)}register(F,v){this._transitionEngine.register(F,v)}destroy(F,v){this._transitionEngine.destroy(F,v)}onInsert(F,v,V,te){this._transitionEngine.insertNode(F,v,V,te)}onRemove(F,v,V,te){this._transitionEngine.removeNode(F,v,te||!1,V)}disableAnimations(F,v){this._transitionEngine.markElementAsDisabled(F,v)}process(F,v,V,te){if("@"==V.charAt(0)){const[je,Ft]=Ge(V);this._timelineEngine.command(je,v,Ft,te)}else this._transitionEngine.trigger(F,v,V,te)}listen(F,v,V,te,je){if("@"==V.charAt(0)){const[Ft,Qt]=Ge(V);return this._timelineEngine.listen(Ft,v,Qt,je)}return this._transitionEngine.listen(F,v,V,te,je)}flush(F=-1){this._transitionEngine.flush(F)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Di=(()=>{class H{constructor(v,V,te){this._element=v,this._startStyles=V,this._endStyles=te,this._state=0;let je=H.initialStylesByElement.get(v);je||H.initialStylesByElement.set(v,je=new Map),this._initialStyles=je}start(){this._state<1&&(this._startStyles&&Ke(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ke(this._element,this._initialStyles),this._endStyles&&(Ke(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(H.initialStylesByElement.delete(this._element),this._startStyles&&(mt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(mt(this._element,this._endStyles),this._endStyles=null),Ke(this._element,this._initialStyles),this._state=3)}}return H.initialStylesByElement=new WeakMap,H})();function on(H){let F=null;return H.forEach((v,V)=>{(function ma(H){return"display"===H||"position"===H})(V)&&(F=F||new Map,F.set(V,v))}),F}class La{constructor(F,v,V,te){this.element=F,this.keyframes=v,this.options=V,this._specialStyles=te,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=V.duration,this._delay=V.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(F=>F()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const F=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,F,this.options),this._finalKeyframe=F.length?F[F.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(F){const v=[];return F.forEach(V=>{v.push(Object.fromEntries(V))}),v}_triggerWebAnimation(F,v,V){return F.animate(this._convertKeyframesToObject(v),V)}onStart(F){this._originalOnStartFns.push(F),this._onStartFns.push(F)}onDone(F){this._originalOnDoneFns.push(F),this._onDoneFns.push(F)}onDestroy(F){this._onDestroyFns.push(F)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(F=>F()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(F=>F()),this._onDestroyFns=[])}setPosition(F){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=F*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const F=new Map;this.hasStarted()&&this._finalKeyframe.forEach((V,te)=>{"offset"!==te&&F.set(te,this._finished?V:Vi(this.element,te))}),this.currentSnapshot=F}triggerCallback(F){const v="start"===F?this._onStartFns:this._onDoneFns;v.forEach(V=>V()),v.length=0}}class br{validateStyleProperty(F){return!0}validateAnimatableStyleProperty(F){return!0}matchesElement(F,v){return!1}containsElement(F,v){return Ye(F,v)}getParentElement(F){return he(F)}query(F,v,V){return Le(F,v,V)}computeStyle(F,v,V){return window.getComputedStyle(F)[v]}animate(F,v,V,te,je,Ft=[]){const ci={duration:V,delay:te,fill:0==te?"both":"forwards"};je&&(ci.easing=je);const xi=new Map,qi=Ft.filter(zn=>zn instanceof La);(function Pi(H,F){return 0===H||0===F})(V,te)&&qi.forEach(zn=>{zn.currentSnapshot.forEach((gn,En)=>xi.set(En,gn))});let Zi=function Nt(H){return H.length?H[0]instanceof Map?H:H.map(F=>ct(F)):[]}(v).map(zn=>Ae(zn));Zi=function Ii(H,F,v){if(v.size&&F.length){let V=F[0],te=[];if(v.forEach((je,Ft)=>{V.has(Ft)||te.push(Ft),V.set(Ft,je)}),te.length)for(let je=1;je<F.length;je++){let Ft=F[je];te.forEach(Qt=>Ft.set(Qt,Vi(H,Qt)))}}return F}(F,Zi,xi);const Hn=function Fr(H,F){let v=null,V=null;return Array.isArray(F)&&F.length?(v=on(F[0]),F.length>1&&(V=on(F[F.length-1]))):F instanceof Map&&(v=on(F)),v||V?new Di(H,v,V):null}(F,Zi);return new La(F,Zi,ci,Hn)}}var Ze=p(6895);let qe=(()=>{class H extends f._j{constructor(v,V){super(),this._nextAnimationId=0,this._renderer=v.createRenderer(V.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(v){const V=this._nextAnimationId.toString();this._nextAnimationId++;const te=Array.isArray(v)?(0,f.vP)(v):v;return vi(this._renderer,null,V,"register",[te]),new He(V,this._renderer)}}return H.\u0275fac=function(v){return new(v||H)(e.LFG(e.FYo),e.LFG(Ze.K0))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();class He extends f.LC{constructor(F,v){super(),this._id=F,this._renderer=v}create(F,v){return new Lt(this._id,F,v||{},this._renderer)}}class Lt{constructor(F,v,V,te){this.id=F,this.element=v,this._renderer=te,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",V)}_listen(F,v){return this._renderer.listen(this.element,`@@${this.id}:${F}`,v)}_command(F,...v){return vi(this._renderer,this.element,this.id,F,v)}onDone(F){this._listen("done",F)}onStart(F){this._listen("start",F)}onDestroy(F){this._listen("destroy",F)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(F){this._command("setPosition",F)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function vi(H,F,v,V,te){return H.setProperty(F,`@@${v}:${V}`,te)}const _r="@.disabled";let Ds=(()=>{class H{constructor(v,V,te){this.delegate=v,this.engine=V,this._zone=te,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),V.onRemovalComplete=(je,Ft)=>{const Qt=Ft?.parentNode(je);Qt&&Ft.removeChild(Qt,je)}}createRenderer(v,V){const je=this.delegate.createRenderer(v,V);if(!(v&&V&&V.data&&V.data.animation)){let qi=this._rendererCache.get(je);return qi||(qi=new Qa("",je,this.engine,()=>this._rendererCache.delete(je)),this._rendererCache.set(je,qi)),qi}const Ft=V.id,Qt=V.id+"-"+this._currentId;this._currentId++,this.engine.register(Qt,v);const ci=qi=>{Array.isArray(qi)?qi.forEach(ci):this.engine.registerTrigger(Ft,Qt,v,qi.name,qi)};return V.data.animation.forEach(ci),new xr(this,Qt,je,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(v,V,te){v>=0&&v<this._microtaskId?this._zone.run(()=>V(te)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(je=>{const[Ft,Qt]=je;Ft(Qt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([V,te]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return H.\u0275fac=function(v){return new(v||H)(e.LFG(e.FYo),e.LFG(Cr),e.LFG(e.R0b))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();class Qa{constructor(F,v,V,te){this.namespaceId=F,this.delegate=v,this.engine=V,this._onDestroy=te,this.destroyNode=this.delegate.destroyNode?je=>v.destroyNode(je):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(F,v){return this.delegate.createElement(F,v)}createComment(F){return this.delegate.createComment(F)}createText(F){return this.delegate.createText(F)}appendChild(F,v){this.delegate.appendChild(F,v),this.engine.onInsert(this.namespaceId,v,F,!1)}insertBefore(F,v,V,te=!0){this.delegate.insertBefore(F,v,V),this.engine.onInsert(this.namespaceId,v,F,te)}removeChild(F,v,V){this.engine.onRemove(this.namespaceId,v,this.delegate,V)}selectRootElement(F,v){return this.delegate.selectRootElement(F,v)}parentNode(F){return this.delegate.parentNode(F)}nextSibling(F){return this.delegate.nextSibling(F)}setAttribute(F,v,V,te){this.delegate.setAttribute(F,v,V,te)}removeAttribute(F,v,V){this.delegate.removeAttribute(F,v,V)}addClass(F,v){this.delegate.addClass(F,v)}removeClass(F,v){this.delegate.removeClass(F,v)}setStyle(F,v,V,te){this.delegate.setStyle(F,v,V,te)}removeStyle(F,v,V){this.delegate.removeStyle(F,v,V)}setProperty(F,v,V){"@"==v.charAt(0)&&v==_r?this.disableAnimations(F,!!V):this.delegate.setProperty(F,v,V)}setValue(F,v){this.delegate.setValue(F,v)}listen(F,v,V){return this.delegate.listen(F,v,V)}disableAnimations(F,v){this.engine.disableAnimations(F,v)}}class xr extends Qa{constructor(F,v,V,te,je){super(v,V,te,je),this.factory=F,this.namespaceId=v}setProperty(F,v,V){"@"==v.charAt(0)?"."==v.charAt(1)&&v==_r?this.disableAnimations(F,V=void 0===V||!!V):this.engine.process(this.namespaceId,F,v.slice(1),V):this.delegate.setProperty(F,v,V)}listen(F,v,V){if("@"==v.charAt(0)){const te=function qa(H){switch(H){case"body":return document.body;case"document":return document;case"window":return window;default:return H}}(F);let je=v.slice(1),Ft="";return"@"!=je.charAt(0)&&([je,Ft]=function ko(H){const F=H.indexOf(".");return[H.substring(0,F),H.slice(F+1)]}(je)),this.engine.listen(this.namespaceId,te,je,Ft,Qt=>{this.factory.scheduleListenerCallback(Qt._data||-1,V,Qt)})}return this.delegate.listen(F,v,V)}}const no=[{provide:f._j,useClass:qe},{provide:dr,useFactory:function bs(){return new rs}},{provide:Cr,useClass:(()=>{class H extends Cr{constructor(v,V,te,je){super(v.body,V,te)}ngOnDestroy(){this.flush()}}return H.\u0275fac=function(v){return new(v||H)(e.LFG(Ze.K0),e.LFG(Rt),e.LFG(dr),e.LFG(e.z2F))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})()},{provide:e.FYo,useFactory:function Xo(H,F,v){return new Ds(H,F,v)},deps:[t.se,Cr,e.R0b]}],Js=[{provide:Rt,useFactory:()=>new br},{provide:e.QbO,useValue:"BrowserAnimations"},...no],No=[{provide:Rt,useClass:Wt},{provide:e.QbO,useValue:"NoopAnimations"},...no];let Vs=(()=>{class H{static withConfig(v){return{ngModule:H,providers:v.disableAnimations?No:Js}}}return H.\u0275fac=function(v){return new(v||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({providers:Js,imports:[t.b2]}),H})();var Ra=p(529),vr=p(2289),Ni=p(9653),xs=p(493),xo=p(825),Bi=p(7579),Ne=p(6451),ft=p(4968),We=p(457),Dt=p(4986),ii=p(2805);function yi(H=0,F=Dt.z){return H<0&&(H=0),(0,ii.H)(H,H,F)}var Mi=p(9646),sn=p(727),or=p(4482),ar=p(5403),pr=p(8737),Vn=p(3269),Vr=p(9672),Xn=p(9300),Da=p(8505),ga=p(3900),en=p(2722),Cs=p(8746),Ha=p(1884),cs=p(4004);class ro{}let Fl=(()=>{class H{constructor(v,V){this._ngZone=V,this.timerStart$=new Bi.x,this.idleDetected$=new Bi.x,this.timeout$=new Bi.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,v&&this.setConfig(v)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,Ne.T)((0,ft.R)(window,"mousemove"),(0,ft.R)(window,"resize"),(0,ft.R)(document,"keydown"))),this.idle$=(0,We.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function lr(H,...F){var v,V;const te=null!==(v=(0,Vn.yG)(F))&&void 0!==v?v:Dt.z,je=null!==(V=F[0])&&void 0!==V?V:null,Ft=F[1]||1/0;return(0,or.e)((Qt,ci)=>{let xi=[],qi=!1;const Zi=gn=>{const{buffer:En,subs:ir}=gn;ir.unsubscribe(),(0,pr.P)(xi,gn),ci.next(En),qi&&Hn()},Hn=()=>{if(xi){const gn=new sn.w0;ci.add(gn);const ir={buffer:[],subs:gn};xi.push(ir),(0,Vr.f)(gn,te,()=>Zi(ir),H)}};null!==je&&je>=0?(0,Vr.f)(ci,te,Hn,je,!0):qi=!0,Hn();const zn=(0,ar.x)(ci,gn=>{const En=xi.slice();for(const ir of En){const{buffer:Ar}=ir;Ar.push(gn),Ft<=Ar.length&&Zi(ir)}},()=>{for(;xi?.length;)ci.next(xi.shift().buffer);zn?.unsubscribe(),ci.complete(),ci.unsubscribe()},void 0,()=>xi=null);Qt.subscribe(zn)})}(this.idleSensitivityMillisec),(0,Xn.h)(v=>!v.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,Da.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,ga.w)(()=>this._ngZone.runOutsideAngular(()=>yi(1e3).pipe((0,en.R)((0,Ne.T)(this.activityEvents$,(0,ii.H)(this.idleMillisec).pipe((0,Da.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,Cs.x)(()=>{this.isIdleDetected=!1,this.idleDetected$.next(!1)}))))).subscribe(),this.setupTimer(this.timeout),this.setupPing(this.pingMillisec)}stopWatching(){this.stopTimer(),this.idleSubscription&&this.idleSubscription.unsubscribe()}stopTimer(){this.isInactivityTimer=!1,this.timerStart$.next(!1)}resetTimer(){this.stopTimer(),this.isTimeout=!1}onTimerStart(){return this.timerStart$.pipe((0,Ha.x)(),(0,ga.w)(v=>v?this.timer$:(0,Mi.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,Xn.h)(v=>!!v),(0,Da.b)(()=>this.isTimeout=!0),(0,cs.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(v){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(v):console.error("Call stopWatching() before set config values")}setConfig(v){v.idle&&(this.idleMillisec=1e3*v.idle),v.ping&&(this.pingMillisec=1e3*v.ping),v.idleSensitivity&&(this.idleSensitivityMillisec=1e3*v.idleSensitivity),v.timeout&&(this.timeout=v.timeout)}setCustomActivityEvents(v){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=v:console.error("Call stopWatching() before set custom activity events")}setupTimer(v){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,Mi.of)(()=>new Date).pipe((0,cs.U)(V=>V()),(0,ga.w)(V=>yi(1e3).pipe((0,cs.U)(()=>Math.round(((new Date).valueOf()-V.valueOf())/1e3)),(0,Da.b)(te=>{te>=v&&this.timeout$.next(!0)}))))})}setupPing(v){this.ping$=yi(v).pipe((0,Xn.h)(()=>!this.isTimeout))}}return H.\u0275fac=function(v){return new(v||H)(e.LFG(ro,8),e.LFG(e.R0b))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),Co=(()=>{class H{static forRoot(v){return{ngModule:H,providers:[{provide:ro,useValue:v}]}}}return H.\u0275fac=function(v){return new(v||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[[]]}),H})();var Bn=p(9116),ji=p(2687),zr=p(8377),_a=p(2216),Ki=p(1576),tr=p(3546),ds=p(3848);const st=function(){return{initial:!1}};function wt(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.activeLink=te.links[1].link)}),e._uU(1),e.qZA()}if(2&H){const v=e.oxw();e.s9C("routerLink",v.links[1].link),e.Q6J("active",v.activeLink===v.links[1].link)("state",e.DdM(4,st)),e.xp6(1),e.Oqu(v.links[1].name)}}function Tt(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.activeLink=te.links[2].link)}),e._uU(1),e.qZA()}if(2&H){const v=e.oxw();e.s9C("routerLink",v.links[2].link),e.Q6J("active",v.activeLink===v.links[2].link),e.xp6(1),e.Oqu(v.links[2].name)}}let Ht=(()=>{class H{constructor(v,V){this.store=v,this.router=V,this.faUserCog=ji.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new Bi.x,new Bi.x,new Bi.x]}ngOnInit(){const v=this.links.find(V=>this.router.url.includes(V.link));this.activeLink=v?v.link:this.links[0].link,this.router.events.pipe((0,en.R)(this.unSubs[0]),(0,Xn.h)(V=>V instanceof Bn.Av)).subscribe({next:V=>{const te=this.links.find(je=>V.urlAfterRedirects.includes(je.link));this.activeLink=te?te.link:this.links[0].link}}),this.store.select(zr.Yj).pipe((0,en.R)(this.unSubs[1])).subscribe(V=>{this.appConfig=V}),this.store.select(zr.dT).pipe((0,en.R)(this.unSubs[2])).subscribe(V=>{this.showBitcoind=!1,this.selNode=V,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(Ni.yh),e.Y36(Bn.F0))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-settings"]],decls:14,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Settings"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return V.activeLink=V.links[0].link}),e._uU(9),e.qZA(),e.YNc(10,wt,2,5,"div",7),e.YNc(11,Tt,2,3,"div",8),e.qZA(),e.TgZ(12,"div",9),e._UZ(13,"router-outlet"),e.qZA()()()()),2&v&&(e.xp6(1),e.Q6J("icon",V.faUserCog),e.xp6(7),e.s9C("routerLink",V.links[0].link),e.Q6J("active",V.activeLink===V.links[0].link),e.xp6(1),e.Oqu(V.links[0].name),e.xp6(1),e.Q6J("ngIf",!+V.appConfig.sso.rtlSSO),e.xp6(1),e.Q6J("ngIf",V.showBitcoind))},dependencies:[Ze.O5,_a.BN,Ki.xw,Ki.Wh,Ki.yH,tr.a8,tr.dn,ds.BU,ds.Nj,Bn.lC,Bn.rH]}),H})();var $e=p(7731),ai=p(7861),ui=p(5043),ri=p(4006),Ai=p(4859),zi=p(9549),Qi=p(4385),ln=p(3238),Tn=p(6839),wn=p(3390);function va(H,F){if(1&H&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&H){const v=F.$implicit;e.Q6J("value",v.index),e.xp6(1),e.AsE(" ",v.lnNode," (",v.lnImplementation,") ")}}function ya(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"form",2,3)(2,"div",4),e._UZ(3,"fa-icon",5),e.TgZ(4,"span",6),e._uU(5,"Default Node"),e.qZA()(),e.TgZ(6,"div",7)(7,"div",8),e._UZ(8,"fa-icon",9),e.TgZ(9,"span"),e._uU(10,"The setting will apply after RTL server restarts."),e.qZA()(),e.TgZ(11,"div",10)(12,"mat-form-field",10)(13,"mat-select",11),e.NdJ("ngModelChange",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.appConfig.defaultNodeIndex=te)}),e.YNc(14,va,2,3,"mat-option",12),e.qZA()()(),e.TgZ(15,"div",13)(16,"div",10)(17,"button",14),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.onResetSettings())}),e._uU(18,"Reset"),e.qZA(),e.TgZ(19,"button",15),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.onUpdateSettings())}),e._uU(20,"Update"),e.qZA()()()()()}if(2&H){const v=e.oxw();e.xp6(3),e.Q6J("icon",v.faWindowRestore),e.xp6(5),e.Q6J("icon",v.faInfoCircle),e.xp6(5),e.Q6J("ngModel",v.appConfig.defaultNodeIndex),e.xp6(1),e.Q6J("ngForOf",v.appConfig.nodes)}}let ia=(()=>{class H{constructor(v,V){this.logger=v,this.store=V,this.faInfoCircle=ji.sqG,this.faWindowRestore=ji.wyP,this.faPlus=ji.r8p,this.previousDefaultNode=0,this.unSubs=[new Bi.x,new Bi.x]}ngOnInit(){this.store.select(zr.Yj).pipe((0,en.R)(this.unSubs[0])).subscribe(v=>{this.appConfig=v,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(v)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,ai.zQ)({payload:{uiMessage:$e.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:this.appConfig&&this.appConfig.nodes&&this.appConfig.nodes.length&&this.appConfig.nodes.length>0&&this.appConfig.nodes[0].index?+this.appConfig.nodes[0].index:-1}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(ui.mQ),e.Y36(Ni.yh))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-app-settings"]],decls:2,vars:1,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap-x-large",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","settings-container page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"my-2"],["fxLayout","row","fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row","fxLayoutAlign","start start"],["autoFocus","","tabindex","1","name","defaultNode",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],[3,"value"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0),e.YNc(1,ya,21,4,"form",1),e.qZA()),2&v&&(e.xp6(1),e.Q6J("ngIf",V.appConfig.nodes&&V.appConfig.nodes.length&&V.appConfig.nodes.length>0))},dependencies:[Ze.sg,Ze.O5,ri._Y,ri.JJ,ri.JL,ri.On,ri.F,_a.BN,Ki.xw,Ki.Wh,Ki.yH,Ai.lW,zi.KE,Qi.gD,ln.ey,Tn.$V,wn.h]}),H})();var na=p(8012),Wr=p(5698),wr=p(5412),us=p(5768),Br=p(3093),Os=p(7009),$n=p(4144),Ms=p(8425),Ps=p(658),ao=p(5199);const Mo=["stepper"];function sc(H,F){if(1&H&&e._uU(0),2&H){const v=e.oxw();e.Oqu(v.passwordFormLabel)}}function jc(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function oc(H,F){if(1&H&&e._uU(0),2&H){const v=e.oxw(2);e.Oqu(v.secretFormLabel)}}function ml(H,F){if(1&H&&e._UZ(0,"qr-code",32),2&H){const v=e.oxw(2);e.Q6J("value",v.otpauth)("size",180)("errorCorrectionLevel","L")}}function E1(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Secret Code is required."),e.qZA())}function $s(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"mat-step",10)(1,"form",21),e.YNc(2,oc,1,1,"ng-template",22),e.TgZ(3,"div",23),e.YNc(4,ml,1,3,"qr-code",24),e.qZA(),e.TgZ(5,"div",25),e._UZ(6,"fa-icon",26),e.TgZ(7,"span"),e._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),e.qZA()(),e.TgZ(9,"div",27)(10,"mat-form-field",1),e._UZ(11,"input",28),e.TgZ(12,"fa-icon",29),e.NdJ("copied",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.onCopySecret(te))}),e.qZA(),e.YNc(13,E1,2,0,"mat-error",14),e.qZA()(),e.TgZ(14,"div",30)(15,"button",31),e._uU(16,"Next"),e.qZA()()()()}if(2&H){const v=e.oxw();e.Q6J("stepControl",v.secretFormGroup)("editable",v.flgEditable),e.xp6(1),e.Q6J("formGroup",v.secretFormGroup),e.xp6(3),e.Q6J("ngIf",v.otpauth),e.xp6(2),e.Q6J("icon",v.faInfoCircle),e.xp6(6),e.Q6J("icon",v.faCopy)("payload",null==v.secretFormGroup||null==v.secretFormGroup.controls||null==v.secretFormGroup.controls.secret?null:v.secretFormGroup.controls.secret.value),e.xp6(1),e.Q6J("ngIf",null==v.secretFormGroup||null==v.secretFormGroup.controls||null==v.secretFormGroup.controls.secret||null==v.secretFormGroup.controls.secret.errors?null:v.secretFormGroup.controls.secret.errors.required)}}function Ro(H,F){if(1&H&&e._uU(0),2&H){const v=e.oxw(2);e.Oqu(v.tokenFormLabel)}}function lc(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}function Bs(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is invalid."),e.qZA())}function T1(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",7)(1,"div",27)(2,"mat-form-field",1),e._UZ(3,"input",36),e.YNc(4,lc,2,0,"mat-error",14),e.YNc(5,Bs,2,0,"mat-error",14),e.qZA()(),e.TgZ(6,"div",30)(7,"button",37),e.NdJ("click",function(){e.CHM(v);const te=e.oxw(2);return e.KtG(te.onVerifyToken())}),e._uU(8),e.qZA()()()}if(2&H){const v=e.oxw(2);e.xp6(4),e.Q6J("ngIf",null==v.tokenFormGroup||null==v.tokenFormGroup.controls||null==v.tokenFormGroup.controls.token||null==v.tokenFormGroup.controls.token.errors?null:v.tokenFormGroup.controls.token.errors.required),e.xp6(1),e.Q6J("ngIf",null==v.tokenFormGroup||null==v.tokenFormGroup.controls||null==v.tokenFormGroup.controls.token||null==v.tokenFormGroup.controls.token.errors?null:v.tokenFormGroup.controls.token.errors.notValid),e.xp6(3),e.Oqu(null!=v.tokenFormGroup&&null!=v.tokenFormGroup.controls&&null!=v.tokenFormGroup.controls.token&&null!=v.tokenFormGroup.controls.token.errors&&v.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function $o(H,F){1&H&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Success! You are all set."),e.qZA()())}function ks(H,F){if(1&H&&(e.TgZ(0,"mat-step",33)(1,"form",34),e.YNc(2,Ro,1,1,"ng-template",12),e.YNc(3,T1,9,3,"div",35),e.YNc(4,$o,3,0,"div",14),e.qZA()()),2&H){const v=e.oxw();e.Q6J("stepControl",v.tokenFormGroup),e.xp6(1),e.Q6J("formGroup",v.tokenFormGroup),e.xp6(2),e.Q6J("ngIf",!v.flgValidated||!v.isTokenValid),e.xp6(1),e.Q6J("ngIf",v.flgValidated&&v.isTokenValid)}}function so(H,F){if(1&H&&e._uU(0),2&H){const v=e.oxw(2);e.Oqu(v.disableFormLabel)}}function A1(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",7)(1,"div",38),e._UZ(2,"fa-icon",26),e.TgZ(3,"span"),e._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),e.qZA()(),e.TgZ(5,"div",30)(6,"button",37),e.NdJ("click",function(){e.CHM(v);const te=e.oxw(2);return e.KtG(te.onVerifyToken())}),e._uU(7,"Disable"),e.qZA()()()}if(2&H){const v=e.oxw(2);e.xp6(2),e.Q6J("icon",v.faExclamationTriangle)}}function gl(H,F){1&H&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Two factor authentication removed from RTL."),e.qZA()())}function Ho(H,F){if(1&H&&(e.TgZ(0,"mat-step",33)(1,"form",34),e.YNc(2,so,1,1,"ng-template",12),e.YNc(3,A1,8,1,"div",35),e.YNc(4,gl,3,0,"div",14),e.qZA()()),2&H){const v=e.oxw();e.Q6J("stepControl",v.disableFormGroup),e.xp6(1),e.Q6J("formGroup",v.disableFormGroup),e.xp6(2),e.Q6J("ngIf",!v.flgValidated||!v.isTokenValid),e.xp6(1),e.Q6J("ngIf",v.flgValidated&&v.isTokenValid)}}let L1=(()=>{class H{constructor(v,V,te,je,Ft,Qt){this.dialogRef=v,this.data=V,this.store=te,this.formBuilder=je,this.rtlEffects=Ft,this.snackBar=Qt,this.faExclamationTriangle=ji.eHv,this.faCopy=ji.kZ_,this.faInfoCircle=ji.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",this.appConfig=null,this.flgEditable=!0,this.showDisableStepper=!1,this.passwordFormLabel="Authenticate with your RTL password",this.secretFormLabel="Scan or copy the secret",this.tokenFormLabel="Verify your authentication is working",this.disableFormLabel="Disable two factor authentication",this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[ri.kI.required]],password:["",[ri.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},ri.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",ri.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new Bi.x,new Bi.x]}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},ri.kI.required]})}generateSecret(){const v=us.authenticator.generateSecret();return this.otpauth=us.authenticator.keyuri("","Ride The Lightning (RTL)",v),v}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,ai.QO)({payload:na(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,Wr.q)(1)).subscribe(v=>{"ERROR"!==v?(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(v){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig?.enable2FA)this.store.dispatch((0,ai.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=us.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.store.dispatch((0,ai.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig&&(this.appConfig.enable2FA=!this.appConfig?.enable2FA)}stepSelectionChanged(v){switch(v.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}v.selectedIndex<v.previouslySelectedIndex&&0===v.selectedIndex&&this.passwordFormGroup.controls.hiddenPassword.setValue("")}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(wr.so),e.Y36(wr.WI),e.Y36(Ni.yh),e.Y36(ri.QS),e.Y36(Br.V),e.Y36(Os.ux))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-two-factor-auth"]],viewQuery:function(v,V){if(1&v&&e.Gf(Mo,5),2&v){let te;e.iGM(te=e.CRH())&&(V.stepper=te.first)}},decls:28,vars:11,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["fxFlex","100",1,"w-100","alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["autoFocus","","matInput","","placeholder","Secret Code","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"icon","payload","copied"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"value","size","errorCorrectionLevel"],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","placeholder","Token","type","text","tabindex","7","formControlName","token","required",""],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Setup Two Factor Authentication"),e.qZA()(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),e.NdJ("selectionChange",function(je){return V.stepSelectionChanged(je)}),e.TgZ(12,"mat-step",10)(13,"form",11),e.YNc(14,sc,1,1,"ng-template",12),e.TgZ(15,"div",0)(16,"mat-form-field",1),e._UZ(17,"input",13),e.YNc(18,jc,2,0,"mat-error",14),e.qZA()(),e.TgZ(19,"div",15)(20,"button",16),e.NdJ("click",function(){return V.onAuthenticate()}),e._uU(21,"Confirm"),e.qZA()()()(),e.YNc(22,$s,17,8,"mat-step",17),e.YNc(23,ks,5,4,"mat-step",18),e.YNc(24,Ho,5,4,"mat-step",18),e.qZA(),e.TgZ(25,"div",19)(26,"button",20),e._uU(27),e.qZA()()()()()()),2&v&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(4),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",V.passwordFormGroup)("editable",V.flgEditable),e.xp6(1),e.Q6J("formGroup",V.passwordFormGroup),e.xp6(5),e.Q6J("ngIf",null==V.passwordFormGroup||null==V.passwordFormGroup.controls||null==V.passwordFormGroup.controls.password||null==V.passwordFormGroup.controls.password.errors?null:V.passwordFormGroup.controls.password.errors.required),e.xp6(4),e.Q6J("ngIf",!V.showDisableStepper),e.xp6(1),e.Q6J("ngIf",!V.showDisableStepper),e.xp6(1),e.Q6J("ngIf",V.showDisableStepper),e.xp6(2),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(V.flgValidated&&V.isTokenValid?"Close":"Cancel"))},dependencies:[Ze.O5,ri._Y,ri.Fj,ri.JJ,ri.JL,ri.Q7,ri.sg,ri.u,_a.BN,Ki.xw,Ki.Wh,Ki.yH,wr.ZT,Ai.lW,tr.dk,tr.dn,zi.TO,zi.KE,zi.R9,$n.Nt,Ms.C0,Ms.VY,Ms.Vq,Ms.Ic,Ps.uU,ao.y,wn.h]}),H})();var oo=p(5986),cr=p(4850);const e0=["authForm"];function cc(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Current password is required."),e.qZA())}function D1(H,F){if(1&H&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&H){const v=e.oxw(2);e.xp6(1),e.Oqu(v.errorMsg)}}function I1(H,F){if(1&H&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&H){const v=e.oxw(2);e.xp6(1),e.Oqu(v.errorConfirmMsg)}}function lo(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"form",10,11)(2,"div",12),e._UZ(3,"fa-icon",4),e.TgZ(4,"span",5),e._uU(5,"Password"),e.qZA()(),e.TgZ(6,"mat-form-field")(7,"input",13),e.NdJ("ngModelChange",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.currPassword=te)}),e.qZA(),e.YNc(8,cc,2,0,"mat-error",14),e.qZA(),e.TgZ(9,"mat-form-field")(10,"input",15),e.NdJ("ngModelChange",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.newPassword=te)}),e.qZA(),e.YNc(11,D1,2,1,"mat-error",14),e.qZA(),e.TgZ(12,"mat-form-field")(13,"input",16),e.NdJ("ngModelChange",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.confirmPassword=te)}),e.qZA(),e.YNc(14,I1,2,1,"mat-error",14),e.qZA(),e.TgZ(15,"div",17)(16,"button",18),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.onResetPassword())}),e._uU(17,"Reset"),e.qZA(),e.TgZ(18,"button",19),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.onChangePassword())}),e._uU(19,"Change Password"),e.qZA()(),e.TgZ(20,"div",20),e._UZ(21,"mat-divider",21),e.qZA()()}if(2&H){const v=e.oxw();e.xp6(3),e.Q6J("icon",v.faLock),e.xp6(4),e.Q6J("ngModel",v.currPassword),e.xp6(1),e.Q6J("ngIf",!v.currPassword),e.xp6(2),e.Q6J("ngModel",v.newPassword),e.xp6(1),e.Q6J("ngIf",v.matchOldAndNewPasswords()),e.xp6(2),e.Q6J("ngModel",v.confirmPassword),e.xp6(1),e.Q6J("ngIf",v.matchNewPasswords()),e.xp6(7),e.Q6J("inset",!0)}}let Vl=(()=>{class H{constructor(v,V,te,je,Ft){this.logger=v,this.store=V,this.actions=te,this.router=je,this.sessionService=Ft,this.faInfoCircle=ji.sqG,this.faUserLock=ji.FJU,this.faUserClock=ji.hnx,this.faLock=ji.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new Bi.x,new Bi.x,new Bi.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(zr.Yj).pipe((0,en.R)(this.unSubs[0])).subscribe(v=>{this.appConfig=v,this.logger.info(this.appConfig)}),this.store.select(zr.dT).pipe((0,en.R)(this.unSubs[1])).subscribe(v=>{this.selNode=v}),this.actions.pipe((0,en.R)(this.unSubs[2]),(0,Xn.h)(v=>v.type===$e.pg.RESET_PASSWORD_RES)).subscribe(v=>{if($e.kO.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||$e.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,ai.c0)({payload:{currPassword:na(this.currPassword).toString(),newPassword:na(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let v=!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.",v=!0):$e.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=$e.kO?.reduce((V,te,je)=>je<$e.kO.length-1?V+te+'" / "':V+te+'".','Password cannot be "'),v=!0):(this.form.controls.newpassword.setErrors(null),this.errorMsg="",v=!1):(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="New password is required.",v=!0)),v}matchNewPasswords(){let v=!1;return this.form&&this.form.controls&&this.form.controls.confirmpassword&&(this.confirmPassword?""!==this.newPassword&&""!==this.confirmPassword&&this.newPassword!==this.confirmPassword?(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="New and confirm passwords do not match.",v=!0):(this.form.controls.confirmpassword.setErrors(null),this.errorConfirmMsg="",v=!1):(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="Confirm password is required.",v=!0)),v}on2FAuth(){this.store.dispatch((0,ai.qR)({payload:{data:{appConfig:this.appConfig,component:L1}}}))}onResetPassword(){this.form.resetForm()}ngOnDestroy(){this.initializeNodeData&&this.store.dispatch((0,ai.fk)({payload:{uiMessage:$e.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:this.selNode,isInitialSetup:!0}})),this.unSubs.forEach(v=>{v.next(),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(ui.mQ),e.Y36(Ni.yh),e.Y36(xs.eX),e.Y36(Bn.F0),e.Y36(oo.m))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-auth-settings"]],viewQuery:function(v,V){if(1&v&&e.Gf(e0,5),2&v){let te;e.iGM(te=e.CRH())&&(V.form=te.first)}},decls:14,vars:4,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","6",1,"mb-2",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","5","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0),e.YNc(1,lo,22,8,"form",1),e.TgZ(2,"div",2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Two Factor Authentication"),e.qZA()(),e.TgZ(7,"div",6),e._UZ(8,"fa-icon",7),e.TgZ(9,"span"),e._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),e.qZA()(),e.TgZ(11,"div",8)(12,"button",9),e.NdJ("click",function(){return V.on2FAuth()}),e._uU(13),e.qZA()()()()),2&v&&(e.xp6(1),e.Q6J("ngIf",null==V.appConfig?null:V.appConfig.allowPasswordUpdate),e.xp6(3),e.Q6J("icon",V.faUserClock),e.xp6(4),e.Q6J("icon",V.faInfoCircle),e.xp6(5),e.Oqu(V.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},dependencies:[Ze.O5,ri._Y,ri.Fj,ri.JJ,ri.JL,ri.Q7,ri.On,ri.F,_a.BN,Ki.xw,Ki.Wh,Ki.yH,Ai.lW,zi.TO,zi.KE,$n.Nt,cr.d,wn.h]}),H})();var Fo=p(6338);function Xr(H,F){1&H&&e._UZ(0,"mat-divider",7)}function Ja(H,F){if(1&H&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,Xr,1,0,"mat-divider",6),e.qZA()),2&H){const v=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,v.configData)),e.xp6(2),e.Q6J("ngIf",""!==v.configData)}}function O1(H,F){if(1&H&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&H){const v=e.oxw().$implicit;e.xp6(1),e.Oqu(v)}}function Qr(H,F){if(1&H&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&H){const v=e.oxw().$implicit;e.xp6(1),e.Oqu(v)}}function el(H,F){1&H&&e._UZ(0,"mat-divider",15),2&H&&e.Q6J("inset",!0)}function Us(H,F){if(1&H&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,O1,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Qr,2,1,"h4",12),e.qZA(),e.YNc(5,el,1,1,"mat-divider",13),e.qZA()),2&H){const v=F.$implicit;e.xp6(2),e.Q6J("ngIf",v.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",v.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",v.indexOf("[")<0)}}function t0(H,F){if(1&H&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,Us,6,3,"mat-list-item",9),e.qZA()()),2&H){const v=e.oxw();e.xp6(2),e.Q6J("ngForOf",v.configData)}}let co=(()=>{class H{constructor(v,V,te){this.store=v,this.rtlEffects=V,this.router=te,this.configData="",this.fileFormat="INI",this.faCog=ji.b7W,this.unSubs=[new Bi.x,new Bi.x]}ngOnInit(){this.store.dispatch((0,ai.Q2)({payload:"bitcoind"})),this.rtlEffects.showLnConfig.pipe((0,en.R)(this.unSubs[1])).subscribe(v=>{const V=v.data;this.fileFormat=v.format,this.configData=""===V||!V||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==V&&V&&"JSON"===this.fileFormat?V:"":V.split("\n")})}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(Ni.yh),e.Y36(Br.V),e.Y36(Bn.F0))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-bitcoin-config"]],decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Ja,5,4,"div",2),e.YNc(3,t0,3,1,"div",3),e.qZA()()),2&v&&(e.xp6(2),e.Q6J("ngIf",""!==V.configData&&"JSON"===V.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==V.configData&&("INI"===V.fileFormat||"HOCON"===V.fileFormat)))},dependencies:[Ze.sg,Ze.O5,Ki.xw,Ki.Wh,Ki.yH,tr.$j,Fo.i$,Fo.Tg,cr.d,Ze.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),H})();function Xa(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}let eo=(()=>{class H{constructor(v,V,te){this.dialogRef=v,this.store=V,this.rtlEffects=te,this.password="",this.isAuthenticated=!1,this.unSubs=[new Bi.x,new Bi.x]}ngOnInit(){this.rtlEffects.isAuthorizedRes.pipe((0,Wr.q)(1)).subscribe(v=>{"ERROR"!==v?(this.isAuthenticated=!0,this.store.dispatch((0,ai.M6)({payload:this.isAuthenticated}))):this.isAuthenticated=!1})}onAuthenticate(){if(!this.password)return!0;this.store.dispatch((0,ai.QO)({payload:na(this.password)}))}onClose(){this.store.dispatch((0,ai.M6)({payload:this.isAuthenticated}))}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(wr.so),e.Y36(Ni.yh),e.Y36(Br.V))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-is-authorized"]],decls:16,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["autoFocus","","matInput","","placeholder","Password","type","password","id","password","name","password","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","2","type","submit","default","",3,"click"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Authenticate with your RTL Password"),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return V.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"mat-form-field")(11,"input",8),e.NdJ("ngModelChange",function(je){return V.password=je}),e.qZA(),e.YNc(12,Xa,2,0,"mat-error",9),e.qZA(),e.TgZ(13,"div",10)(14,"button",11),e.NdJ("click",function(){return V.onAuthenticate()}),e._uU(15,"Confirm"),e.qZA()()()()()()),2&v&&(e.xp6(11),e.Q6J("ngModel",V.password),e.xp6(1),e.Q6J("ngIf",!V.password))},dependencies:[Ze.O5,ri._Y,ri.Fj,ri.JJ,ri.JL,ri.Q7,ri.On,ri.F,Ki.xw,Ki.Wh,Ki.yH,Ai.lW,tr.dk,tr.dn,zi.TO,zi.KE,$n.Nt,wn.h]}),H})();const P1=function(){return{initial:!1}};function ge(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.activeLink=te.links[2].link)}),e._uU(1),e.qZA()}if(2&H){const v=e.oxw();e.s9C("routerLink",v.links[2].link),e.Q6J("active",v.activeLink===v.links[2].link)("state",e.DdM(4,P1)),e.xp6(1),e.Oqu(v.links[2].name)}}function xe(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.activeLink=te.links[3].link)}),e._uU(1),e.qZA()}if(2&H){const v=e.oxw();e.s9C("routerLink",v.links[3].link),e.Q6J("active",v.activeLink===v.links[3].link),e.xp6(1),e.Oqu(v.links[3].name)}}function fe(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.showLnConfigClicked())}),e._uU(1),e.qZA()}if(2&H){const v=e.oxw();e.Q6J("active",v.activeLink===v.links[4].link),e.xp6(1),e.Oqu(v.links[4].name)}}let Ue=(()=>{class H{constructor(v,V,te,je){this.store=v,this.router=V,this.rtlEffects=te,this.activatedRoute=je,this.faTools=ji.CgH,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.x,new Bi.x,new Bi.x]}ngOnInit(){const v=this.links.find(V=>this.router.url.includes(V.link));this.activeLink=v?v.link:this.links[0].link,this.router.events.pipe((0,en.R)(this.unSubs[0]),(0,Xn.h)(V=>V instanceof Bn.Av)).subscribe({next:V=>{const te=this.links.find(je=>V.urlAfterRedirects.includes(je.link));this.activeLink=te?te.link:this.links[0].link}}),this.store.select(zr.dT).pipe((0,en.R)(this.unSubs[1])).subscribe(V=>{switch(this.showLnConfig=!1,this.selNode=V,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.store.dispatch((0,ai.qR)({payload:{maxWidth:"50rem",data:{component:eo}}})),this.rtlEffects.closeAlert.pipe((0,en.R)(this.unSubs[1])).subscribe(v=>{v&&(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(Ni.yh),e.Y36(Bn.F0),e.Y36(Br.V),e.Y36(Bn.gz))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-node-config"]],decls:17,vars:10,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","click"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Node Config"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return V.activeLink=V.links[0].link}),e._uU(9),e.qZA(),e.TgZ(10,"div",6),e.NdJ("click",function(){return V.activeLink=V.links[1].link}),e._uU(11),e.qZA(),e.YNc(12,ge,2,5,"div",7),e.YNc(13,xe,2,3,"div",8),e.YNc(14,fe,2,2,"div",9),e.qZA(),e.TgZ(15,"div",10),e._UZ(16,"router-outlet"),e.qZA()()()()),2&v&&(e.xp6(1),e.Q6J("icon",V.faTools),e.xp6(7),e.s9C("routerLink",V.links[0].link),e.Q6J("active",V.activeLink===V.links[0].link),e.xp6(1),e.Oqu(V.links[0].name),e.xp6(1),e.s9C("routerLink",V.links[1].link),e.Q6J("active",V.activeLink===V.links[1].link),e.xp6(1),e.Oqu(V.links[1].name),e.xp6(1),e.Q6J("ngIf","LND"===(null==V.selNode||null==V.selNode.lnImplementation?null:V.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==V.selNode||null==V.selNode.lnImplementation?null:V.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf",V.showLnConfig))},dependencies:[Ze.O5,_a.BN,Ki.xw,Ki.Wh,Ki.yH,tr.a8,tr.dn,ds.BU,ds.Nj,Bn.lC,Bn.rH]}),H})();function tt(H,F){1&H&&e._UZ(0,"mat-divider",7)}function It(H,F){if(1&H&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,tt,1,0,"mat-divider",6),e.qZA()),2&H){const v=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,v.configData)),e.xp6(2),e.Q6J("ngIf",""!==v.configData)}}function Jt(H,F){if(1&H&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&H){const v=e.oxw().$implicit;e.xp6(1),e.Oqu(v)}}function ni(H,F){if(1&H&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&H){const v=e.oxw().$implicit;e.xp6(1),e.Oqu(v)}}function bi(H,F){1&H&&e._UZ(0,"mat-divider",15),2&H&&e.Q6J("inset",!0)}function Xi(H,F){if(1&H&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,Jt,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,ni,2,1,"h4",12),e.qZA(),e.YNc(5,bi,1,1,"mat-divider",13),e.qZA()),2&H){const v=F.$implicit;e.xp6(2),e.Q6J("ngIf",v.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",v.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",v.indexOf("[")<0)}}function Rn(H,F){if(1&H&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,Xi,6,3,"mat-list-item",9),e.qZA()()),2&H){const v=e.oxw();e.xp6(2),e.Q6J("ngForOf",v.configData)}}let cn=(()=>{class H{constructor(v,V,te){this.store=v,this.rtlEffects=V,this.router=te,this.configData="",this.fileFormat="INI",this.faCog=ji.b7W,this.unSubs=[new Bi.x,new Bi.x]}ngOnInit(){this.store.dispatch((0,ai.Q2)({payload:"ln"})),this.rtlEffects.showLnConfig.pipe((0,en.R)(this.unSubs[1])).subscribe(v=>{const V=v.data;this.fileFormat=v.format,this.configData=""===V||!V||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==V&&V&&"JSON"===this.fileFormat?V:"":V.split("\n")})}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(Ni.yh),e.Y36(Br.V),e.Y36(Bn.F0))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-lnp-config"]],decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,It,5,4,"div",2),e.YNc(3,Rn,3,1,"div",3),e.qZA()()),2&v&&(e.xp6(2),e.Q6J("ngIf",""!==V.configData&&"JSON"===V.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==V.configData&&("INI"===V.fileFormat||"HOCON"===V.fileFormat)))},dependencies:[Ze.sg,Ze.O5,Ki.xw,Ki.Wh,Ki.yH,tr.$j,Fo.i$,Fo.Tg,cr.d,Ze.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),H})();var mn=p(2994),In=p(429),er=p(6523),$r=p(62),Sr=p(5829),Dr=p(752),wo=p(1948),Vo=p(455);function zl(H,F){if(1&H&&(e.TgZ(0,"mat-option",35),e._uU(1),e.qZA()),2&H){const v=F.$implicit;e.Q6J("value",v.id),e.xp6(1),e.hij(" ",v.id," ")}}function zo(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Currency unit is required."),e.qZA())}function hs(H,F){if(1&H&&(e.TgZ(0,"mat-radio-button",36),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&H){const v=F.$implicit,V=e.oxw();e.Q6J("value",v)("checked",V.selNode.settings.userPersona===v),e.xp6(1),e.hij(" ",e.lcZ(2,3,v)," ")}}const uo=function(H){return{"mr-4":H}};function So(H,F){if(1&H&&(e.TgZ(0,"mat-radio-button",37),e._uU(1),e.qZA()),2&H){const v=F.$implicit,V=e.oxw();e.Q6J("value",v)("ngClass",e.VKq(3,uo,V.screenSize===V.screenSizeEnum.XS||V.screenSize===V.screenSizeEnum.SM)),e.xp6(1),e.hij("",v.name," ")}}const k1=function(H){return{skin:!0,"selected-color":H}};function n0(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"span",38)(1,"div",39),e.NdJ("click",function(){const je=e.CHM(v).$implicit,Ft=e.oxw();return e.KtG(Ft.changeThemeColor(je.id))}),e.ALo(2,"lowercase"),e.qZA(),e._uU(3),e.qZA()}if(2&H){const v=F.$implicit,V=e.oxw();e.xp6(1),e.Tol(e.lcZ(2,4,v.id)),e.Q6J("ngClass",e.VKq(6,k1,V.selectedThemeColor===v.id)),e.xp6(2),e.hij(" ",v.name," ")}}let N1=(()=>{class H{constructor(v,V,te){this.logger=v,this.commonService=V,this.store=te,this.faExclamationTriangle=ji.eHv,this.faMoneyBillAlt=ji.co4,this.faPaintBrush=ji.XsY,this.faInfoCircle=ji.sqG,this.faEyeSlash=ji.Aq,this.userPersonas=[$e.ol.OPERATOR,$e.ol.MERCHANT],this.currencyUnits=$e.Er,this.themeModes=$e.wZ.modes,this.themeColors=$e.wZ.themes,this.selectedThemeMode=$e.wZ.modes[0],this.selectedThemeColor=$e.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=$e.cu,this.unSubs=[new Bi.x,new Bi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(zr.dT).pipe((0,en.R)(this.unSubs[0])).subscribe(v=>{this.selNode=v,this.selectedThemeMode=this.themeModes.find(V=>this.selNode.settings.themeMode===V.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(v)})}onCurrencyChange(v){this.selNode.settings.currencyUnits=[...$e.uA,v.value],this.store.dispatch((0,er.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:v.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,In.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:v.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,mn.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:v.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}toggleSettings(v,V){this.selNode.settings[v]=!this.selNode.settings[v]}changeThemeColor(v){this.selectedThemeColor=v,this.selNode.settings.themeColor=v}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onUpdateSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;this.logger.info(this.selNode.settings),this.store.dispatch((0,ai.zQ)({payload:{uiMessage:$e.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,er.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,In.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,mn.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}onResetSettings(){const v=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(V=>V.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,ai.fk)({payload:{uiMessage:$e.m6.NO_SPINNER,prevLnNodeIndex:+v,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(ui.mQ),e.Y36($r.v),e.Y36(Ni.yh))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-node-settings"]],decls:77,vars:20,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["displayMode","flat","multi","false"],["fxLayout","column",1,"flat-expansion-panel","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","1","color","primary","name","unannouncedChannels",3,"ngModel","ngModelChange","change"],["fxFlex","100",1,"alert","alert-warn"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["tabindex","2","color","primary","name","fiatConversion",3,"ngModel","ngModelChange","change"],["autoFocus","","placeholder","Fiat Currency","tabindex","3","name","currencyUnit",3,"ngModel","disabled","required","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",3,"ngModel","ngModelChange"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1",3,"inset"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxFlex.gt-xs","20","fxFlex.gt-md","15","fxLayout","column","fxLayoutAlign","space-between stretch"],["color","primary","name","themeMode",3,"ngModel","ngModelChange","change"],["tabindex","5",3,"value","ngClass",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row","class","theme-name",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],[1,"mr-4",3,"value","checked"],["tabindex","5",3,"value","ngClass"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-accordion",3)(4,"mat-expansion-panel",4)(5,"mat-expansion-panel-header")(6,"mat-panel-title"),e._UZ(7,"fa-icon",5),e.TgZ(8,"span",6),e._uU(9,"Open Unannounced Channels"),e.qZA()()(),e.TgZ(10,"div",7)(11,"div",8),e._UZ(12,"fa-icon",9),e.TgZ(13,"span"),e._uU(14,"Use this control to toggle setting which defaults to opening unannounced channels only."),e.qZA()(),e.TgZ(15,"div",10)(16,"mat-slide-toggle",11),e.NdJ("ngModelChange",function(je){return V.selNode.settings.unannouncedChannels=je})("change",function(je){return V.selNode.settings.unannouncedChannels=je.checked?V.selNode.settings.unannouncedChannels:null}),e._uU(17,"Open Unannounced Channels"),e.qZA()()()(),e.TgZ(18,"mat-expansion-panel",4)(19,"mat-expansion-panel-header")(20,"mat-panel-title"),e._UZ(21,"fa-icon",5),e.TgZ(22,"span",6),e._uU(23,"Balance Display"),e.qZA()()(),e.TgZ(24,"div",7)(25,"div",12),e._UZ(26,"fa-icon",9),e.TgZ(27,"span"),e._uU(28,"Fiat conversion calls "),e.TgZ(29,"strong")(30,"a",13),e._uU(31,"Blockchain.com"),e.qZA()(),e._uU(32," API to get conversion rates."),e.qZA()(),e.TgZ(33,"div",10)(34,"mat-slide-toggle",14),e.NdJ("ngModelChange",function(je){return V.selNode.settings.fiatConversion=je})("change",function(je){return V.selNode.settings.currencyUnit=je.checked?V.selNode.settings.currencyUnit:null}),e._uU(35,"Enable Fiat Conversion"),e.qZA(),e.TgZ(36,"mat-form-field")(37,"mat-select",15,16),e.NdJ("ngModelChange",function(je){return V.selNode.settings.currencyUnit=je})("selectionChange",function(je){return V.onCurrencyChange(je)}),e.YNc(39,zl,2,2,"mat-option",17),e.qZA(),e.YNc(40,zo,2,0,"mat-error",18),e.qZA()()()(),e.TgZ(41,"mat-expansion-panel",4)(42,"mat-expansion-panel-header")(43,"mat-panel-title"),e._UZ(44,"fa-icon",5),e.TgZ(45,"span",6),e._uU(46,"Customization"),e.qZA()()(),e.TgZ(47,"div",7)(48,"div",19)(49,"div",20),e._UZ(50,"fa-icon",9),e.TgZ(51,"span"),e._uU(52,"Dashboard layout will be tailored based on the role selected to better serve its needs."),e.qZA()(),e.TgZ(53,"div",21)(54,"h4"),e._uU(55,"Dashboard Layout"),e.qZA(),e.TgZ(56,"mat-radio-group",22),e.NdJ("ngModelChange",function(je){return V.selNode.settings.userPersona=je}),e.YNc(57,hs,3,5,"mat-radio-button",23),e.qZA()()(),e._UZ(58,"mat-divider",24),e.TgZ(59,"div",25)(60,"div",26)(61,"h4"),e._uU(62,"Mode"),e.qZA(),e.TgZ(63,"mat-radio-group",27),e.NdJ("ngModelChange",function(je){return V.selectedThemeMode=je})("change",function(){return V.chooseThemeMode()}),e.YNc(64,So,2,5,"mat-radio-button",28),e.qZA()()(),e._UZ(65,"mat-divider",24),e.TgZ(66,"div",25)(67,"div",29)(68,"h4"),e._uU(69,"Themes"),e.qZA(),e.TgZ(70,"div",30),e.YNc(71,n0,4,8,"span",31),e.qZA()()()()()()(),e.TgZ(72,"div",32)(73,"button",33),e.NdJ("click",function(){return V.onResetSettings()}),e._uU(74,"Reset"),e.qZA(),e.TgZ(75,"button",34),e.NdJ("click",function(){return V.onUpdateSettings()}),e._uU(76,"Update"),e.qZA()()()),2&v&&(e.xp6(7),e.Q6J("icon",V.faEyeSlash),e.xp6(5),e.Q6J("icon",V.faInfoCircle),e.xp6(4),e.Q6J("ngModel",V.selNode.settings.unannouncedChannels),e.xp6(5),e.Q6J("icon",V.faMoneyBillAlt),e.xp6(5),e.Q6J("icon",V.faExclamationTriangle),e.xp6(8),e.Q6J("ngModel",V.selNode.settings.fiatConversion),e.xp6(3),e.Q6J("ngModel",V.selNode.settings.currencyUnit)("disabled",!V.selNode.settings.fiatConversion)("required",V.selNode.settings.fiatConversion),e.xp6(2),e.Q6J("ngForOf",V.currencyUnits),e.xp6(1),e.Q6J("ngIf",V.selNode.settings.fiatConversion&&!V.selNode.settings.currencyUnit),e.xp6(4),e.Q6J("icon",V.faPaintBrush),e.xp6(6),e.Q6J("icon",V.faInfoCircle),e.xp6(6),e.Q6J("ngModel",V.selNode.settings.userPersona),e.xp6(1),e.Q6J("ngForOf",V.userPersonas),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Q6J("ngModel",V.selectedThemeMode),e.xp6(1),e.Q6J("ngForOf",V.themeModes),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Q6J("ngForOf",V.themeColors))},dependencies:[Ze.mk,Ze.sg,Ze.O5,ri._Y,ri.JJ,ri.JL,ri.Q7,ri.On,ri.F,_a.BN,Ki.xw,Ki.Wh,Ki.yH,Sr.oO,Ai.lW,Dr.pp,Dr.ib,Dr.yz,Dr.yK,zi.TO,zi.KE,cr.d,wo.VQ,wo.U0,Qi.gD,ln.ey,Vo.Rr,Tn.$V,wn.h,Ze.i8,Ze.rS]}),H})();var Bl=p(1365),Bo=p(9828),Ur=p(6529),dc=p(2501),Yr=p(7392),R1=p(266),Ul=p(9445);const ho=function(H){return{error:H}};function Qc(H,F){if(1&H&&e.GkF(0,14),2&H){const v=e.oxw(),V=e.MAs(18);e.Q6J("ngTemplateOutlet",V)("ngTemplateOutletContext",e.VKq(2,ho,v.errorMessage))}}function r0(H,F){if(1&H&&(e.TgZ(0,"mat-option",30),e._uU(1),e.qZA()),2&H){const v=F.$implicit;e.Q6J("value",v),e.xp6(1),e.hij(" ",v," ")}}function a0(H,F){if(1&H&&(e.TgZ(0,"mat-option",30),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&H){const v=F.$implicit,V=e.oxw(3);e.Q6J("value",v),e.xp6(1),e.hij(" ","ECL"===V.selNode.lnImplementation?e.lcZ(2,2,v):e.xi3(3,4,v,"_")," ")}}function k4(H,F){if(1&H&&(e.TgZ(0,"mat-option",30),e._uU(1),e.qZA()),2&H){const v=F.$implicit;e.Q6J("value",v),e.xp6(1),e.hij(" ","desc"===v?"Descending":"Ascending"," ")}}function uc(H,F){if(1&H&&(e.TgZ(0,"mat-option",33),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&H){const v=F.$implicit,V=e.oxw(2).$implicit,te=e.oxw(2);e.Q6J("value",v.column)("disabled",V.columnSelection.length<=2&&V.columnSelection.includes(v.column)),e.xp6(1),e.hij(" ",v.label?v.label:"ECL"===te.selNode.lnImplementation?e.lcZ(2,3,v.column):e.xi3(3,5,v.column,"_")," ")}}function _l(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"mat-form-field",31)(1,"mat-select",32),e.NdJ("ngModelChange",function(te){e.CHM(v);const je=e.oxw().$implicit;return e.KtG(je.columnSelection=te)})("selectionChange",function(){e.CHM(v);const te=e.oxw().$implicit,je=e.oxw(2);return e.KtG(je.oncolumnSelectionChange(te))}),e.YNc(2,uc,4,8,"mat-option",27),e.qZA()()}if(2&H){const v=e.oxw().$implicit,V=e.oxw().$implicit,te=e.oxw();e.xp6(1),e.hYB("name","",V.pageId,"",v.tableId,"-columns-selection"),e.Q6J("ngModel",v.columnSelection),e.xp6(1),e.Q6J("ngForOf",te.nodePageDefs[V.pageId][v.tableId].allowedColumns)}}function s0(H,F){if(1&H&&(e.TgZ(0,"mat-option",33),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&H){const v=F.$implicit,V=e.oxw().$implicit,te=e.oxw(2);e.Q6J("value",v.column)("disabled",V.columnSelectionSM.length<=1&&V.columnSelectionSM.includes(v.column)||V.columnSelectionSM.length>=3&&!V.columnSelectionSM.includes(v.column)),e.xp6(1),e.hij(" ",v.label?v.label:"ECL"===te.selNode.lnImplementation?e.lcZ(2,3,v.column):e.xi3(3,5,v.column,"_")," ")}}const vl=function(H){return{"ml-minus-1":H}};function qc(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",17)(1,"div",18)(2,"span",19),e._uU(3),e.ALo(4,"camelcaseWithReplace"),e.qZA(),e.TgZ(5,"mat-form-field",19)(6,"mat-select",20),e.NdJ("ngModelChange",function(te){const Ft=e.CHM(v).$implicit;return e.KtG(Ft.recordsPerPage=te)}),e.YNc(7,r0,2,2,"mat-option",21),e.qZA()(),e.TgZ(8,"mat-form-field",19)(9,"mat-select",22),e.NdJ("ngModelChange",function(te){const Ft=e.CHM(v).$implicit;return e.KtG(Ft.sortBy=te)}),e.YNc(10,a0,4,7,"mat-option",21),e.qZA()(),e.TgZ(11,"mat-form-field",19)(12,"mat-select",23),e.NdJ("ngModelChange",function(te){const Ft=e.CHM(v).$implicit;return e.KtG(Ft.sortOrder=te)}),e.YNc(13,k4,2,2,"mat-option",21),e.qZA()(),e.YNc(14,_l,3,4,"mat-form-field",24),e.TgZ(15,"mat-form-field",25)(16,"mat-select",26),e.NdJ("ngModelChange",function(te){const Ft=e.CHM(v).$implicit;return e.KtG(Ft.columnSelectionSM=te)}),e.YNc(17,s0,4,8,"mat-option",27),e.qZA()(),e.TgZ(18,"button",28),e.NdJ("click",function(){const je=e.CHM(v).$implicit,Ft=e.oxw().$implicit,Qt=e.oxw();return e.KtG(Qt.onTableReset(Ft.pageId,je))}),e.TgZ(19,"mat-icon",29),e._uU(20,"restore"),e.qZA()()()()}if(2&H){const v=F.$implicit,V=e.oxw().$implicit,te=e.oxw();e.xp6(3),e.hij("",e.xi3(4,20,v.tableId,"_"),":"),e.xp6(3),e.hYB("name","",V.pageId,"",v.tableId,"-page-size-options"),e.Q6J("disabled",te.nodePageDefs[V.pageId][v.tableId].disablePageSize)("ngModel",v.recordsPerPage),e.xp6(1),e.Q6J("ngForOf",te.pageSizeOptions),e.xp6(2),e.hYB("name","",V.pageId,"",v.tableId,"-sort-by"),e.Q6J("ngModel",v.sortBy),e.xp6(1),e.Q6J("ngForOf",v.columnSelection),e.xp6(2),e.hYB("name","",V.pageId,"",v.tableId,"-sort-order"),e.Q6J("ngModel",v.sortOrder),e.xp6(1),e.Q6J("ngForOf",te.sortOrders),e.xp6(1),e.Q6J("ngIf",te.screenSize!==te.screenSizeEnum.XS),e.xp6(2),e.hYB("name","",V.pageId,"",v.tableId,"-columns-selection-sm"),e.Q6J("ngModel",v.columnSelectionSM),e.xp6(1),e.Q6J("ngForOf",te.nodePageDefs[V.pageId][v.tableId].allowedColumns),e.xp6(2),e.Q6J("ngClass",e.VKq(23,vl,te.screenSize===te.screenSizeEnum.XS||te.screenSize===te.screenSizeEnum.SM))}}function T3(H,F){if(1&H&&e.GkF(0,14),2&H){const v=e.oxw(2),V=e.MAs(18);e.Q6J("ngTemplateOutlet",V)("ngTemplateOutletContext",e.VKq(2,ho,v.errorMessage))}}const fo=function(H){return{"error-border":H}};function yl(H,F){if(1&H&&(e.TgZ(0,"mat-expansion-panel",15)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.ALo(4,"camelcaseWithReplace"),e.qZA()(),e.YNc(5,qc,21,25,"div",16),e.YNc(6,T3,1,4,"ng-container",6),e.qZA()),2&H){const v=F.$implicit,V=e.oxw();e.Q6J("ngClass",e.VKq(7,fo,(null==V.errorMessage?null:V.errorMessage.page)===v.pageId)),e.xp6(3),e.Oqu(e.xi3(4,4,v.pageId,"_")),e.xp6(2),e.Q6J("ngForOf",v.tables),e.xp6(1),e.Q6J("ngIf",V.errorMessage&&(null==V.errorMessage?null:V.errorMessage.page)===v.pageId)}}function hc(H,F){if(1&H&&(e.TgZ(0,"mat-panel-title"),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&H){const v=e.oxw().error;e.xp6(1),e.hij("Page ",e.lcZ(2,1,v.page),"")}}function A3(H,F){if(1&H&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",37),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.qZA()()),2&H){const v=e.oxw().error;e.xp6(4),e.Oqu(v.message)}}function L3(H,F){if(1&H&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",37),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"titlecase"),e.qZA()()),2&H){const v=F.$implicit;e.xp6(4),e.AsE("Table ",e.lcZ(5,2,v.table)," ",v.message,"")}}const po=function(H){return{"error-border p-2":H}};function fc(H,F){if(1&H&&(e.TgZ(0,"div",29),e.YNc(1,hc,3,3,"mat-panel-title",34),e.TgZ(2,"mat-list",35),e.YNc(3,A3,5,1,"mat-list-item",34),e.YNc(4,L3,6,4,"mat-list-item",36),e.qZA()()),2&H){const v=F.error,V=e.oxw();e.Q6J("ngClass",e.VKq(4,po,"unknown"===V.errorMessage.page)),e.xp6(1),e.Q6J("ngIf","unknown"===V.errorMessage.page),e.xp6(2),e.Q6J("ngIf",v.message),e.xp6(1),e.Q6J("ngForOf",v.tables)}}let D3=(()=>{class H{constructor(v,V,te,je){this.logger=v,this.commonService=V,this.store=te,this.actions=je,this.faPenRuler=ji.SoD,this.faExclamationTriangle=ji.eHv,this.screenSize="",this.screenSizeEnum=$e.cu,this.pageSizeOptions=$e.TJ,this.pageSettings=[],this.initialPageSettings=[],this.defaultSettings=[],this.nodePageDefs={},this.sortOrders=$e.zZ,this.apiCallStatus=null,this.apiCallStatusEnum=$e.Bn,this.errorMessage=null,this.unSubs=[new Bi.x,new Bi.x,new Bi.x,new Bi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(zr.dT).pipe((0,en.R)(this.unSubs[0])).subscribe(v=>{switch(this.selNode=v,this.logger.info(this.selNode),this.selNode.lnImplementation){case"CLN":this.initialPageSettings=Object.assign([],$e.gG),this.defaultSettings=Object.assign([],$e.gG),this.nodePageDefs=$e.At,this.store.select(Bo.AS).pipe((0,en.R)(this.unSubs[1]),(0,Bl.M)(this.store.select(Bo.lw))).subscribe(([V,te])=>{const je=JSON.parse(JSON.stringify(V.pageSettings));if(this.errorMessage=null,this.apiCallStatus=V.apiCallStatus,this.apiCallStatus.status===$e.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=je,this.initialPageSettings=je;else{if(!te?.enableOffers){const Ft=je.find(xi=>"transactions"===xi.pageId),Qt=Ft?.tables.findIndex(xi=>"offers"===xi.tableId),ci=Ft?.tables.findIndex(xi=>"offer_bookmarks"===xi.tableId);Qt>-1&&Ft?.tables.splice(Qt,1),ci>-1&&Ft?.tables.splice(ci,1)}if(!te?.enablePeerswap){const Ft=je.findIndex(Qt=>"peerswap"===Qt.pageId);Ft>-1&&je.splice(Ft,1)}this.pageSettings=je,this.initialPageSettings=je}this.logger.info(je)}),this.actions.pipe((0,en.R)(this.unSubs[2]),(0,Xn.h)(V=>V.type===$e.AB.UPDATE_API_CALL_STATUS_CLN||V.type===$e.AB.SAVE_PAGE_SETTINGS_CLN)).subscribe(V=>{V.type===$e.AB.UPDATE_API_CALL_STATUS_CLN&&V.payload.status===$e.Bn.ERROR&&"SavePageSettings"===V.payload.action&&(this.errorMessage=JSON.parse(V.payload.message))});break;case"ECL":this.initialPageSettings=Object.assign([],$e.c3),this.defaultSettings=Object.assign([],$e.c3),this.nodePageDefs=$e.Xk,this.store.select(dc.nF).pipe((0,en.R)(this.unSubs[1]),(0,Bl.M)(this.store.select(dc.LR))).subscribe(([V,te])=>{const je=JSON.parse(JSON.stringify(V.pageSettings));this.errorMessage=null,this.apiCallStatus=V.apiCallStatus,this.apiCallStatus.status===$e.Bn.ERROR?(this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=je,this.initialPageSettings=je):(this.pageSettings=je,this.initialPageSettings=je),this.logger.info(je)}),this.actions.pipe((0,en.R)(this.unSubs[2]),(0,Xn.h)(V=>V.type===$e.lr.UPDATE_API_CALL_STATUS_ECL||V.type===$e.lr.SAVE_PAGE_SETTINGS_ECL)).subscribe(V=>{V.type===$e.lr.UPDATE_API_CALL_STATUS_ECL&&V.payload.status===$e.Bn.ERROR&&"SavePageSettings"===V.payload.action&&(this.errorMessage=JSON.parse(V.payload.message))});break;default:this.initialPageSettings=Object.assign([],$e.gK),this.defaultSettings=Object.assign([],$e.gK),this.nodePageDefs=$e.hG,this.store.select(Ur.Pr).pipe((0,en.R)(this.unSubs[1]),(0,Bl.M)(this.store.select(Ur.$k))).subscribe(([V,te])=>{const je=JSON.parse(JSON.stringify(V.pageSettings));if(this.errorMessage=null,this.apiCallStatus=V.apiCallStatus,this.apiCallStatus.status===$e.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=je,this.initialPageSettings=je;else{if(!te?.swapServerUrl||""===te.swapServerUrl.trim()){const Ft=je.findIndex(Qt=>"loop"===Qt.pageId);Ft>-1&&je.splice(Ft,1)}if(!te?.boltzServerUrl||""===te.boltzServerUrl.trim()){const Ft=je.findIndex(Qt=>"boltz"===Qt.pageId);Ft>-1&&je.splice(Ft,1)}if(!te?.enablePeerswap){const Ft=je.findIndex(Qt=>"peerswap"===Qt.pageId);Ft>-1&&je.splice(Ft,1)}this.pageSettings=je,this.initialPageSettings=je}this.logger.info(je)}),this.actions.pipe((0,en.R)(this.unSubs[2]),(0,Xn.h)(V=>V.type===$e.uR.UPDATE_API_CALL_STATUS_LND||V.type===$e.uR.SAVE_PAGE_SETTINGS_LND)).subscribe(V=>{V.type===$e.uR.UPDATE_API_CALL_STATUS_LND&&V.payload.status===$e.Bn.ERROR&&"SavePageSettings"===V.payload.action&&(this.errorMessage=JSON.parse(V.payload.message))})}})}oncolumnSelectionChange(v){v.columnSelection&&(!v.sortBy||!v.columnSelection.includes(v.sortBy))&&(v.sortBy=v.columnSelection[0])}onUpdatePageSettings(){if(this.pageSettings.reduce((v,V)=>v||V.tables.reduce((te,je)=>!(je.recordsPerPage&&je.sortBy&&je.sortOrder&&je.columnSelection&&je.columnSelection.length>=2),!1),!1))return!0;switch(this.errorMessage="",this.selNode.lnImplementation){case"CLN":this.store.dispatch((0,In.eF)({payload:this.pageSettings}));break;case"ECL":this.store.dispatch((0,mn.eF)({payload:this.pageSettings}));break;default:this.store.dispatch((0,er.eF)({payload:this.pageSettings}))}}onTableReset(v,V){const te=this.pageSettings.findIndex(Qt=>Qt.pageId===v),je=this.pageSettings[te].tables.findIndex(Qt=>Qt.tableId===V.tableId),Ft=this.defaultSettings.find(Qt=>Qt.pageId===v)?.tables.find(Qt=>Qt.tableId===V.tableId)||this.pageSettings.find(Qt=>Qt.pageId===v)?.tables.find(Qt=>Qt.tableId===V.tableId);this.pageSettings[te].tables.splice(je,1,Ft)}onResetPageSettings(v){"current"===v?(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(v=>{v.next(),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(ui.mQ),e.Y36($r.v),e.Y36(Ni.yh),e.Y36(xs.eX))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-page-settings"]],decls:19,vars:3,consts:[["fxLayout","column","fxFlex","100","id","head",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["displayMode","flat","multi","false"],["fxLayout","column","class","flat-expansion-panel mt-1","expanded","false",3,"ngClass",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","8",1,"mr-1",3,"click"],["mat-stroked-button","","color","primary","tabindex","9",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["errorObjectBlock",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","column","expanded","false",1,"flat-expansion-panel","mt-1",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch","class","padding-gap-x-large table-setting-row",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large","table-setting-row"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","10"],["placeholder","Records/Page","tabindex","2","required","",3,"disabled","ngModel","name","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Sort By","tabindex","3","required","",3,"ngModel","name","ngModelChange"],["placeholder","Sort Order","tabindex","4","required","",3,"ngModel","name","ngModelChange"],["fxFlex","35","matTooltip","Select a minimum of 2 columns",4,"ngIf"],["fxFlex","15","matTooltip","Select between 1 and 3 columns"],["placeholder","Column Selection (Mobile Resolution)","tabindex","5","multiple","","required","",3,"ngModel","name","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","type","button","tabindex","7","matTooltip","Reset to Default",3,"click"],[3,"ngClass"],[3,"value"],["fxFlex","35","matTooltip","Select a minimum of 2 columns"],["placeholder","Column selection (Desktop Resolution)","tabindex","6","multiple","","required","",3,"ngModel","name","ngModelChange","selectionChange"],[3,"value","disabled"],[4,"ngIf"],["role","list"],[4,"ngFor","ngForOf"],[1,"ml-1","icon-small","red"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Grid Settings"),e.qZA()(),e.YNc(7,Qc,1,4,"ng-container",6),e.TgZ(8,"mat-accordion",7),e.YNc(9,yl,7,9,"mat-expansion-panel",8),e.qZA()(),e.TgZ(10,"div",9)(11,"button",10),e.NdJ("click",function(){return V.onResetPageSettings("current")}),e._uU(12,"Reset"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return V.onResetPageSettings("default")}),e._uU(14,"Reset to Default"),e.qZA(),e.TgZ(15,"button",12),e.NdJ("click",function(){return V.onUpdatePageSettings()}),e._uU(16,"Save"),e.qZA()()(),e.YNc(17,fc,5,6,"ng-template",null,13,e.W1O)),2&v&&(e.xp6(4),e.Q6J("icon",V.faPenRuler),e.xp6(3),e.Q6J("ngIf",V.errorMessage&&"unknown"===V.errorMessage.page),e.xp6(2),e.Q6J("ngForOf",V.pageSettings))},dependencies:[Ze.mk,Ze.sg,Ze.O5,Ze.tP,ri._Y,ri.JJ,ri.JL,ri.Q7,ri.On,ri.F,_a.BN,Ki.xw,Ki.Wh,Ki.yH,Sr.oO,Ai.lW,Dr.pp,Dr.ib,Dr.yz,Dr.yK,Yr.Hw,zi.KE,Fo.i$,Fo.Tg,Qi.gD,ln.ey,R1.gM,Tn.$V,Ze.rS,Ul.D3,Ul.i1],styles:[".table-setting-row[_ngcontent-%COMP%]:last-child{margin-bottom:3rem}.table-setting-row[_ngcontent-%COMP%]:not(:first-child){margin:3rem 0}"]}),H})();function ch(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.activeLink=te.links[0].link)}),e._uU(1),e.qZA()}if(2&H){const v=e.oxw();e.s9C("routerLink",v.links[0].link),e.Q6J("active",v.activeLink===v.links[0].link),e.xp6(1),e.Oqu(v.links[0].name)}}const o0=function(){return{initial:!1}};function N4(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.activeLink=te.links[1].link)}),e._uU(1),e.qZA()}if(2&H){const v=e.oxw();e.s9C("routerLink",v.links[1].link),e.Q6J("active",v.activeLink===v.links[1].link)("state",e.DdM(4,o0)),e.xp6(1),e.Oqu(v.links[1].name)}}function R4(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.activeLink=te.links[2].link)}),e._uU(1),e.qZA()}if(2&H){const v=e.oxw();e.s9C("routerLink",v.links[2].link),e.Q6J("active",v.activeLink===v.links[2].link),e.xp6(1),e.Oqu(v.links[2].name)}}let H4=(()=>{class H{constructor(v,V,te){this.store=v,this.router=V,this.activatedRoute=te,this.faLayerGroup=ji.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"peerswap",name:"Peerswap"}],this.activeLink="",this.unSubs=[new Bi.x,new Bi.x,new Bi.x]}ngOnInit(){const v=this.links.find(V=>this.router.url.includes(V.link));this.activeLink=v?v.link:this.links[0].link,this.router.events.pipe((0,en.R)(this.unSubs[0]),(0,Xn.h)(V=>V instanceof Bn.Av)).subscribe({next:V=>{const te=this.links.find(je=>V.urlAfterRedirects.includes(je.link));this.activeLink="CLN"===this.selNode.lnImplementation.toUpperCase()?this.links[2].link:te?te.link:this.links[0].link}}),this.store.select(zr.dT).pipe((0,en.R)(this.unSubs[1])).subscribe(V=>{this.selNode=V,"CLN"===this.selNode.lnImplementation.toUpperCase()&&(this.activeLink=this.links[2].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(Ni.yh),e.Y36(Bn.F0),e.Y36(Bn.gz))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-services-settings"]],decls:13,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Services"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),e.YNc(8,ch,2,3,"div",6),e.YNc(9,N4,2,5,"div",7),e.YNc(10,R4,2,3,"div",6),e.qZA(),e.TgZ(11,"div",8),e._UZ(12,"router-outlet"),e.qZA()()()()),2&v&&(e.xp6(1),e.Q6J("icon",V.faLayerGroup),e.xp6(7),e.Q6J("ngIf","LND"===(null==V.selNode||null==V.selNode.lnImplementation?null:V.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","LND"===(null==V.selNode||null==V.selNode.lnImplementation?null:V.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==V.selNode||null==V.selNode.lnImplementation?null:V.selNode.lnImplementation.toUpperCase())))},dependencies:[Ze.O5,_a.BN,Ki.xw,Ki.Wh,Ki.yH,tr.a8,tr.dn,ds.BU,ds.Nj,Bn.lC,Bn.rH]}),H})();const F4=["form"];function V4(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop server URL is required."),e.qZA())}function pc(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the loop server url with 'https://'."),e.qZA())}function H1(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop macaroon path is required."),e.qZA())}let F1=(()=>{class H{constructor(v,V){this.logger=v,this.store=V,this.faInfoCircle=ji.sqG,this.enableLoop=!1,this.unSubs=[new Bi.x,new Bi.x]}ngOnInit(){this.store.select(zr.dT).pipe((0,en.R)(this.unSubs[0])).subscribe(v=>{this.selNode=v,this.enableLoop=!(!v.settings.swapServerUrl||""===v.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(v)})}onEnableServiceChanged(v){this.enableLoop=v.checked,this.enableLoop||(this.selNode.authentication.swapMacaroonPath="",this.selNode.settings.swapServerUrl="")}onUpdateService(){if(this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableLoop&&(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim()||!this.selNode.authentication.swapMacaroonPath||""===this.selNode.authentication.swapMacaroonPath.trim()))return!0;this.logger.info(this.selNode),this.store.dispatch((0,ai.jS)({payload:{uiMessage:$e.m6.UPDATE_LOOP_SETTINGS,service:$e.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,er.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,In.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,mn.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=!(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim())}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(ui.mQ),e.Y36(Ni.yh))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-loop-service-settings"]],viewQuery:function(v,V){if(1&v&&e.Gf(F4,7),2&v){let te;e.iGM(te=e.CRH())&&(V.form=te.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/lightninglabs/loop","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Loop Server URL","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Loop Macaroon Path","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(v,V){if(1&v&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"loopd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(je){return V.enableLoop=je})("change",function(je){return V.onEnableServiceChanged(je)}),e._uU(16,"Enable Loop Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"input",9,10),e.NdJ("ngModelChange",function(je){return V.selNode.settings.swapServerUrl=je}),e.qZA(),e.TgZ(20,"mat-hint"),e._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),e.qZA(),e.YNc(22,V4,2,0,"mat-error",11),e.YNc(23,pc,2,0,"mat-error",11),e.qZA(),e.TgZ(24,"mat-form-field")(25,"input",12),e.NdJ("ngModelChange",function(je){return V.selNode.authentication.swapMacaroonPath=je}),e.qZA(),e.TgZ(26,"mat-hint"),e._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),e.qZA(),e.YNc(28,H1,2,0,"mat-error",11),e.qZA()()(),e.TgZ(29,"div",13)(30,"button",14),e.NdJ("click",function(){return V.onReset()}),e._uU(31,"Reset"),e.qZA(),e.TgZ(32,"button",15),e.NdJ("click",function(){return V.onUpdateService()}),e._uU(33,"Update"),e.qZA()()()),2&v){const te=e.MAs(19);e.xp6(2),e.Q6J("icon",V.faInfoCircle),e.xp6(13),e.Q6J("ngModel",V.enableLoop),e.xp6(3),e.Q6J("ngModel",V.selNode.settings.swapServerUrl)("required",V.enableLoop)("disabled",!V.enableLoop),e.xp6(4),e.Q6J("ngIf",!V.selNode.settings.swapServerUrl&&V.enableLoop),e.xp6(1),e.Q6J("ngIf",(null==te||null==te.errors?null:te.errors.invalid)&&V.enableLoop),e.xp6(2),e.Q6J("ngModel",V.selNode.authentication.swapMacaroonPath)("required",V.enableLoop)("disabled",!V.enableLoop),e.xp6(3),e.Q6J("ngIf",!V.selNode.authentication.swapMacaroonPath&&V.enableLoop)}},dependencies:[Ze.O5,ri._Y,ri.Fj,ri.JJ,ri.JL,ri.Q7,ri.On,ri.F,_a.BN,Ki.xw,Ki.Wh,Ki.yH,Ai.lW,zi.TO,zi.KE,zi.bx,$n.Nt,Vo.Rr,Tn.$V,wn.h],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),H})();const Jc=["form"];function Gl(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz server URL is required."),e.qZA())}function I3(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the boltz server url with 'https://'."),e.qZA())}function l0(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz macaroon path is required."),e.qZA())}let O3=(()=>{class H{constructor(v,V){this.logger=v,this.store=V,this.faInfoCircle=ji.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new Bi.x,new Bi.x]}ngOnInit(){this.store.select(zr.dT).pipe((0,en.R)(this.unSubs[0])).subscribe(v=>{this.selNode=v,this.enableBoltz=!(!v.settings.boltzServerUrl||""===v.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(v)})}onEnableServiceChanged(v){this.enableBoltz=v.checked,this.enableBoltz||(this.macaroonPath="",this.serverUrl="")}onUpdateService(){if(this.serverUrl&&""!==this.serverUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableBoltz&&(!this.serverUrl||""===this.serverUrl.trim()||!this.serverUrl.includes("https://")||!this.macaroonPath||""===this.macaroonPath.trim()))return!0;this.logger.info(this.selNode),this.selNode.settings.boltzServerUrl=this.serverUrl,this.selNode.authentication.boltzMacaroonPath=this.macaroonPath,this.store.dispatch((0,ai.jS)({payload:{uiMessage:$e.m6.UPDATE_BOLTZ_SETTINGS,service:$e.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,er.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,In.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,mn.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.serverUrl=this.selNode.settings.boltzServerUrl||"",this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.enableBoltz=!(!this.serverUrl||""===this.serverUrl.trim())}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(ui.mQ),e.Y36(Ni.yh))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(v,V){if(1&v&&e.Gf(Jc,7),2&v){let te;e.iGM(te=e.CRH())&&(V.form=te.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://lnd.docs.boltz.exchange/en/latest/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Boltz Server URL","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Boltz Macaroon Path","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(v,V){if(1&v&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"boltzd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(je){return V.enableBoltz=je})("change",function(je){return V.onEnableServiceChanged(je)}),e._uU(16,"Enable Boltz Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"input",9,10),e.NdJ("ngModelChange",function(je){return V.serverUrl=je}),e.qZA(),e.TgZ(20,"mat-hint"),e._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),e.qZA(),e.YNc(22,Gl,2,0,"mat-error",11),e.YNc(23,I3,2,0,"mat-error",11),e.qZA(),e.TgZ(24,"mat-form-field")(25,"input",12),e.NdJ("ngModelChange",function(je){return V.macaroonPath=je}),e.qZA(),e.TgZ(26,"mat-hint"),e._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),e.qZA(),e.YNc(28,l0,2,0,"mat-error",11),e.qZA()()(),e.TgZ(29,"div",13)(30,"button",14),e.NdJ("click",function(){return V.onReset()}),e._uU(31,"Reset"),e.qZA(),e.TgZ(32,"button",15),e.NdJ("click",function(){return V.onUpdateService()}),e._uU(33,"Update"),e.qZA()()()),2&v){const te=e.MAs(19);e.xp6(2),e.Q6J("icon",V.faInfoCircle),e.xp6(13),e.Q6J("ngModel",V.enableBoltz),e.xp6(3),e.Q6J("ngModel",V.serverUrl)("required",V.enableBoltz)("disabled",!V.enableBoltz),e.xp6(4),e.Q6J("ngIf",(!V.serverUrl||""===V.serverUrl.trim())&&V.enableBoltz),e.xp6(1),e.Q6J("ngIf",(null==te||null==te.errors?null:te.errors.invalid)&&V.enableBoltz),e.xp6(2),e.Q6J("ngModel",V.macaroonPath)("required",V.enableBoltz)("disabled",!V.enableBoltz),e.xp6(3),e.Q6J("ngIf",!V.macaroonPath&&V.enableBoltz)}},dependencies:[Ze.O5,ri._Y,ri.Fj,ri.JJ,ri.JL,ri.Q7,ri.On,ri.F,_a.BN,Ki.xw,Ki.Wh,Ki.yH,Ai.lW,zi.TO,zi.KE,zi.bx,$n.Nt,Vo.Rr,Tn.$V,wn.h],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),H})(),z4=(()=>{class H{constructor(){}}return H.\u0275fac=function(v){return new(v||H)},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-ln-services"]],decls:1,vars:0,template:function(v,V){1&v&&e._UZ(0,"router-outlet")},dependencies:[Bn.lC]}),H})();var Zl=p(2615),c0=p(9107),Xc=p(8739),Uo=p(6308),mr=p(671),P3=p(3162);function bl(H,F){if(1&H&&(e.TgZ(0,"mat-option",37),e._uU(1),e.qZA()),2&H){const v=F.$implicit,V=e.oxw();e.Q6J("value",v),e.xp6(1),e.Oqu(V.getLabel(v))}}function d0(H,F){1&H&&e._UZ(0,"mat-progress-bar",38)}function V1(H,F){1&H&&(e.TgZ(0,"th",39),e._uU(1,"State"),e.qZA())}function u0(H,F){if(1&H&&(e.TgZ(0,"td",40),e._uU(1),e.qZA()),2&H){const v=F.$implicit,V=e.oxw();e.xp6(1),e.Oqu(V.LoopStateEnum[null==v?null:v.state])}}function h0(H,F){1&H&&(e.TgZ(0,"th",39),e._uU(1,"Initiation Time"),e.qZA())}function tl(H,F){if(1&H&&(e.TgZ(0,"td",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&H){const v=F.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,(null==v?null:v.initiation_time)/1e6,"dd/MMM/y HH:mm"))}}function f0(H,F){1&H&&(e.TgZ(0,"th",39),e._uU(1,"Last Update Time"),e.qZA())}function z1(H,F){if(1&H&&(e.TgZ(0,"td",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&H){const v=F.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,(null==v?null:v.last_update_time)/1e6,"dd/MMM/y HH:mm"))}}function k3(H,F){1&H&&(e.TgZ(0,"th",41),e._uU(1,"Amount (Sats)"),e.qZA())}function Go(H,F){if(1&H&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&H){const v=F.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==v?null:v.amt))}}function B4(H,F){1&H&&(e.TgZ(0,"th",41),e._uU(1,"Cost Server (Sats)"),e.qZA())}function U4(H,F){if(1&H&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&H){const v=F.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==v?null:v.cost_server))}}function G4(H,F){1&H&&(e.TgZ(0,"th",41),e._uU(1,"Cost Offchain (Sats)"),e.qZA())}function N3(H,F){if(1&H&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&H){const v=F.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==v?null:v.cost_offchain))}}function p0(H,F){1&H&&(e.TgZ(0,"th",41),e._uU(1,"Cost Onchain (Sats)"),e.qZA())}function m0(H,F){if(1&H&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&H){const v=F.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==v?null:v.cost_onchain)," ")}}function R3(H,F){1&H&&(e.TgZ(0,"th",39),e._uU(1,"HTLC Address"),e.qZA())}const B1=function(H){return{width:H}};function mc(H,F){if(1&H&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&H){const v=F.$implicit,V=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,B1,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.htlc_address)}}function Wl(H,F){1&H&&(e.TgZ(0,"th",39),e._uU(1,"ID"),e.qZA())}function Z4(H,F){if(1&H&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&H){const v=F.$implicit,V=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,B1,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.id)}}function fs(H,F){1&H&&(e.TgZ(0,"th",39),e._uU(1,"ID (Bytes)"),e.qZA())}function U1(H,F){if(1&H&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&H){const v=F.$implicit,V=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,B1,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.id_bytes)}}function H3(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",48),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.onDownloadCSV())}),e._uU(5,"Download CSV"),e.qZA()()()()}}function G1(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"td",49)(1,"button",50),e.NdJ("click",function(te){const Ft=e.CHM(v).$implicit,Qt=e.oxw();return e.KtG(Qt.onSwapClick(Ft,te))}),e._uU(2,"View Info"),e.qZA()()}}function $a(H,F){if(1&H&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&H){const v=e.oxw(2);e.xp6(1),e.Oqu(v.emptyTableMessage)}}function xl(H,F){if(1&H&&(e.TgZ(0,"td",51),e.YNc(1,$a,2,1,"p",52),e.qZA()),2&H){const v=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=v.listSwaps&&v.listSwaps.data)||(null==v.listSwaps||null==v.listSwaps.data?null:v.listSwaps.data.length)<1)}}const $c=function(H){return{"display-none":H}};function gc(H,F){if(1&H&&e._UZ(0,"tr",53),2&H){const v=e.oxw();e.Q6J("ngClass",e.VKq(1,$c,(null==v.listSwaps?null:v.listSwaps.data)&&(null==v.listSwaps||null==v.listSwaps.data?null:v.listSwaps.data.length)>0))}}function F3(H,F){1&H&&e._UZ(0,"tr",54)}function Z1(H,F){1&H&&e._UZ(0,"tr",55)}const Fa=function(){return["all"]},W1=function(H){return{"overflow-auto error-border":H,"overflow-auto":!0}},V3=function(){return["no_swap"]};let gr=(()=>{class H{constructor(v,V,te,je,Ft,Qt){this.logger=v,this.commonService=V,this.store=te,this.loopService=je,this.datePipe=Ft,this.camelCaseWithReplace=Qt,this.selectedSwapType=$e.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=$e.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="loop",this.tableSetting={tableId:"loop",recordsPerPage:$e.IV,sortBy:"initiation_time",sortOrder:$e.Pi.DESCENDING},this.LoopStateEnum=$e.Fq,this.faHistory=ji.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.listSwaps=new mr.by([]),this.selFilter="",this.pageSize=$e.IV,this.pageSizeOptions=$e.TJ,this.screenSize="",this.screenSizeEnum=$e.cu,this.unSubs=[new Bi.x,new Bi.x,new Bi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(Ur.Pr).pipe((0,en.R)(this.unSubs[0])).subscribe(v=>{this.tableSetting=v.pageSettings.find(V=>V.pageId===this.PAGE_ID)?.tables.find(V=>V.tableId===this.tableSetting.tableId)||$e.gK.find(V=>V.pageId===this.PAGE_ID)?.tables.find(V=>V.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===$e.cu.XS||this.screenSize===$e.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:$e.IV,this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(v){this.swapCaption=this.selectedSwapType===$e.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}getLabel(v){const V=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(te=>te.column===v);return V?V.label?V.label:this.camelCaseWithReplace.transform(V.column,"_"):this.commonService.titleCase(v)}setFilterPredicate(){this.listSwaps.filterPredicate=(v,V)=>{let te="";switch(this.selFilterBy){case"all":te=JSON.stringify(v).toLowerCase();break;case"state":te=v?.state?this.LoopStateEnum[v?.state]:"";break;case"initiation_time":case"last_update_time":te=this.datePipe.transform(new Date((v[this.selFilterBy]||0)/1e6),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:te=typeof v[this.selFilterBy]>"u"?"":"string"==typeof v[this.selFilterBy]?v[this.selFilterBy].toLowerCase():"boolean"==typeof v[this.selFilterBy]?v[this.selFilterBy]?"yes":"no":v[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===te.indexOf(V):te.includes(V)}}onSwapClick(v,V){this.loopService.getSwap(v.id_bytes?.replace(/\//g,"_")?.replace(/\+/g,"-")||"").pipe((0,en.R)(this.unSubs[1])).subscribe(te=>{this.store.dispatch((0,ai.qR)({payload:{data:{type:$e.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:$e.Fq[te.state||""],title:"Status",width:50,type:$e.Gi.STRING},{key:"amt",value:te.amt,title:"Amount (Sats)",width:50,type:$e.Gi.NUMBER}],[{key:"initiation_time",value:(te.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:$e.Gi.DATE_TIME},{key:"last_update_time",value:(te.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:$e.Gi.DATE_TIME}],[{key:"cost_server",value:te.cost_server,title:"Server Cost (Sats)",width:33,type:$e.Gi.NUMBER},{key:"cost_offchain",value:te.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:$e.Gi.NUMBER},{key:"cost_onchain",value:te.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:$e.Gi.NUMBER}],[{key:"id_bytes",value:te.id_bytes,title:"ID",width:100,type:$e.Gi.STRING}],[{key:"htlc_address",value:te.htlc_address,title:"HTLC Address",width:100,type:$e.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(v){this.listSwaps=new mr.by([...v]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(V,te)=>V[te]&&isNaN(V[te])?V[te].toLocaleLowerCase():V[te]?+V[te]:null,this.listSwaps.sort?.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===$e.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(ui.mQ),e.Y36($r.v),e.Y36(Ni.yh),e.Y36(c0.W),e.Y36(Ze.uU),e.Y36(Ul.D3))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-swaps"]],viewQuery:function(v,V){if(1&v&&(e.Gf(Uo.YE,5),e.Gf(Xc.NW,5)),2&v){let te;e.iGM(te=e.CRH())&&(V.sort=te.first),e.iGM(te=e.CRH())&&(V.paginator=te.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Xc.ye,useValue:(0,$e.pt)("Swaps")}]),e.TTD],decls:56,vars:18,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","initiation_time"],["matColumnDef","last_update_time"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","htlc_address"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(v,V){1&v&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-select",7),e.NdJ("ngModelChange",function(je){return V.selFilterBy=je})("selectionChange",function(){return V.selFilter="",V.applyFilter()}),e.YNc(9,bl,2,2,"mat-option",8),e.qZA()(),e.TgZ(10,"mat-form-field",6)(11,"input",9),e.NdJ("ngModelChange",function(je){return V.selFilter=je})("input",function(){return V.applyFilter()})("keyup",function(){return V.applyFilter()}),e.qZA()()()(),e.TgZ(12,"div",10)(13,"div",11),e.YNc(14,d0,1,0,"mat-progress-bar",12),e.TgZ(15,"table",13,14),e.ynx(17,15),e.YNc(18,V1,2,0,"th",16),e.YNc(19,u0,2,1,"td",17),e.BQk(),e.ynx(20,18),e.YNc(21,h0,2,0,"th",16),e.YNc(22,tl,3,4,"td",17),e.BQk(),e.ynx(23,19),e.YNc(24,f0,2,0,"th",16),e.YNc(25,z1,3,4,"td",17),e.BQk(),e.ynx(26,20),e.YNc(27,k3,2,0,"th",21),e.YNc(28,Go,4,3,"td",17),e.BQk(),e.ynx(29,22),e.YNc(30,B4,2,0,"th",21),e.YNc(31,U4,4,3,"td",17),e.BQk(),e.ynx(32,23),e.YNc(33,G4,2,0,"th",21),e.YNc(34,N3,4,3,"td",17),e.BQk(),e.ynx(35,24),e.YNc(36,p0,2,0,"th",21),e.YNc(37,m0,4,3,"td",17),e.BQk(),e.ynx(38,25),e.YNc(39,R3,2,0,"th",16),e.YNc(40,mc,4,4,"td",17),e.BQk(),e.ynx(41,26),e.YNc(42,Wl,2,0,"th",16),e.YNc(43,Z4,4,4,"td",17),e.BQk(),e.ynx(44,27),e.YNc(45,fs,2,0,"th",16),e.YNc(46,U1,4,4,"td",17),e.BQk(),e.ynx(47,28),e.YNc(48,H3,6,0,"th",29),e.YNc(49,G1,3,0,"td",30),e.BQk(),e.ynx(50,31),e.YNc(51,xl,2,1,"td",32),e.BQk(),e.YNc(52,gc,1,3,"tr",33),e.YNc(53,F3,1,0,"tr",34),e.YNc(54,Z1,1,0,"tr",35),e.qZA(),e._UZ(55,"mat-paginator",36),e.qZA()()()),2&v&&(e.xp6(3),e.Q6J("icon",V.faHistory),e.xp6(2),e.hij("",V.swapCaption," History"),e.xp6(3),e.Q6J("ngModel",V.selFilterBy),e.xp6(1),e.Q6J("ngForOf",e.DdM(14,Fa).concat(V.displayedColumns.slice(0,-1))),e.xp6(2),e.Q6J("ngModel",V.selFilter),e.xp6(3),e.Q6J("ngIf",!0===V.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",V.listSwaps)("ngClass",e.VKq(15,W1,"error"===V.flgLoading[0])),e.xp6(37),e.Q6J("matFooterRowDef",e.DdM(17,V3)),e.xp6(1),e.Q6J("matHeaderRowDef",V.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",V.displayedColumns),e.xp6(1),e.Q6J("pageSize",V.pageSize)("pageSizeOptions",V.pageSizeOptions)("showFirstLastButtons",V.screenSize!==V.screenSizeEnum.XS))},dependencies:[Ze.mk,Ze.sg,Ze.O5,Ze.PC,ri.Fj,ri.JJ,ri.On,_a.BN,Ki.xw,Ki.Wh,Ki.yH,Sr.oO,Sr.Zl,Ai.lW,zi.KE,$n.Nt,P3.pW,Qi.gD,Qi.$L,ln.ey,Uo.YE,Uo.nU,mr.BZ,mr.fO,mr.as,mr.w1,mr.Dz,mr.nj,mr.mD,mr.Ke,mr.ge,mr.ev,mr.yh,mr.XQ,mr.Gk,mr.Q2,Xc.NW,Tn.$V,Ze.JJ,Ze.uU]}),H})();const z3=function(H){return["../",H]};function _c(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){const je=e.CHM(v).$implicit,Ft=e.oxw();return e.KtG(Ft.onSelectedIndexChange(je))}),e._uU(1),e.qZA()}if(2&H){const v=F.$implicit,V=e.oxw();e.Q6J("active",V.activeTab.link===v.link)("routerLink",e.VKq(3,z3,v.link)),e.xp6(1),e.Oqu(v.name)}}let il=(()=>{class H{constructor(v,V,te){this.router=v,this.loopService=V,this.store=te,this.faInfinity=ji.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=$e.$I,this.selectedSwapType=$e.$I.LOOP_OUT,this.storedSwaps=[],this.filteredSwaps=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"loopout",name:"Loop Out"},{link:"loopin",name:"Loop In"}],this.activeTab=this.links[0],this.unSubs=[new Bi.x,new Bi.x,new Bi.x,new Bi.x]}ngOnInit(){this.loopService.listSwaps();const v=this.links.find(V=>this.router.url.includes(V.link));this.activeTab=v||this.links[0],this.selectedSwapType=v&&"loopin"===v.link?$e.$I.LOOP_IN:$e.$I.LOOP_OUT,this.router.events.pipe((0,en.R)(this.unSubs[0]),(0,Xn.h)(V=>V instanceof Bn.Av)).subscribe({next:V=>{const te=this.links.find(je=>V.urlAfterRedirects.includes(je.link));this.activeTab=te||this.links[0],this.selectedSwapType=te&&"loopin"===te.link?$e.$I.LOOP_IN:$e.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,en.R)(this.unSubs[1])).subscribe({next:V=>{this.flgLoading[0]=!1,this.storedSwaps=V,this.filteredSwaps=this.storedSwaps?.filter(te=>te.type===this.selectedSwapType)},error:V=>{this.flgLoading[0]="error",this.emptyTableMessage=V.message?V.message:"No loop "+(this.selectedSwapType===$e.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(v){this.selectedSwapType="loopin"===v.link?$e.$I.LOOP_IN:$e.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps?.filter(V=>V.type===this.selectedSwapType)}onLoop(v){v===$e.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,en.R)(this.unSubs[2])).subscribe({next:V=>{this.store.dispatch((0,ai.qR)({payload:{data:{minQuote:V[0],maxQuote:V[1],direction:v,component:Zl.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,en.R)(this.unSubs[3])).subscribe({next:V=>{this.store.dispatch((0,ai.qR)({payload:{data:{minQuote:V[0],maxQuote:V[1],direction:v,component:Zl.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(Bn.F0),e.Y36(c0.W),e.Y36(Ni.yh))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-loop"]],decls:13,vars:7,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Loop"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),e.YNc(8,_c,2,5,"div",6),e.qZA(),e.TgZ(9,"div",7)(10,"button",8),e.NdJ("click",function(){return V.onLoop(V.selectedSwapType)}),e._uU(11),e.qZA()(),e._UZ(12,"rtl-swaps",9),e.qZA()()()),2&v&&(e.xp6(1),e.Q6J("icon",V.faInfinity),e.xp6(7),e.Q6J("ngForOf",V.links),e.xp6(3),e.hij("Start ",V.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",V.selectedSwapType)("swapsData",V.filteredSwaps)("flgLoading",V.flgLoading)("emptyTableMessage",V.emptyTableMessage))},dependencies:[Ze.sg,_a.BN,Ki.xw,Ki.Wh,Ki.yH,Ai.lW,tr.a8,tr.dn,ds.BU,ds.Nj,Bn.rH,gr]}),H})();var Y1=p(7772),g0=p(1135),_0=p(2843),vc=p(262),Va=p(2340),e1=p(1786);let yc=(()=>{class H{constructor(v,V,te,je){this.httpClient=v,this.logger=V,this.store=te,this.commonService=je,this.swapUrl="",this.swaps={},this.swapsChanged=new g0.X({}),this.unSubs=[new Bi.x,new Bi.x,new Bi.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,ai.ac)({payload:$e.m6.GET_BOLTZ_SWAPS})),this.swapUrl=Va.T5+Va.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,en.R)(this.unSubs[0])).subscribe({next:v=>{this.store.dispatch((0,ai.uO)({payload:$e.m6.GET_BOLTZ_SWAPS})),this.swaps=v,this.swapsChanged.next(this.swaps)},error:v=>this.swapsChanged.error(this.handleErrorWithAlert($e.m6.GET_BOLTZ_SWAPS,this.swapUrl,v))})}swapInfo(v){return this.swapUrl=Va.T5+Va.NZ.BOLTZ_API+"/swapInfo/"+v,this.httpClient.get(this.swapUrl).pipe((0,vc.K)(V=>(0,Mi.of)(this.handleErrorWithAlert($e.m6.NO_SPINNER,this.swapUrl,V))))}serviceInfo(){return this.store.dispatch((0,ai.ac)({payload:$e.m6.GET_SERVICE_INFO})),this.swapUrl=Va.T5+Va.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,en.R)(this.unSubs[1]),(0,cs.U)(v=>(this.store.dispatch((0,ai.uO)({payload:$e.m6.GET_SERVICE_INFO})),v)),(0,vc.K)(v=>(0,Mi.of)(this.handleErrorWithAlert($e.m6.GET_SERVICE_INFO,this.swapUrl,v))))}swapOut(v,V){const te={amount:v,address:V};return this.swapUrl=Va.T5+Va.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,te).pipe((0,vc.K)(je=>this.handleErrorWithoutAlert("Swap Out for Address: "+V,$e.m6.NO_SPINNER,je)))}swapIn(v){const V={amount:v};return this.swapUrl=Va.T5+Va.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,V).pipe((0,vc.K)(te=>this.handleErrorWithoutAlert("Swap In for Amount: "+v,$e.m6.NO_SPINNER,te)))}handleErrorWithoutAlert(v,V,te){let je="";return this.logger.error("ERROR IN: "+v+"\n"+JSON.stringify(te)),this.store.dispatch((0,ai.uO)({payload:V})),401===te.status?(je="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,ai.kS)())):503===te.status?(je="Unable to Connect to Boltz Server.",this.store.dispatch((0,ai.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:te.status,message:"Unable to Connect to Boltz Server",URL:v},component:e1.H}}}))):je=this.commonService.extractErrorMessage(te),(0,_0._)(()=>new Error(je))}handleErrorWithAlert(v,V,te){let je="";if(401===te.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,ai.kS)())),this.logger.error(te),this.store.dispatch((0,ai.uO)({payload:v})),401===te.status)je="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,ai.kS)());else if(503===te.status)je="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,ai.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:te.status,message:"Unable to Connect to Boltz Server",URL:V},component:e1.H}}}))},100);else{je=this.commonService.extractErrorMessage(te);const Ft=te.error&&te.error.error&&te.error.error.code?te.error.error.code:te.error&&te.error.code?te.error.code:te.code?te.code:te.status;setTimeout(()=>{this.store.dispatch((0,ai.qR)({payload:{data:{type:$e.n_.ERROR,alertTitle:"ERROR",message:{code:Ft,message:je,URL:V},component:e1.H}}}))},100)}return{message:je}}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.LFG(Ra.eN),e.LFG(ui.mQ),e.LFG(Ni.yh),e.LFG($r.v))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();function K1(H,F){1&H&&e.GkF(0)}function j1(H,F){if(1&H&&(e.TgZ(0,"div",4)(1,"span",5),e._uU(2),e.qZA()()),2&H){const v=e.oxw();e.xp6(2),e.Oqu(null!=v.swapStatus&&v.swapStatus.error?null==v.swapStatus?null:v.swapStatus.error:"Unknown Error.")}}function v0(H,F){if(1&H&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Routing Fee (mSats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",7)(16,"h4",8),e._uU(17,"Claim Transaction ID"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()(),e.TgZ(20,"div",7)(21,"h4",8),e._uU(22,"Lockup Address"),e.qZA(),e.TgZ(23,"span",5),e._uU(24),e.qZA()()()()),2&H){const v=e.oxw();e.xp6(6),e.Oqu(null==v.swapStatus?null:v.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==v.swapStatus?null:v.swapStatus.routingFeeMilliSat)),e.xp6(8),e.Oqu(null==v.swapStatus?null:v.swapStatus.claimTransactionId),e.xp6(5),e.Oqu(null==v.swapStatus?null:v.swapStatus.lockupAddress)}}function B3(H,F){if(1&H&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Expected Amount (Sats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",10)(16,"h4",8),e._uU(17,"Address"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()()(),e._UZ(20,"mat-divider",9),e.TgZ(21,"div",6)(22,"div",10)(23,"h4",8),e._uU(24,"BIP 21"),e.qZA(),e.TgZ(25,"span",5),e._uU(26),e.qZA()()()()),2&H){const v=e.oxw();e.xp6(6),e.Oqu(null==v.swapStatus?null:v.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==v.swapStatus?null:v.swapStatus.expectedAmount)),e.xp6(8),e.Oqu(null==v.swapStatus?null:v.swapStatus.address),e.xp6(7),e.Oqu(null==v.swapStatus?null:v.swapStatus.bip21)}}let Yl=(()=>{class H{constructor(){this.swapStatus=null,this.direction=$e.hc.SWAP_OUT,this.swapTypeEnum=$e.hc}}return H.\u0275fac=function(v){return new(v||H)},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-boltz-swap-status"]],inputs:{swapStatus:"swapStatus",direction:"direction"},decls:7,vars:1,consts:[[4,"ngTemplateOutlet"],["swapFailedBlock",""],["swapOutBlock",""],["swapInBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","100"]],template:function(v,V){if(1&v&&(e.YNc(0,K1,1,0,"ng-container",0),e.YNc(1,j1,3,1,"ng-template",null,1,e.W1O),e.YNc(3,v0,25,6,"ng-template",null,2,e.W1O),e.YNc(5,B3,27,6,"ng-template",null,3,e.W1O)),2&v){const te=e.MAs(2),je=e.MAs(4),Ft=e.MAs(6);e.Q6J("ngTemplateOutlet",null!=V.swapStatus&&V.swapStatus.error?te:V.direction===V.swapTypeEnum.SWAP_OUT?je:Ft)}},dependencies:[Ze.tP,Ki.xw,Ki.Wh,Ki.yH,cr.d,Ze.JJ]}),H})(),t1=(()=>{class H{constructor(){this.serviceInfo={},this.direction=$e.hc.SWAP_OUT,this.swapTypeEnum=$e.hc}}return H.\u0275fac=function(v){return new(v||H)},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-boltz-service-info"]],inputs:{serviceInfo:"serviceInfo",direction:"direction"},decls:33,vars:13,consts:[["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"]],template:function(v,V){1&v&&(e.TgZ(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),e._uU(4,"Service Information"),e.qZA()()(),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),e._uU(9,"Minimum Amount (Sats)"),e.qZA(),e.TgZ(10,"span",6),e._uU(11),e.ALo(12,"number"),e.qZA()(),e.TgZ(13,"div",4)(14,"h4",5),e._uU(15,"Maximum Amount (Sats)"),e.qZA(),e.TgZ(16,"span",6),e._uU(17),e.ALo(18,"number"),e.qZA()()(),e._UZ(19,"mat-divider",7),e.TgZ(20,"div",3)(21,"div",4)(22,"h4",5),e._uU(23,"Fee Percentage"),e.qZA(),e.TgZ(24,"span",6),e._uU(25),e.ALo(26,"number"),e.qZA()(),e.TgZ(27,"div",4)(28,"h4",5),e._uU(29,"Miner Fee (Sats)"),e.qZA(),e.TgZ(30,"span",6),e._uU(31),e.ALo(32,"number"),e.qZA()()()()()),2&v&&(e.Q6J("expanded",!0),e.xp6(11),e.Oqu(e.lcZ(12,5,null==V.serviceInfo||null==V.serviceInfo.limits?null:V.serviceInfo.limits.minimal)),e.xp6(6),e.Oqu(e.lcZ(18,7,null==V.serviceInfo||null==V.serviceInfo.limits?null:V.serviceInfo.limits.maximal)),e.xp6(8),e.Oqu(e.lcZ(26,9,null==V.serviceInfo||null==V.serviceInfo.fees?null:V.serviceInfo.fees.percentage)),e.xp6(6),e.Oqu(e.lcZ(32,11,V.direction===V.swapTypeEnum.SWAP_OUT?null==V.serviceInfo||null==V.serviceInfo.fees||null==V.serviceInfo.fees.miner?null:V.serviceInfo.fees.miner.reverse:null==V.serviceInfo||null==V.serviceInfo.fees||null==V.serviceInfo.fees.miner?null:V.serviceInfo.fees.miner.normal)))},dependencies:[Ki.xw,Ki.Wh,Ki.yH,Dr.ib,Dr.yz,Dr.yK,cr.d,Ze.JJ]}),H})();var Q1=p(113);function y0(H,F){1&H&&e.GkF(0)}const Cl=function(H,F){return{"small-svg":H,"large-svg":F}};function b0(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.onSwipe(te))}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Submarine Swaps explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._uU(17," Boltz is a privacy-first account free exchange and a Lightning service provider. By doing a Submarine Swap on Boltz, you can swap your on-chain Bitcoin for Lightning Bitcoin. "),e.qZA()()()}if(2&H){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Cl,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function U3(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.onSwipe(te))}),e.O4$(),e.TgZ(1,"svg",21),e._UZ(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e.kcU(),e.TgZ(9,"div",18)(10,"mat-card-title"),e._uU(11,"Step 1: Deciding to Submarine Swap"),e.qZA()(),e.TgZ(12,"div",19)(13,"mat-card-subtitle",20),e._uU(14," You have one or more Lightning channels that are running low on outbound liquidity and you want to fund it using your on-chain Bitcoin. "),e.qZA()()()}if(2&H){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Cl,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function x0(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.onSwipe(te))}),e.O4$(),e.TgZ(1,"svg",29),e._UZ(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),e.TgZ(9,"defs")(10,"pattern",37),e._UZ(11,"use",38),e.qZA(),e._UZ(12,"image",39),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Sending the on-chain funds"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._uU(18," You send the on-chain funds to an address which can only be spent by Boltz when it pays a Lightning invoice to your node. "),e.qZA()()()}if(2&H){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Cl,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function G3(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.onSwipe(te))}),e.O4$(),e.TgZ(1,"svg",40)(2,"g",41),e._UZ(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",47),e._UZ(10,"rect",48),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on Lightning"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),e.qZA()()()}if(2&H){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Cl,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function q1(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.onSwipe(te))}),e.O4$(),e.TgZ(1,"svg",49),e._UZ(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._uU(12," You swapped your on-chain Bitcoin for Lightning Bitcoin, while also adding outbound capacity for your channels in the process - all in a non-custodial manner. "),e.qZA()()()}if(2&H){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Cl,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}let Z3=(()=>{class H{constructor(v){this.commonService=v,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=$e.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(v){2===v.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===v.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return H.\u0275fac=function(v){return new(v||H)(e.Y36($r.v))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-boltz-swapin-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","323","height","323","viewBox","0 0 323 323","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M53.8333 134.583H80.75L94.2083 161.5L117.792 134.961C121.616 130.658 125.869 126.602 131.194 124.413C136.45 122.252 142.103 121.125 147.842 121.125H242.25C286.847 121.125 323 157.278 323 201.875C323 246.472 286.847 282.625 242.25 282.625H147.842C142.103 282.625 136.45 281.497 131.194 279.337C125.869 277.149 121.616 273.092 117.792 268.79L94.2083 242.25L80.75 269.167H53.8333L67.2917 228.792L53.8333 201.875L67.2917 174.958L53.8333 134.583Z",1,"fill-color-0"],["d","M26.9167 107.667H53.8333L67.2917 134.583L90.8755 108.044C94.6993 103.741 98.9527 99.6849 104.277 97.4963C109.534 95.3357 115.187 94.2083 120.925 94.2083H215.333C259.93 94.2083 296.083 130.361 296.083 174.958C296.083 219.555 259.93 255.708 215.333 255.708H120.925C115.187 255.708 109.534 254.581 104.277 252.42C98.9527 250.232 94.6993 246.176 90.8755 241.873L67.2917 215.333L53.8333 242.25H26.9167L40.375 201.875L26.9167 174.958L40.375 148.042L26.9167 107.667Z",1,"stroke-color-thick"],["d","M134.583 215.333C142.016 215.333 148.042 209.308 148.042 201.875C148.042 194.442 142.016 188.417 134.583 188.417C127.151 188.417 121.125 194.442 121.125 201.875C121.125 209.308 127.151 215.333 134.583 215.333Z",1,"fill-color-15"],["d","M107.667 188.417C115.1 188.417 121.125 182.391 121.125 174.958C121.125 167.526 115.1 161.5 107.667 161.5C100.234 161.5 94.2083 167.526 94.2083 174.958C94.2083 182.391 100.234 188.417 107.667 188.417Z",1,"stroke-color-thick"],["d","M201.875 215.333C209.308 215.333 215.333 209.308 215.333 201.875C215.333 194.442 209.308 188.417 201.875 188.417C194.442 188.417 188.417 194.442 188.417 201.875C188.417 209.308 194.442 215.333 201.875 215.333Z",1,"fill-color-15"],["d","M174.958 188.417C182.391 188.417 188.417 182.391 188.417 174.958C188.417 167.526 182.391 161.5 174.958 161.5C167.526 161.5 161.5 167.526 161.5 174.958C161.5 182.391 167.526 188.417 174.958 188.417Z",1,"stroke-color-thick"],["d","M269.167 215.333C276.599 215.333 282.625 209.308 282.625 201.875C282.625 194.442 276.599 188.417 269.167 188.417C261.734 188.417 255.708 194.442 255.708 201.875C255.708 209.308 261.734 215.333 269.167 215.333Z",1,"fill-color-15"],["d","M242.25 188.417C249.683 188.417 255.708 182.391 255.708 174.958C255.708 167.526 249.683 161.5 242.25 161.5C234.817 161.5 228.792 167.526 228.792 174.958C228.792 182.391 234.817 188.417 242.25 188.417Z",1,"stroke-color-thick"],["d","M189.321 97C186.935 97 185 98.9345 185 101.321V112.679C185 115.065 186.935 117 189.321 117H237.679C240.065 117 242 115.065 242 112.679V101.321C242 98.9345 240.065 97 237.679 97H189.321Z",1,"fill-color-15"],["d","M161.5 67.2917V94.2083H215.333V67.2917H161.5Z",1,"stroke-color-thick"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","347","height","169","viewBox","0 0 347 169","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M89 157.417V41.5833C89 35.2125 92.75 30 97.3333 30H230.667C235.25 30 239 35.2125 239 41.5833V157.417C239 163.787 235.25 169 230.667 169H97.3333C92.75 169 89 163.787 89 157.417Z",1,"fill-color-0"],["d","M6.25 134.625V18.375C6.25 11.9812 11.4812 6.75 17.875 6.75H203.875C210.269 6.75 215.5 11.9812 215.5 18.375V134.625C215.5 141.019 210.269 146.25 203.875 146.25H17.875C11.4812 146.25 6.25 141.019 6.25 134.625Z",1,"stroke-color-thin"],["d","M256.188 123H238.75V76.5H256.188C259.442 76.5 262 79.0575 262 82.3125V117.188C262 120.443 259.442 123 256.188 123Z",1,"fill-color-15"],["d","M232.938 99.75H215.5V53.25H232.938C236.193 53.25 238.75 55.8075 238.75 59.0625V93.9375C238.75 97.1925 236.193 99.75 232.938 99.75Z",1,"stroke-color-thin"],["d","M146 53V87.875",1,"stroke-color-thin"],["d","M146 122.634V122.749",1,"stroke-color-thin"],["d","M344.698 95.3022C346.74 97.3445 346.74 100.656 344.698 102.698L311.418 135.978C309.376 138.02 306.065 138.02 304.022 135.978C301.98 133.935 301.98 130.624 304.022 128.582L333.604 99L304.022 69.418C301.98 67.3758 301.98 64.0647 304.022 62.0225C306.065 59.9803 309.376 59.9803 311.418 62.0225L344.698 95.3022ZM277 93.7706L341 93.7706V104.229L277 104.229V93.7706Z",1,"fill-color-15"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["fill-rule","evenodd","clip-rule","evenodd","d","M161.033 82.5635C162.307 74.0523 155.826 69.4769 146.965 66.4247L149.84 54.8952L142.822 53.1462L140.023 64.3718C138.178 63.9121 136.283 63.4783 134.4 63.0486L137.219 51.749L130.205 50L127.328 61.5255C125.801 61.1777 124.302 60.8338 122.847 60.4721L122.855 60.4361L113.177 58.0194L111.31 65.5152C111.31 65.5152 116.517 66.7085 116.407 66.7825C119.249 67.4921 119.763 69.373 119.677 70.8641L116.403 83.9987C116.599 84.0487 116.852 84.1206 117.132 84.2326C117.096 84.2236 117.06 84.2146 117.023 84.2054C116.981 84.1948 116.938 84.184 116.894 84.1731C116.732 84.1323 116.563 84.09 116.391 84.0487L111.801 102.448C111.453 103.312 110.572 104.607 108.585 104.115C108.655 104.217 103.484 102.842 103.484 102.842L100 110.875L109.133 113.152C110.152 113.408 111.16 113.67 112.156 113.93L112.158 113.931L112.159 113.931C112.823 114.104 113.481 114.276 114.136 114.443L111.232 126.105L118.242 127.854L121.118 116.316C123.033 116.836 124.892 117.316 126.711 117.768L123.844 129.251L130.862 131L133.767 119.361C145.734 121.625 154.733 120.712 158.521 109.888C161.573 101.173 158.369 96.1458 152.072 92.8677C156.658 91.8103 160.112 88.794 161.033 82.5635ZM144.998 105.049C143.008 113.044 130.493 109.739 124.766 108.226L124.766 108.226C124.251 108.09 123.791 107.969 123.398 107.871L127.252 92.4219C127.73 92.5412 128.314 92.6723 128.976 92.8208L128.976 92.8208C134.899 94.1498 147.037 96.8734 144.998 105.049ZM130.167 85.6513C134.942 86.9255 145.356 89.7047 147.17 82.4376C149.022 75.0044 138.901 72.7637 133.957 71.6694C133.401 71.5463 132.911 71.4377 132.51 71.3379L129.016 85.3499C129.346 85.4322 129.733 85.5356 130.167 85.6513Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","313.615","y","82.836","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["d","M154.81 93.8059C152.146 100.719 149.483 108.164 146.287 115.608C146.287 115.608 146.287 116.672 147.353 116.672H169.191C169.191 116.672 169.191 117.204 169.723 117.736L137.765 153.364C137.233 152.832 137.233 152.301 137.233 151.769L148.418 127.839V125.712H126.047V123.585L153.212 93.8059H154.81Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["id","clip0"],["width","225.692","height","225.692","transform","translate(0 85.9831) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","300","height","300","viewBox","0 0 300 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M50 237.5V112.5C50 105.625 55.625 100 62.5 100H262.5C269.375 100 275 105.625 275 112.5V237.5C275 244.375 269.375 250 262.5 250H62.5C55.625 250 50 244.375 50 237.5Z",1,"fill-color-0"],["d","M25 212.5V87.5C25 80.625 30.625 75 37.5 75H237.5C244.375 75 250 80.625 250 87.5V212.5C250 219.375 244.375 225 237.5 225H37.5C30.625 225 25 219.375 25 212.5Z",1,"stroke-color"],["d","M293.75 200H275V150H293.75C297.25 150 300 152.75 300 156.25V193.75C300 197.25 297.25 200 293.75 200Z",1,"fill-color-0"],["d","M268.75 175H250V125H268.75C272.25 125 275 127.75 275 131.25V168.75C275 172.25 272.25 175 268.75 175Z",1,"stroke-color"],["d","M137.5 187.5L156.25 150H118.75L137.5 112.5",1,"stroke-color"]],template:function(v,V){if(1&v&&(e.YNc(0,y0,1,0,"ng-container",0),e.YNc(1,b0,18,5,"ng-template",null,1,e.W1O),e.YNc(3,U3,15,5,"ng-template",null,2,e.W1O),e.YNc(5,x0,19,5,"ng-template",null,3,e.W1O),e.YNc(7,G3,17,5,"ng-template",null,4,e.W1O),e.YNc(9,q1,13,5,"ng-template",null,5,e.W1O)),2&v){const te=e.MAs(2),je=e.MAs(4),Ft=e.MAs(6),Qt=e.MAs(8),ci=e.MAs(10);e.Q6J("ngTemplateOutlet",1===V.stepNumber?te:2===V.stepNumber?je:3===V.stepNumber?Ft:4===V.stepNumber?Qt:ci)}},dependencies:[Ze.mk,Ze.tP,Ki.xw,Ki.Wh,Ki.yH,Sr.oO,tr.n5,tr.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Q1.l]}}),H})();function C0(H,F){1&H&&e.GkF(0)}const nl=function(H,F){return{"small-svg":H,"large-svg":F}};function J1(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.onSwipe(te))}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Reverse Submarine Swap explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._uU(17," Boltz is a privacy-first account free exchange and a Lightning Service Provider. By doing a Reverse Submarine Swap on Boltz, you can swap your Lightning Bitcoin for on-chain Bitcoin. "),e.qZA()()()}if(2&H){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,nl,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function X1(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.onSwipe(te))}),e.O4$(),e.TgZ(1,"svg",21)(2,"g",22),e._UZ(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e._UZ(9,"path",29),e.TgZ(10,"defs")(11,"clipPath",30),e._UZ(12,"rect",31),e.qZA()()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._uU(18," You have one or more channels that are running low on inbound capacity or you want to move some of your Lightning Bitcoin to your onchain wallet. "),e.qZA()()()}if(2&H){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,nl,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function W3(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.onSwipe(te))}),e.O4$(),e.TgZ(1,"svg",32),e._UZ(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),e.TgZ(9,"defs")(10,"pattern",40),e._UZ(11,"use",41),e.qZA(),e._UZ(12,"image",42),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Paying the Lightning Invoice"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._uU(18," Your Boltz client generates a secret which is sent to Boltz. In return Boltz sends a Lightning invoice based on that secret. Your Lightning node pays that invoice which moves some of your local balance to the other side of the channel. "),e.qZA()()()}if(2&H){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,nl,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function Y3(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.onSwipe(te))}),e.O4$(),e.TgZ(1,"svg",43)(2,"g",22),e._UZ(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",30),e._UZ(10,"rect",49),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on-chain"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._uU(16," In return for paying the invoice, Boltz locks on-chain BTC. Your node claims that onchain BTC to your wallet and by doing that, reveals the secret. With that secret Boltz can settle the Lightning invoice paid by your node. "),e.qZA()()()}if(2&H){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,nl,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function $1(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.onSwipe(te))}),e.O4$(),e.TgZ(1,"svg",50),e._UZ(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._uU(12," You have now successfully received your funds in your on-chain wallet and also spent your local balance to increase the inbound capacity of your node - all in a non-custodial manner. "),e.qZA()()()}if(2&H){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,nl,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}let M0=(()=>{class H{constructor(v){this.commonService=v,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=$e.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(v){2===v.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===v.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return H.\u0275fac=function(v){return new(v||H)(e.Y36($r.v))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-boltz-swapout-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","368","height","368","viewBox","0 0 368 368","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M306.667 153.333H276L260.667 184L233.797 153.763C229.441 148.861 224.595 144.24 218.529 141.746C212.54 139.284 206.099 138 199.561 138H92C41.19 138 1.52588e-05 179.19 1.52588e-05 230C1.52588e-05 280.81 41.19 322 92 322H199.561C206.099 322 212.54 320.715 218.529 318.254C224.595 315.761 229.441 311.139 233.797 306.237L260.667 276L276 306.667H306.667L291.333 260.667L306.667 230L291.333 199.333L306.667 153.333Z",1,"fill-color-0"],["d","M337.333 122.667H306.667L291.333 153.333L264.464 123.097C260.107 118.194 255.261 113.573 249.195 111.079C243.206 108.618 236.766 107.333 230.228 107.333H122.667C71.8566 107.333 30.6667 148.523 30.6667 199.333C30.6667 250.143 71.8566 291.333 122.667 291.333H230.228C236.766 291.333 243.206 290.048 249.195 287.587C255.261 285.094 260.107 280.473 264.464 275.571L291.333 245.333L306.667 276H337.333L322 230L337.333 199.333L322 168.667L337.333 122.667Z",1,"stroke-color-thicker"],["d","M214.667 245.333C206.198 245.333 199.333 238.468 199.333 230C199.333 221.532 206.198 214.667 214.667 214.667C223.135 214.667 230 221.532 230 230C230 238.468 223.135 245.333 214.667 245.333Z",1,"fill-color-15"],["d","M245.333 214.667C236.865 214.667 230 207.802 230 199.333C230 190.865 236.865 184 245.333 184C253.802 184 260.667 190.865 260.667 199.333C260.667 207.802 253.802 214.667 245.333 214.667Z",1,"stroke-color-thicker"],["d","M138 245.333C129.532 245.333 122.667 238.468 122.667 230C122.667 221.532 129.532 214.667 138 214.667C146.468 214.667 153.333 221.532 153.333 230C153.333 238.468 146.468 245.333 138 245.333Z",1,"fill-color-15"],["d","M168.667 214.667C160.198 214.667 153.333 207.802 153.333 199.333C153.333 190.865 160.198 184 168.667 184C177.135 184 184 190.865 184 199.333C184 207.802 177.135 214.667 168.667 214.667Z",1,"stroke-color-thicker"],["d","M61.3334 245.333C52.865 245.333 46 238.468 46 230C46 221.532 52.865 214.667 61.3334 214.667C69.8017 214.667 76.6667 221.532 76.6667 230C76.6667 238.468 69.8017 245.333 61.3334 245.333Z",1,"fill-color-15"],["d","M92 214.667C83.5316 214.667 76.6666 207.802 76.6666 199.333C76.6666 190.865 83.5316 184 92 184C100.468 184 107.333 190.865 107.333 199.333C107.333 207.802 100.468 214.667 92 214.667Z",1,"stroke-color-thicker"],["d","M239.077 111C241.796 111 244 113.204 244 115.923V126.077C244 128.796 241.796 131 239.077 131H191.923C189.204 131 187 128.796 187 126.077V115.923C187 113.204 189.204 111 191.923 111H239.077Z",1,"fill-color-15"],["d","M184 76.6666V107.333H122.667V76.6666H184Z",1,"stroke-color-thicker"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","383","height","279","viewBox","0 0 383 279","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M267.882 220.417V104.583C267.882 98.2125 263.809 93 258.832 93H114.029C109.051 93 104.978 98.2125 104.978 104.583V220.417C104.978 226.787 109.051 232 114.029 232H258.832C263.809 232 267.882 226.787 267.882 220.417Z",1,"fill-color-0"],["d","M357.75 197.625V81.375C357.75 74.9812 352.069 69.75 345.125 69.75H143.125C136.181 69.75 130.5 74.9812 130.5 81.375V197.625C130.5 204.019 136.181 209.25 143.125 209.25H345.125C352.069 209.25 357.75 204.019 357.75 197.625Z",1,"stroke-color-thin"],["d","M86.3125 186H105.25V139.5H86.3125C82.7775 139.5 80 142.057 80 145.312V180.188C80 183.443 82.7775 186 86.3125 186Z",1,"fill-color-15"],["d","M111.562 162.75H130.5V116.25H111.562C108.027 116.25 105.25 118.807 105.25 122.062V156.938C105.25 160.193 108.027 162.75 111.562 162.75Z",1,"stroke-color-thin"],["d","M205.979 116V150.875",1,"stroke-color-thin"],["d","M205.979 185.634V185.749",1,"stroke-color-thin"],["d","M2.44963 159.45C0.488815 161.41 0.488815 164.59 2.44963 166.55L34.403 198.504C36.3638 200.465 39.5429 200.465 41.5037 198.504C43.4645 196.543 43.4645 193.364 41.5037 191.403L13.1007 163L41.5037 134.597C43.4645 132.636 43.4645 129.457 41.5037 127.496C39.5429 125.535 36.3638 125.535 34.403 127.496L2.44963 159.45ZM65 157.979H6V168.021H65V157.979Z",1,"fill-color-15"],["id","clip0"],["width","303","height","279","transform","matrix(-1 0 0 1 383 0)",1,"fill-color-30"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["d","M138.762 67C136.099 73.913 133.436 81.3578 130.24 88.8025C130.24 88.8025 130.24 89.8661 131.305 89.8661H153.143C153.143 89.8661 153.143 90.3979 153.676 90.9296L121.718 126.558C121.185 126.026 121.185 125.495 121.185 124.963L132.371 101.033V98.9062H110V96.7791L137.164 67H138.762Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","317","y","81","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["fill-rule","evenodd","clip-rule","evenodd","d","M169.522 122.093C171.059 115.241 166.054 111.136 159.022 108.13L162.04 98.916L156.431 97.0797L153.493 106.051C152.019 105.569 150.502 105.104 148.995 104.643L151.953 95.613L146.348 93.7769L143.329 102.988C142.106 102.615 140.906 102.247 139.743 101.867L139.752 101.838L132.017 99.3019L130.057 105.293C130.057 105.293 134.224 106.57 134.131 106.624C136.402 107.369 136.71 108.93 136.552 110.138L133.115 120.635C133.271 120.687 133.473 120.761 133.695 120.869C133.66 120.857 133.626 120.846 133.591 120.834C133.562 120.825 133.534 120.816 133.505 120.806C133.375 120.763 133.24 120.719 133.102 120.675L128.284 135.38C127.95 136.062 127.157 137.065 125.569 136.548C125.62 136.635 121.492 135.211 121.492 135.211L118.184 141.544L125.483 143.935C126.298 144.203 127.103 144.476 127.899 144.746L127.901 144.747C128.431 144.927 128.956 145.105 129.479 145.28L126.429 154.6L132.031 156.436L135.051 147.215C136.579 147.75 138.064 148.25 139.517 148.725L136.509 157.902L142.118 159.739L145.166 150.437C154.773 152.984 162.15 152.77 165.87 144.183C168.867 137.27 166.555 132.99 161.623 129.952C165.417 129.361 168.406 127.109 169.522 122.093ZM155.149 139.449C153.059 145.84 143.068 142.413 138.496 140.845L138.496 140.845C138.085 140.704 137.718 140.578 137.404 140.476L141.449 128.129C141.831 128.254 142.299 128.395 142.829 128.555L142.829 128.555C147.571 129.985 157.289 132.916 155.149 139.449ZM144.22 122.79C148.031 124.108 156.343 126.982 158.247 121.175C160.192 115.234 152.086 112.815 148.127 111.634C147.682 111.501 147.289 111.383 146.969 111.279L143.301 122.477C143.565 122.563 143.874 122.67 144.22 122.79Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["width","225.692","height","225.692","transform","translate(0 85.983) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","298","height","300","viewBox","0 0 298 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M248.333 237.5V112.5C248.333 105.625 242.746 100 235.917 100H37.2501C30.421 100 24.8335 105.625 24.8335 112.5V237.5C24.8335 244.375 30.421 250 37.2501 250H235.917C242.746 250 248.333 244.375 248.333 237.5Z",1,"fill-color-0"],["d","M273.167 212.5V87.5C273.167 80.625 267.579 75 260.75 75H62.0832C55.254 75 49.6665 80.625 49.6665 87.5V212.5C49.6665 219.375 55.254 225 62.0832 225H260.75C267.579 225 273.167 219.375 273.167 212.5Z",1,"stroke-color"],["d","M6.20851 200H24.8335V150H6.20851C2.73185 150 0.000183105 152.75 0.000183105 156.25V193.75C0.000183105 197.25 2.73185 200 6.20851 200Z",1,"fill-color-0"],["d","M31.0415 175H49.6665V125H31.0415C27.5648 125 24.8331 127.75 24.8331 131.25V168.75C24.8331 172.25 27.5648 175 31.0415 175Z",1,"stroke-color"],["d","M161.417 187.5L142.792 150H180.042L161.417 112.5",1,"stroke-color"]],template:function(v,V){if(1&v&&(e.YNc(0,C0,1,0,"ng-container",0),e.YNc(1,J1,18,5,"ng-template",null,1,e.W1O),e.YNc(3,X1,19,5,"ng-template",null,2,e.W1O),e.YNc(5,W3,19,5,"ng-template",null,3,e.W1O),e.YNc(7,Y3,17,5,"ng-template",null,4,e.W1O),e.YNc(9,$1,13,5,"ng-template",null,5,e.W1O)),2&v){const te=e.MAs(2),je=e.MAs(4),Ft=e.MAs(6),Qt=e.MAs(8),ci=e.MAs(10);e.Q6J("ngTemplateOutlet",1===V.stepNumber?te:2===V.stepNumber?je:3===V.stepNumber?Ft:4===V.stepNumber?Qt:ci)}},dependencies:[Ze.mk,Ze.tP,Ki.xw,Ki.Wh,Ki.yH,Sr.oO,tr.n5,tr.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Q1.l]}}),H})();const Ml=["stepper"];function e2(H,F){if(1&H&&e._uU(0),2&H){const v=e.oxw(2);e.Oqu(v.inputFormLabel)}}function t2(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function K3(H,F){if(1&H&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&H){const v=e.oxw(2);e.xp6(1),e.hij("Amount must be greater than or equal to ",e.lcZ(2,1,null==v.serviceInfo||null==v.serviceInfo.limits?null:v.serviceInfo.limits.minimal),".")}}function j3(H,F){if(1&H&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&H){const v=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",e.lcZ(2,1,null==v.serviceInfo||null==v.serviceInfo.limits?null:v.serviceInfo.limits.maximal),".")}}function n1(H,F){1&H&&(e.TgZ(0,"button",40),e._uU(1,"Next"),e.qZA())}function Q3(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(v);const te=e.oxw(2);return e.KtG(te.onSwap())}),e._uU(1),e.qZA()}if(2&H){const v=e.oxw(2);e.xp6(1),e.hij("Initiate ",v.swapDirectionCaption,"")}}function w0(H,F){if(1&H&&e._uU(0),2&H){const v=e.oxw(3);e.Oqu(v.addressFormLabel)}}function S0(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Address is required."),e.qZA())}function E0(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"mat-step",15)(1,"form",16),e.YNc(2,w0,1,1,"ng-template",17),e.TgZ(3,"div",42)(4,"mat-radio-group",43),e.NdJ("change",function(te){e.CHM(v);const je=e.oxw(2);return e.KtG(je.onAddressTypeChange(te))}),e.TgZ(5,"mat-radio-button",44),e._uU(6,"Node Local Address"),e.qZA(),e.TgZ(7,"mat-radio-button",45),e._uU(8,"External Address"),e.qZA()(),e.TgZ(9,"mat-form-field",46),e._UZ(10,"input",47),e.YNc(11,S0,2,0,"mat-error",24),e.qZA()(),e.TgZ(12,"div",25)(13,"button",48),e.NdJ("click",function(){e.CHM(v);const te=e.oxw(2);return e.KtG(te.onSwap())}),e._uU(14),e.qZA()()()()}if(2&H){const v=e.oxw(2);e.Q6J("stepControl",v.addressFormGroup)("editable",v.flgEditable),e.xp6(1),e.Q6J("formGroup",v.addressFormGroup),e.xp6(9),e.Q6J("required","external"===v.addressFormGroup.controls.addressType.value),e.xp6(1),e.Q6J("ngIf",null==v.addressFormGroup.controls.address.errors?null:v.addressFormGroup.controls.address.errors.required),e.xp6(3),e.hij("Initiate ",v.swapDirectionCaption,"")}}function r1(H,F){if(1&H&&e._uU(0),2&H){const v=e.oxw(2);e.hij("",v.swapDirectionCaption," Status")}}function T0(H,F){if(1&H&&(e.TgZ(0,"mat-icon",49),e._uU(1),e.qZA()),2&H){const v=e.oxw(2);e.xp6(1),e.Oqu(v.swapStatus&&null!=v.swapStatus&&v.swapStatus.id?"check":"close")}}function bc(H,F){1&H&&e._UZ(0,"div")}function a1(H,F){1&H&&e._UZ(0,"mat-progress-bar",50)}function s1(H,F){if(1&H&&(e.TgZ(0,"h4",51),e._uU(1),e.qZA()),2&H){const v=e.oxw(2);e.xp6(1),e.Oqu(v.swapStatus&&v.swapStatus.error?v.swapDirectionCaption+" failed.":v.swapStatus&&v.swapStatus.id?v.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":v.swapDirectionCaption+" request placed successfully.")}}function n2(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"button",52),e.NdJ("click",function(){e.CHM(v);const te=e.oxw(2);return e.KtG(te.onRestart())}),e._uU(1,"Start Again"),e.qZA()}}function o1(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),e._uU(5),e.qZA()(),e.TgZ(6,"div",8)(7,"button",9),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.showInfo())}),e._uU(8,"?"),e.qZA(),e.TgZ(9,"button",10),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.onClose())}),e._uU(10,"X"),e.qZA()()(),e.TgZ(11,"mat-card-content",11)(12,"div",12)(13,"mat-vertical-stepper",13,14),e.NdJ("selectionChange",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.stepSelectionChanged(te))}),e.TgZ(15,"mat-step",15)(16,"form",16),e.YNc(17,e2,1,1,"ng-template",17),e.TgZ(18,"div",18),e._UZ(19,"rtl-boltz-service-info",19),e.qZA(),e.TgZ(20,"div",20)(21,"mat-form-field",21),e._UZ(22,"input",22),e.TgZ(23,"mat-hint"),e._uU(24),e.ALo(25,"number"),e.ALo(26,"number"),e.qZA(),e.TgZ(27,"span",23),e._uU(28,"Sats"),e.qZA(),e.YNc(29,t2,2,0,"mat-error",24),e.YNc(30,K3,3,3,"mat-error",24),e.YNc(31,j3,3,3,"mat-error",24),e.qZA()(),e.TgZ(32,"div",25),e.YNc(33,n1,2,0,"button",26),e.YNc(34,Q3,2,1,"button",27),e.qZA()()(),e.YNc(35,E0,15,6,"mat-step",28),e.TgZ(36,"mat-step",29)(37,"form",16),e.YNc(38,r1,1,1,"ng-template",17),e.TgZ(39,"div",30)(40,"mat-expansion-panel",31)(41,"mat-expansion-panel-header")(42,"mat-panel-title")(43,"span",32),e._uU(44),e.YNc(45,T0,2,1,"mat-icon",33),e.qZA()()(),e.YNc(46,bc,1,0,"div",34),e.qZA(),e.YNc(47,a1,1,0,"mat-progress-bar",35),e.qZA(),e.YNc(48,s1,2,1,"h4",36),e.TgZ(49,"div",25),e.YNc(50,n2,2,0,"button",37),e.qZA()()()(),e.TgZ(51,"div",38)(52,"button",39),e._uU(53,"Close"),e.qZA()()()()()()}if(2&H){const v=e.oxw(),V=e.MAs(2);e.Q6J("@opacityAnimation",void 0),e.xp6(3),e.Q6J("fxFlex",v.screenSize===v.screenSizeEnum.XS||v.screenSize===v.screenSizeEnum.SM?"83":"91"),e.xp6(2),e.Oqu(v.swapDirectionCaption),e.xp6(1),e.Q6J("fxFlex",v.screenSize===v.screenSizeEnum.XS||v.screenSize===v.screenSizeEnum.SM?"17":"9"),e.xp6(7),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",v.inputFormGroup)("editable",v.flgEditable),e.xp6(1),e.Q6J("formGroup",v.inputFormGroup),e.xp6(3),e.Q6J("serviceInfo",v.serviceInfo)("direction",v.direction),e.xp6(3),e.Q6J("step",1e3),e.xp6(2),e.AsE("Range: ",e.lcZ(25,30,null==v.serviceInfo||null==v.serviceInfo.limits?null:v.serviceInfo.limits.minimal),"-",e.lcZ(26,32,null==v.serviceInfo||null==v.serviceInfo.limits?null:v.serviceInfo.limits.maximal),""),e.xp6(5),e.Q6J("ngIf",null==v.inputFormGroup||null==v.inputFormGroup.controls||null==v.inputFormGroup.controls.amount||null==v.inputFormGroup.controls.amount.errors?null:v.inputFormGroup.controls.amount.errors.required),e.xp6(1),e.Q6J("ngIf",null==v.inputFormGroup||null==v.inputFormGroup.controls||null==v.inputFormGroup.controls.amount||null==v.inputFormGroup.controls.amount.errors?null:v.inputFormGroup.controls.amount.errors.min),e.xp6(1),e.Q6J("ngIf",null==v.inputFormGroup||null==v.inputFormGroup.controls||null==v.inputFormGroup.controls.amount||null==v.inputFormGroup.controls.amount.errors?null:v.inputFormGroup.controls.amount.errors.max),e.xp6(2),e.Q6J("ngIf",v.direction===v.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",v.direction===v.swapTypeEnum.SWAP_IN),e.xp6(1),e.Q6J("ngIf",v.direction===v.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("stepControl",v.statusFormGroup),e.xp6(1),e.Q6J("formGroup",v.statusFormGroup),e.xp6(3),e.Q6J("expanded",!!v.swapStatus),e.xp6(4),e.Oqu(v.swapStatus?v.swapStatus.id?v.swapDirectionCaption+" request details":v.swapDirectionCaption+" error details":"Waiting for "+v.swapDirectionCaption+" request..."),e.xp6(1),e.Q6J("ngIf",v.swapStatus),e.xp6(1),e.Q6J("ngIf",!v.swapStatus)("ngIfElse",V),e.xp6(1),e.Q6J("ngIf",!v.swapStatus),e.xp6(1),e.Q6J("ngIf",v.swapStatus),e.xp6(2),e.Q6J("ngIf",v.swapStatus&&(v.swapStatus.error||!v.swapStatus.id)),e.xp6(2),e.Q6J("mat-dialog-close",!1)}}function r2(H,F){if(1&H&&e._UZ(0,"rtl-boltz-swap-status",53),2&H){const v=e.oxw();e.Q6J("swapStatus",v.swapStatus)("direction",v.direction)}}function xc(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"rtl-boltz-swapout-info-graphics",70),e.NdJ("stepNumberChange",function(te){e.CHM(v);const je=e.oxw(2);return e.KtG(je.stepNumber=te)}),e.qZA()}if(2&H){const v=e.oxw(2);e.Q6J("stepNumber",v.stepNumber)("animationDirection",v.animationDirection)}}function A0(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"rtl-boltz-swapin-info-graphics",70),e.NdJ("stepNumberChange",function(te){e.CHM(v);const je=e.oxw(2);return e.KtG(je.stepNumber=te)}),e.qZA()}if(2&H){const v=e.oxw(2);e.Q6J("stepNumber",v.stepNumber)("animationDirection",v.animationDirection)}}const L0=function(H,F){return{"dot-primary":H,"dot-primary-lighter":F}};function D0(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"span",71),e.NdJ("click",function(){const je=e.CHM(v).$implicit,Ft=e.oxw(2);return e.KtG(Ft.onStepChanged(je))}),e._UZ(1,"p",72),e.qZA()}if(2&H){const v=F.$implicit,V=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.WLB(1,L0,V.stepNumber===v,V.stepNumber!==v))}}function I0(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"button",73),e.NdJ("click",function(){e.CHM(v);const te=e.oxw(2);return e.KtG(te.onReadMore())}),e._uU(1,"Read More"),e.qZA()}}function O0(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){e.CHM(v);const te=e.oxw(2);return e.KtG(te.onStepChanged(4))}),e._uU(1,"Back"),e.qZA()}}function a2(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"button",75),e.NdJ("click",function(){e.CHM(v);const te=e.oxw(2);return te.flgShowInfo=!1,e.KtG(te.stepNumber=1)}),e._uU(1,"Close"),e.qZA()}}function Cc(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"button",76),e.NdJ("click",function(){e.CHM(v);const te=e.oxw(2);return te.flgShowInfo=!1,e.KtG(te.stepNumber=1)}),e._uU(1,"Close"),e.qZA()}}function s2(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(v);const te=e.oxw(2);return e.KtG(te.onStepChanged(te.stepNumber-1))}),e._uU(1,"Back"),e.qZA()}}function wl(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"button",78),e.NdJ("click",function(){e.CHM(v);const te=e.oxw(2);return e.KtG(te.onStepChanged(te.stepNumber+1))}),e._uU(1,"Next"),e.qZA()}}const q3=function(){return[1,2,3,4,5]};function P0(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",54)(1,"div",18)(2,"mat-card-header",55)(3,"div",56),e._UZ(4,"span",7),e.qZA(),e.TgZ(5,"div",57)(6,"button",58),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return te.flgShowInfo=!1,e.KtG(te.stepNumber=1)}),e._uU(7,"X"),e.qZA()()(),e.TgZ(8,"mat-card-content",59),e.YNc(9,xc,1,2,"rtl-boltz-swapout-info-graphics",60),e.YNc(10,A0,1,2,"rtl-boltz-swapin-info-graphics",60),e.qZA(),e.TgZ(11,"div",61),e.YNc(12,D0,2,4,"span",62),e.qZA(),e.TgZ(13,"div",63),e.YNc(14,I0,2,0,"button",64),e.YNc(15,O0,2,0,"button",65),e.YNc(16,a2,2,0,"button",66),e.YNc(17,Cc,2,0,"button",67),e.YNc(18,s2,2,0,"button",68),e.YNc(19,wl,2,0,"button",69),e.qZA()()()}if(2&H){const v=e.oxw();e.Q6J("@opacityAnimation",void 0),e.xp6(9),e.Q6J("ngIf",v.direction===v.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",v.direction===v.swapTypeEnum.SWAP_IN),e.xp6(2),e.Q6J("ngForOf",e.DdM(10,q3)),e.xp6(2),e.Q6J("ngIf",5===v.stepNumber),e.xp6(1),e.Q6J("ngIf",5===v.stepNumber),e.xp6(1),e.Q6J("ngIf",5===v.stepNumber),e.xp6(1),e.Q6J("ngIf",v.stepNumber<5),e.xp6(1),e.Q6J("ngIf",v.stepNumber>1&&v.stepNumber<5),e.xp6(1),e.Q6J("ngIf",v.stepNumber<5)}}let J3=(()=>{class H{constructor(v,V,te,je,Ft,Qt,ci){this.dialogRef=v,this.data=V,this.boltzService=te,this.formBuilder=je,this.decimalPipe=Ft,this.logger=Qt,this.commonService=ci,this.faInfoCircle=ji.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=$e.hc,this.direction=$e.hc.SWAP_OUT,this.swapDirectionCaption="Swap out",this.swapStatus=null,this.inputFormLabel="Amount to swap out",this.addressFormLabel="Withdrawal Address",this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=$e.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new Bi.x,new Bi.x,new Bi.x,new Bi.x,new Bi.x,new Bi.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||$e.hc.SWAP_OUT,this.swapDirectionCaption=this.direction===$e.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits?.minimal,[ri.kI.required,ri.kI.min(this.serviceInfo.limits?.minimal||0),ri.kI.max(this.serviceInfo.limits?.maximal||0)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[ri.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===$e.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===$e.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,en.R)(this.unSubs[2])).subscribe(v=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(v){"external"===v.value?(this.addressFormGroup.controls.address.setValidators([ri.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onSwap(){if(!this.inputFormGroup.controls.amount.value||this.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===$e.hc.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;this.flgEditable=!1,this.stepper.selected?.stepControl.setErrors(null),this.stepper.next(),this.direction===$e.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,en.R)(this.unSubs[3])).subscribe({next:v=>{this.swapStatus=v,this.boltzService.listSwaps(),this.flgEditable=!0},error:v=>{this.swapStatus={error:v},this.flgEditable=!0,this.logger.error(v)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,en.R)(this.unSubs[4])).subscribe({next:V=>{this.swapStatus=V,this.boltzService.listSwaps(),this.flgEditable=!0},error:V=>{this.swapStatus={error:V},this.flgEditable=!0,this.logger.error(V)}})}stepSelectionChanged(v){switch(v.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value?this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats":"Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address"}v.selectedIndex<v.previouslySelectedIndex&&v.selectedStep.stepControl.setErrors({Invalid:!0})}onClose(){this.dialogRef.close(!0)}showInfo(){this.flgShowInfo=!0}onReadMore(){this.direction===$e.hc.SWAP_IN?window.open("https://docs.boltz.exchange/en/latest/lifecycle/#normal-submarine-swaps","_blank"):window.open("https://docs.boltz.exchange/en/latest/lifecycle/#reverse-submarine-swaps","_blank"),this.onClose()}onStepChanged(v){this.animationDirection=v<this.stepNumber?"backward":"forward",this.stepNumber=v}onRestart(){this.stepper.reset(),this.flgEditable=!0,this.inputFormGroup.reset({amount:this.serviceInfo.limits?.minimal}),this.statusFormGroup.reset(),this.addressFormGroup.reset({addressType:"local",address:""}),this.addressFormGroup.controls.address.disable()}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(wr.so),e.Y36(wr.WI),e.Y36(yc),e.Y36(ri.QS),e.Y36(Ze.JJ),e.Y36(ui.mQ),e.Y36($r.v))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(v,V){if(1&v&&e.Gf(Ml,5),2&v){let te;e.iGM(te=e.CRH())&&(V.stepper=te.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["swapStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"serviceInfo","direction"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext","",4,"ngIf"],["mat-button","","color","primary","tabindex","3","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext",""],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"swapStatus","direction"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(v,V){1&v&&(e.YNc(0,o1,54,34,"div",0),e.YNc(1,r2,1,2,"ng-template",null,1,e.W1O),e.YNc(3,P0,20,11,"div",2)),2&v&&(e.Q6J("ngIf",!V.flgShowInfo),e.xp6(3),e.Q6J("ngIf",V.flgShowInfo))},dependencies:[Ze.mk,Ze.sg,Ze.O5,ri._Y,ri.Fj,ri.wV,ri.JJ,ri.JL,ri.Q7,ri.sg,ri.u,Ki.xw,Ki.Wh,Ki.yH,Sr.oO,wr.ZT,Ai.lW,tr.dk,tr.dn,Dr.ib,Dr.yz,Dr.yK,Yr.Hw,zi.TO,zi.KE,zi.bx,zi.R9,$n.Nt,P3.pW,wo.VQ,wo.U0,Ms.C0,Ms.VY,Ms.Vq,Ms.Ic,wn.h,Yl,t1,Z3,M0,Ze.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[Y1._]}}),H})();function o2(H,F){if(1&H&&(e.TgZ(0,"mat-option",42),e._uU(1),e.qZA()),2&H){const v=F.$implicit,V=e.oxw();e.Q6J("value",v),e.xp6(1),e.Oqu(V.getLabel(v))}}function l1(H,F){1&H&&e._UZ(0,"mat-progress-bar",43)}function Sl(H,F){1&H&&(e.TgZ(0,"th",44),e._uU(1,"Status"),e.qZA())}function l2(H,F){if(1&H&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&H){const v=F.$implicit,V=e.oxw();e.xp6(1),e.Oqu(V.swapStateEnum[null==v?null:v.status])}}function c1(H,F){1&H&&(e.TgZ(0,"th",44),e._uU(1,"Swap ID"),e.qZA())}function c2(H,F){if(1&H&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&H){const v=F.$implicit;e.xp6(1),e.Oqu(null==v?null:v.id)}}function k0(H,F){1&H&&(e.TgZ(0,"th",44),e._uU(1,"Claim Address"),e.qZA())}const rl=function(H){return{width:H}};function d1(H,F){if(1&H&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&H){const v=F.$implicit,V=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,rl,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.claimAddress)}}function Kl(H,F){1&H&&(e.TgZ(0,"th",44),e._uU(1,"Lockup Address"),e.qZA())}function N0(H,F){if(1&H&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&H){const v=F.$implicit,V=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,rl,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.lockupAddress)}}function X3(H,F){1&H&&(e.TgZ(0,"th",48),e._uU(1,"Onchain Amount (Sats)"),e.qZA())}function W4(H,F){if(1&H&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&H){const v=F.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==v?null:v.onchainAmount))}}function Y4(H,F){1&H&&(e.TgZ(0,"th",48),e._uU(1,"Expected Amount (Sats)"),e.qZA())}function R0(H,F){if(1&H&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&H){const v=F.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==v?null:v.expectedAmount))}}function Zo(H,F){1&H&&(e.TgZ(0,"th",44),e._uU(1,"Error"),e.qZA())}function jl(H,F){if(1&H&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&H){const v=F.$implicit,V=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,rl,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.error)}}function H0(H,F){1&H&&(e.TgZ(0,"th",44),e._uU(1,"Private Key"),e.qZA())}function F0(H,F){if(1&H&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&H){const v=F.$implicit,V=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,rl,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.privateKey)}}function El(H,F){1&H&&(e.TgZ(0,"th",44),e._uU(1,"Preimage"),e.qZA())}function d2(H,F){if(1&H&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&H){const v=F.$implicit,V=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,rl,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.preimage)}}function $3(H,F){1&H&&(e.TgZ(0,"th",44),e._uU(1,"Redeem Script"),e.qZA())}function ed(H,F){if(1&H&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&H){const v=F.$implicit,V=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,rl,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.redeemScript)}}function u2(H,F){1&H&&(e.TgZ(0,"th",44),e._uU(1,"Invoice"),e.qZA())}function V0(H,F){if(1&H&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&H){const v=F.$implicit,V=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,rl,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.invoice)}}function h2(H,F){1&H&&(e.TgZ(0,"th",48),e._uU(1,"Timeout Block Height"),e.qZA())}function z0(H,F){if(1&H&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&H){const v=F.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==v?null:v.timeoutBlockHeight))}}function Mc(H,F){1&H&&(e.TgZ(0,"th",44),e._uU(1,"Lockup Tx ID"),e.qZA())}function u1(H,F){if(1&H&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&H){const v=F.$implicit;e.xp6(1),e.Oqu(null==v?null:v.lockupTransactionId)}}function Wo(H,F){1&H&&(e.TgZ(0,"th",44),e._uU(1,"Claim Tx ID"),e.qZA())}function wc(H,F){if(1&H&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&H){const v=F.$implicit;e.xp6(1),e.Oqu(null==v?null:v.claimTransactionId)}}function f2(H,F){1&H&&(e.TgZ(0,"th",44),e._uU(1,"Refund Tx ID"),e.qZA())}function p2(H,F){if(1&H&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&H){const v=F.$implicit;e.xp6(1),e.Oqu(null==v?null:v.refundTransactionId)}}function B0(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"th",50)(1,"div",51)(2,"mat-select",52),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",53),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.onDownloadCSV())}),e._uU(5,"Download CSV"),e.qZA()()()()}}function K4(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"td",54)(1,"button",55),e.NdJ("click",function(te){const Ft=e.CHM(v).$implicit,Qt=e.oxw();return e.KtG(Qt.onSwapClick(Ft,te))}),e._uU(2,"View Info"),e.qZA()()}}function m2(H,F){if(1&H&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&H){const v=e.oxw(2);e.xp6(1),e.Oqu(v.emptyTableMessage)}}function U0(H,F){if(1&H&&(e.TgZ(0,"td",56),e.YNc(1,m2,2,1,"p",57),e.qZA()),2&H){const v=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=v.listSwaps&&v.listSwaps.data)||(null==v.listSwaps||null==v.listSwaps.data?null:v.listSwaps.data.length)<1)}}const g2=function(H){return{"display-none":H}};function Ql(H,F){if(1&H&&e._UZ(0,"tr",58),2&H){const v=e.oxw();e.Q6J("ngClass",e.VKq(1,g2,(null==v.listSwaps?null:v.listSwaps.data)&&(null==v.listSwaps||null==v.listSwaps.data?null:v.listSwaps.data.length)>0))}}function Sc(H,F){1&H&&e._UZ(0,"tr",59)}function td(H,F){1&H&&e._UZ(0,"tr",60)}const G0=function(){return["all"]},Z0=function(H){return{"overflow-auto error-border":H,"overflow-auto":!0}},id=function(){return["no_swap"]};let W0=(()=>{class H{constructor(v,V,te,je,Ft){this.logger=v,this.commonService=V,this.store=te,this.boltzService=je,this.camelCaseWithReplace=Ft,this.selectedSwapType=$e.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=$e.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="boltz",this.tableSettingSwapOut={tableId:"swap_out",recordsPerPage:$e.IV,sortBy:"status",sortOrder:$e.Pi.DESCENDING},this.tableSettingSwapIn={tableId:"swap_in",recordsPerPage:$e.IV,sortBy:"status",sortOrder:$e.Pi.DESCENDING},this.swapStateEnum=$e.Qw,this.faHistory=ji.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.listSwaps=new mr.by([]),this.selFilter="",this.pageSize=$e.IV,this.pageSizeOptions=$e.TJ,this.screenSize="",this.screenSizeEnum=$e.cu,this.unSubs=[new Bi.x,new Bi.x,new Bi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(Ur.Pr).pipe((0,en.R)(this.unSubs[0])).subscribe(v=>{this.tableSettingSwapOut=v.pageSettings.find(V=>V.pageId===this.PAGE_ID)?.tables.find(V=>V.tableId===this.tableSettingSwapOut.tableId)||$e.gK.find(V=>V.pageId===this.PAGE_ID)?.tables.find(V=>V.tableId===this.tableSettingSwapOut.tableId),this.tableSettingSwapIn=v.pageSettings.find(V=>V.pageId===this.PAGE_ID)?.tables.find(V=>V.tableId===this.tableSettingSwapIn.tableId)||$e.gK.find(V=>V.pageId===this.PAGE_ID)?.tables.find(V=>V.tableId===this.tableSettingSwapIn.tableId),this.setTableColumns(),this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(v){v.selectedSwapType&&!v.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===$e.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.selectedSwapType===$e.hc.SWAP_IN?(this.displayedColumns=this.screenSize===$e.cu.XS||this.screenSize===$e.cu.SM?JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapIn.recordsPerPage?+this.tableSettingSwapIn.recordsPerPage:$e.IV):(this.displayedColumns=this.screenSize===$e.cu.XS||this.screenSize===$e.cu.SM?JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapOut.recordsPerPage?+this.tableSettingSwapOut.recordsPerPage:$e.IV)}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}getLabel(v){const te=this.nodePageDefs[this.PAGE_ID][this.selectedSwapType===$e.hc.SWAP_IN?this.tableSettingSwapIn.tableId:this.tableSettingSwapOut.tableId].allowedColumns.find(je=>je.column===v);return te?te.label?te.label:this.camelCaseWithReplace.transform(te.column,"_"):this.commonService.titleCase(v)}setFilterPredicate(){this.listSwaps.filterPredicate=(v,V)=>{let te="";switch(this.selFilterBy){case"all":te=JSON.stringify(v).toLowerCase();break;case"status":te=v?.status?this.swapStateEnum[v?.status]:"";break;default:te=typeof v[this.selFilterBy]>"u"?"":"string"==typeof v[this.selFilterBy]?v[this.selFilterBy].toLowerCase():"boolean"==typeof v[this.selFilterBy]?v[this.selFilterBy]?"yes":"no":v[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===te.indexOf(V):te.includes(V)}}onSwapClick(v,V){this.boltzService.swapInfo(v.id||"").pipe((0,en.R)(this.unSubs[1])).subscribe(te=>{this.store.dispatch((0,ai.qR)({payload:{data:{type:$e.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:$e.Qw[(te=this.selectedSwapType===$e.hc.SWAP_IN?te.swap:te.reverseSwap).status],title:"Status",width:50,type:$e.Gi.STRING},{key:"id",value:te.id,title:"ID",width:50,type:$e.Gi.STRING}],[{key:"amount",value:te.onchainAmount?te.onchainAmount:te.expectedAmount?te.expectedAmount:0,title:te.onchainAmount?"Onchain Amount (Sats)":te.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:$e.Gi.NUMBER},{key:"timeoutBlockHeight",value:te.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:$e.Gi.NUMBER}],[{key:"address",value:te.claimAddress?te.claimAddress:te.lockupAddress?te.lockupAddress:"",title:te.claimAddress?"Claim Address":te.lockupAddress?"Lockup Address":"Address",width:100,type:$e.Gi.STRING}],[{key:"invoice",value:te.invoice,title:"Invoice",width:100,type:$e.Gi.STRING}],[{key:"privateKey",value:te.privateKey,title:"Private Key",width:100,type:$e.Gi.STRING}],[{key:"preimage",value:te.preimage,title:"Preimage",width:100,type:$e.Gi.STRING}],[{key:"redeemScript",value:te.redeemScript,title:"Redeem Script",width:100,type:$e.Gi.STRING}],[{key:"lockupTransactionId",value:te.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:$e.Gi.STRING},{key:"transactionId",value:te.claimTransactionId?te.claimTransactionId:te.refundTransactionId?te.refundTransactionId:"",title:te.claimTransactionId?"Claim Transaction ID":te.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:$e.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(v){this.listSwaps=new mr.by(v?[...v]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(V,te)=>V[te]&&isNaN(V[te])?V[te].toLocaleLowerCase():V[te]?+V[te]:null,this.listSwaps.sort?.sort(this.selectedSwapType===$e.hc.SWAP_IN?{id:this.tableSettingSwapIn.sortBy,start:this.tableSettingSwapIn.sortOrder,disableClear:!0}:{id:this.tableSettingSwapOut.sortBy,start:this.tableSettingSwapOut.sortOrder,disableClear:!0}),this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===$e.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(ui.mQ),e.Y36($r.v),e.Y36(Ni.yh),e.Y36(yc),e.Y36(Ul.D3))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-boltz-swaps"]],viewQuery:function(v,V){if(1&v&&(e.Gf(Uo.YE,5),e.Gf(Xc.NW,5)),2&v){let te;e.iGM(te=e.CRH())&&(V.sort=te.first),e.iGM(te=e.CRH())&&(V.paginator=te.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Xc.ye,useValue:(0,$e.pt)("Swaps")}]),e.TTD],decls:71,vars:18,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","lockupAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","expectedAmount"],["matColumnDef","error"],["matColumnDef","privateKey"],["matColumnDef","preimage"],["matColumnDef","redeemScript"],["matColumnDef","invoice"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","lockupTransactionId"],["matColumnDef","claimTransactionId"],["matColumnDef","refundTransactionId"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(v,V){1&v&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-select",7),e.NdJ("ngModelChange",function(je){return V.selFilterBy=je})("selectionChange",function(){return V.selFilter="",V.applyFilter()}),e.YNc(9,o2,2,2,"mat-option",8),e.qZA()(),e.TgZ(10,"mat-form-field",6)(11,"input",9),e.NdJ("ngModelChange",function(je){return V.selFilter=je})("input",function(){return V.applyFilter()})("keyup",function(){return V.applyFilter()}),e.qZA()()()(),e.TgZ(12,"div",10)(13,"div",11),e.YNc(14,l1,1,0,"mat-progress-bar",12),e.TgZ(15,"table",13,14),e.ynx(17,15),e.YNc(18,Sl,2,0,"th",16),e.YNc(19,l2,2,1,"td",17),e.BQk(),e.ynx(20,18),e.YNc(21,c1,2,0,"th",16),e.YNc(22,c2,2,1,"td",17),e.BQk(),e.ynx(23,19),e.YNc(24,k0,2,0,"th",16),e.YNc(25,d1,4,4,"td",17),e.BQk(),e.ynx(26,20),e.YNc(27,Kl,2,0,"th",16),e.YNc(28,N0,4,4,"td",17),e.BQk(),e.ynx(29,21),e.YNc(30,X3,2,0,"th",22),e.YNc(31,W4,4,3,"td",17),e.BQk(),e.ynx(32,23),e.YNc(33,Y4,2,0,"th",22),e.YNc(34,R0,4,3,"td",17),e.BQk(),e.ynx(35,24),e.YNc(36,Zo,2,0,"th",16),e.YNc(37,jl,4,4,"td",17),e.BQk(),e.ynx(38,25),e.YNc(39,H0,2,0,"th",16),e.YNc(40,F0,4,4,"td",17),e.BQk(),e.ynx(41,26),e.YNc(42,El,2,0,"th",16),e.YNc(43,d2,4,4,"td",17),e.BQk(),e.ynx(44,27),e.YNc(45,$3,2,0,"th",16),e.YNc(46,ed,4,4,"td",17),e.BQk(),e.ynx(47,28),e.YNc(48,u2,2,0,"th",16),e.YNc(49,V0,4,4,"td",17),e.BQk(),e.ynx(50,29),e.YNc(51,h2,2,0,"th",22),e.YNc(52,z0,4,3,"td",17),e.BQk(),e.ynx(53,30),e.YNc(54,Mc,2,0,"th",16),e.YNc(55,u1,2,1,"td",17),e.BQk(),e.ynx(56,31),e.YNc(57,Wo,2,0,"th",16),e.YNc(58,wc,2,1,"td",17),e.BQk(),e.ynx(59,32),e.YNc(60,f2,2,0,"th",16),e.YNc(61,p2,2,1,"td",17),e.BQk(),e.ynx(62,33),e.YNc(63,B0,6,0,"th",34),e.YNc(64,K4,3,0,"td",35),e.BQk(),e.ynx(65,36),e.YNc(66,U0,2,1,"td",37),e.BQk(),e.YNc(67,Ql,1,3,"tr",38),e.YNc(68,Sc,1,0,"tr",39),e.YNc(69,td,1,0,"tr",40),e.qZA(),e._UZ(70,"mat-paginator",41),e.qZA()()()),2&v&&(e.xp6(3),e.Q6J("icon",V.faHistory),e.xp6(2),e.hij("",V.swapCaption," History"),e.xp6(3),e.Q6J("ngModel",V.selFilterBy),e.xp6(1),e.Q6J("ngForOf",e.DdM(14,G0).concat(V.displayedColumns.slice(0,-1))),e.xp6(2),e.Q6J("ngModel",V.selFilter),e.xp6(3),e.Q6J("ngIf",!0===V.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",V.listSwaps)("ngClass",e.VKq(15,Z0,"error"===V.flgLoading[0])),e.xp6(52),e.Q6J("matFooterRowDef",e.DdM(17,id)),e.xp6(1),e.Q6J("matHeaderRowDef",V.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",V.displayedColumns),e.xp6(1),e.Q6J("pageSize",V.pageSize)("pageSizeOptions",V.pageSizeOptions)("showFirstLastButtons",V.screenSize!==V.screenSizeEnum.XS))},dependencies:[Ze.mk,Ze.sg,Ze.O5,Ze.PC,ri.Fj,ri.JJ,ri.On,_a.BN,Ki.xw,Ki.Wh,Ki.yH,Sr.oO,Sr.Zl,Ai.lW,zi.KE,$n.Nt,P3.pW,Qi.gD,Qi.$L,ln.ey,Uo.YE,Uo.nU,mr.BZ,mr.fO,mr.as,mr.w1,mr.Dz,mr.nj,mr.mD,mr.Ke,mr.ge,mr.ev,mr.yh,mr.XQ,mr.Gk,mr.Q2,Xc.NW,Tn.$V,Ze.JJ]}),H})();const Y0=function(H){return["../",H]};function _2(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",15),e.NdJ("click",function(){const je=e.CHM(v).$implicit,Ft=e.oxw();return e.KtG(Ft.onSelectedIndexChange(je))}),e._uU(1),e.qZA()}if(2&H){const v=F.$implicit,V=e.oxw();e.Q6J("active",V.activeTab.link===v.link)("routerLink",e.VKq(3,Y0,v.link)),e.xp6(1),e.Oqu(v.name)}}let Ec=(()=>{class H{constructor(v,V,te){this.router=v,this.store=V,this.boltzService=te,this.swapTypeEnum=$e.hc,this.selectedSwapType=$e.hc.SWAP_OUT,this.swaps={},this.swapsData=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"swapout",name:"Swap Out"},{link:"swapin",name:"Swap In"}],this.activeTab=this.links[0],this.unSubs=[new Bi.x,new Bi.x,new Bi.x,new Bi.x]}ngOnInit(){this.boltzService.listSwaps();const v=this.links.find(V=>this.router.url.includes(V.link));this.activeTab=v||this.links[0],this.selectedSwapType=v&&"swapin"===v.link?$e.hc.SWAP_IN:$e.hc.SWAP_OUT,this.router.events.pipe((0,en.R)(this.unSubs[0]),(0,Xn.h)(V=>V instanceof Bn.Av)).subscribe({next:V=>{const te=this.links.find(je=>V.urlAfterRedirects.includes(je.link));this.activeTab=te||this.links[0],this.selectedSwapType=te&&"swapin"===te.link?$e.hc.SWAP_IN:$e.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,en.R)(this.unSubs[1])).subscribe({next:V=>{this.swaps=V,this.swapsData=this.selectedSwapType===$e.hc.SWAP_IN&&V.swaps?V.swaps:this.selectedSwapType===$e.hc.SWAP_OUT&&V.reverseSwaps?V.reverseSwaps:[],this.flgLoading[0]=!1},error:V=>{this.flgLoading[0]="error",this.emptyTableMessage=V.message?V.message:"No swap "+(this.selectedSwapType===$e.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(v){"swapin"===v.link?(this.selectedSwapType=$e.hc.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=$e.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(v){this.boltzService.serviceInfo().pipe((0,en.R)(this.unSubs[2])).subscribe({next:V=>{this.store.dispatch((0,ai.qR)({payload:{data:{serviceInfo:V,direction:v,component:J3}}}))}})}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(Bn.F0),e.Y36(Ni.yh),e.Y36(yc))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-boltz-root"]],decls:18,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"botlz-icon-sm","mr-1"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1)(2,"g",2)(3,"g",3),e._UZ(4,"circle",4)(5,"path",5)(6,"path",6),e.qZA()()(),e.kcU(),e.TgZ(7,"span",7),e._uU(8,"Boltz"),e.qZA()(),e.TgZ(9,"div",8)(10,"mat-card")(11,"mat-card-content",9)(12,"nav",10),e.YNc(13,_2,2,5,"div",11),e.qZA(),e.TgZ(14,"div",12)(15,"button",13),e.NdJ("click",function(){return V.onSwap(V.selectedSwapType)}),e._uU(16),e.qZA()(),e._UZ(17,"rtl-boltz-swaps",14),e.qZA()()()),2&v&&(e.xp6(13),e.Q6J("ngForOf",V.links),e.xp6(3),e.hij("Start ",V.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",V.selectedSwapType)("swapsData",V.swapsData)("flgLoading",V.flgLoading)("emptyTableMessage",V.emptyTableMessage))},dependencies:[Ze.sg,Ki.xw,Ki.Wh,Ki.yH,Ai.lW,tr.a8,tr.dn,ds.BU,ds.Nj,Bn.rH,W0]}),H})();class Ia{constructor(F){this.help=F}}function f1(H,F){if(1&H&&(e.TgZ(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.qZA()(),e.TgZ(4,"mat-panel-description",9),e._UZ(5,"span",10),e.TgZ(6,"a",11),e._uU(7),e.qZA()()()),2&H){const v=e.oxw().$implicit,V=e.oxw();e.xp6(3),e.Oqu(v.help.question),e.xp6(2),e.Q6J("innerHTML",v.help.answer,e.oJD),e.xp6(1),e.Q6J("routerLink",V.flgLoggedIn?v.help.link:"/login"),e.xp6(1),e.Oqu(V.flgLoggedIn?v.help.linkCaption:"Login to go to the page")}}function K0(H,F){if(1&H&&(e.TgZ(0,"div",6),e.YNc(1,f1,8,4,"mat-expansion-panel",7),e.qZA()),2&H){const v=F.$implicit,V=e.oxw();e.xp6(1),e.Q6J("ngIf","ALL"===v.help.lnImplementation||v.help.lnImplementation===V.selNode.lnImplementation)}}let rd=(()=>{class H{constructor(v,V){this.store=v,this.sessionService=V,this.helpTopics=[],this.faQuestion=ji.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new Bi.x,new Bi.x,new Bi.x,new Bi.x]}ngOnInit(){this.store.select(zr.dT).pipe((0,en.R)(this.unSubs[0])).subscribe(v=>{this.selNode=v,this.selNode.lnImplementation&&""!==this.selNode.lnImplementation.trim()&&(this.LNPLink="/"+this.selNode.lnImplementation.toLowerCase()+"/",this.addHelpTopics())}),this.sessionService.watchSession().pipe((0,en.R)(this.unSubs[1])).subscribe(v=>{this.flgLoggedIn=!!v.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}addHelpTopics(){this.helpTopics=[],this.helpTopics.push(new Ia({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 Ia({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 Ia({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 Ia({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 Ia({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 Ia({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 Ia({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 Ia({question:"Offers",answer:'Send offer payments, create offer invoices and bookmark paid offers on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayment for bolt12 offer invoice can be done on "Payments" tab:\n 1. Click on "Send Payment" button.\n 2. Select "Offer" option on the modal.\n 2. Offer Request - Input offer request (Bolt12 format) in the input box.\n 3. Bookmark - Select the checkbox to bookmark this offer for future use.\nOffers tab is for creating bolt12 offer invoice on your node:\n 1. Click on "Create Offer" button.\n 2. Description - Description you want to provide on the offer invoice.\n 3. Amount - Amount for the offer invoice.\n 4. Vendor - Vendor of the offer.\nPaid offer bookmarks shows the list of paid offers saved for future payments.\n',link:this.LNPLink+"transactions/offers",linkCaption:"Offers",lnImplementation:"CLN"})),this.helpTopics.push(new Ia({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 Ia({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 Ia({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 Ia({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 Ia({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 Ia({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 Ia({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 Ia({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 Ia({question:"Node Settings",answer:'RTL offers certain customizations on the UI to personalize your experience on the app\nGo to "Node Config" page to access the customization options.\nNode Layout Options\n 1. User Persona - Two options are available to change the dashboard based on the persona.\n 2. Currency Unit - You can choose your preferred fiat currency, to view the onchain and channel balances in the choosen fiat currency.\n 3. Other customizations include day and night mode and a choice of color themes to select from.\nServices Options\n Loop (LND only), Boltz (LND only) & Peerswap (CLN only) services can be configured.\nExperimental Options (CLN only)\n Offers and Liquidity Ads can be enabled/disabled.\nShow LN Config (if configured)\n Shows lightning config file.\n',link:"../config/layout",linkCaption:"Node Settings",lnImplementation:"ALL"})),this.helpTopics.push(new Ia({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(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(Ni.yh),e.Y36(oo.m))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-help"]],decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["fxFlex","100"],["class","flat-expansion-panel help-expansion mb-2px",4,"ngIf"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],[1,"pre-wrap",3,"innerHTML"],[1,"mt-2",3,"routerLink"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Help"),e.qZA()(),e.TgZ(5,"div",4)(6,"div",0),e.YNc(7,K0,2,1,"div",5),e.qZA()()()),2&v&&(e.xp6(2),e.Q6J("icon",V.faQuestion),e.xp6(5),e.Q6J("ngForOf",V.helpTopics))},dependencies:[Ze.sg,Ze.O5,_a.BN,Ki.xw,Ki.Wh,Ki.yH,Dr.ib,Dr.yz,Dr.yK,Dr.u4,Bn.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),H})();var j0=p(9841);function ad(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}let Q0=(()=>{class H{constructor(v,V){this.dialogRef=v,this.store=V,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,ai.M6)({payload:{twoFAToken:this.token}}))}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(wr.so),e.Y36(Ni.yh))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-login-token"]],decls:17,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["tokenForm","ngForm"],["autoFocus","","matInput","","placeholder","Token","type","text","id","token","name","token","tabindex","2","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","submit"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Two Factor Token"),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return V.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7,8),e.NdJ("ngSubmit",function(){return V.onVerifyToken()}),e.TgZ(11,"mat-form-field")(12,"input",9),e.NdJ("ngModelChange",function(je){return V.token=je}),e.qZA(),e.YNc(13,ad,2,0,"mat-error",10),e.qZA(),e.TgZ(14,"div",11)(15,"button",12),e._uU(16,"Verify Token"),e.qZA()()()()()()),2&v&&(e.xp6(12),e.Q6J("ngModel",V.token),e.xp6(1),e.Q6J("ngIf",!V.token))},dependencies:[Ze.O5,ri._Y,ri.Fj,ri.JJ,ri.JL,ri.Q7,ri.On,ri.F,Ki.xw,Ki.Wh,Ki.yH,Ai.lW,tr.dk,tr.dn,zi.TO,zi.KE,$n.Nt,wn.h]}),H})();function Tl(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function q0(H,F){if(1&H&&(e.TgZ(0,"p",21)(1,"mat-icon",22),e._uU(2,"close"),e.qZA(),e._uU(3),e.qZA()),2&H){const v=e.oxw();e.xp6(3),e.hij(" ",v.loginErrorMessage," ")}}const sd=function(H){return{"padding-gap-large":H}},Al=function(H,F){return{"font-size-200":H,"font-size-300":F}};let Eo=(()=>{class H{constructor(v,V,te,je){this.logger=v,this.store=V,this.rtlEffects=te,this.commonService=je,this.faUnlockAlt=ji.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=$e.cu,this.loginErrorMessage="",this.apiCallStatusEnum=$e.Bn,this.unSubs=[new Bi.x,new Bi.x,new Bi.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,j0.a)([this.store.select(zr.ul),this.store.select(zr.Sr)]).pipe((0,en.R)(this.unSubs[0])).subscribe(([v,V])=>{this.loginErrorMessage="",v.status===$e.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof v.message?JSON.stringify(v.message):v.message),this.logger.error(v.message)),V.status===$e.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof V.message?JSON.stringify(V.message):V.message),this.logger.error(V.message))}),this.store.select(zr.Yj).pipe((0,en.R)(this.unSubs[1])).subscribe(v=>{this.appConfig=v,this.logger.info(v)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,ai.qR)({payload:{maxWidth:"35rem",data:{component:Q0}}})),this.rtlEffects.closeAlert.pipe((0,Wr.q)(1)).subscribe(v=>{v&&this.store.dispatch((0,ai.x4)({payload:{password:na(this.password),defaultPassword:$e.kO.includes(this.password.toLowerCase()),twoFAToken:v.twoFAToken}}))})):this.store.dispatch((0,ai.x4)({payload:{password:na(this.password),defaultPassword:$e.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(ui.mQ),e.Y36(Ni.yh),e.Y36(Br.V),e.Y36($r.v))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-login"]],decls:25,vars:12,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","center stretch",1,"login-container"],["fxLayout","row","fxFlex","50","fxLayoutAlign","center stretch"],["fxLayout","row","fxFlex","45","fxLayoutAlign","center stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxFlex","35","fxLayoutAlign","center center",1,"bg-primary"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"mt-5px","mb-0","px-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["loginForm","ngForm"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","placeholder","Password","id","password","name","password","tabindex","1","required","",3,"type","ngModel","ngModelChange"],["tabindex","2","matSuffix","",3,"click"],[4,"ngIf"],["fxFlex","100","class","color-warn pre-wrap","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],["fxFlex","100","fxLayoutAlign","start start",1,"color-warn","pre-wrap"],[1,"mr-1","icon-small"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"div",6)(7,"mat-card-header",7)(8,"mat-card-title",8)(9,"span",9),e._uU(10,"Welcome"),e.qZA()()(),e.TgZ(11,"mat-card-content",10)(12,"form",11,12)(14,"mat-form-field",13)(15,"input",14),e.NdJ("ngModelChange",function(je){return V.password=je}),e.qZA(),e.TgZ(16,"mat-icon",15),e.NdJ("click",function(){return V.flgShow=!V.flgShow}),e._uU(17),e.qZA(),e.YNc(18,Tl,2,0,"mat-error",16),e.qZA(),e.YNc(19,q0,4,1,"p",17),e.TgZ(20,"div",18)(21,"button",19),e.NdJ("click",function(){return V.resetData()}),e._uU(22,"Clear"),e.qZA(),e.TgZ(23,"button",20),e.NdJ("click",function(){return V.onLogin()}),e._uU(24,"Login"),e.qZA()()()()()()()()()),2&v&&(e.xp6(6),e.Q6J("ngClass",e.VKq(7,sd,V.screenSize===V.screenSizeEnum.XS)),e.xp6(2),e.Q6J("ngClass",e.WLB(9,Al,V.screenSize===V.screenSizeEnum.XS,V.screenSize!==V.screenSizeEnum.XS)),e.xp6(7),e.Q6J("type",V.flgShow?"text":"password")("ngModel",V.password),e.xp6(2),e.Oqu(V.flgShow?"visibility_off":"visibility"),e.xp6(1),e.Q6J("ngIf",!V.password),e.xp6(1),e.Q6J("ngIf",""!==V.loginErrorMessage))},dependencies:[Ze.mk,Ze.O5,ri._Y,ri.Fj,ri.JJ,ri.JL,ri.Q7,ri.On,ri.F,Ki.xw,Ki.Wh,Ki.yH,Sr.oO,Ai.lW,tr.a8,tr.dk,tr.dn,tr.n5,Yr.Hw,zi.TO,zi.KE,zi.R9,$n.Nt,wn.h],styles:[".login-container[_ngcontent-%COMP%]{height:90vh}.login-container[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{height:30rem}.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 56.25em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:37%}}@media only screen and (max-width: 37.5em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:70%}}.login-container[_ngcontent-%COMP%] .material-icons.mat-icon[_ngcontent-%COMP%]{font-size:120%;cursor:pointer}"]}),H})();var b2=p(9442);let x2=(()=>{class H{constructor(v,V){this.activatedRoute=v,this.router=V,this.error={errorCode:"",errorMessage:""},this.faTimes=ji.NBC,this.unsubs=[new Bi.x,new Bi.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,en.R)(this.unsubs[0])).subscribe(v=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(Bn.gz),e.Y36(Bn.F0))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-error"]],decls:13,vars:3,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","center center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","padding-gap-large"],[1,"font-size-300","font-bold-500"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-large"],[1,"box-text","font-size-120"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6),e.qZA()()(),e.TgZ(7,"mat-card-content",6)(8,"div",7),e._uU(9),e.qZA(),e.TgZ(10,"span",8)(11,"button",9),e.NdJ("click",function(){return V.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()),2&v&&(e.xp6(4),e.Q6J("icon",V.faTimes),e.xp6(2),e.hij("Error ",V.error.errorCode,""),e.xp6(3),e.Oqu(V.error.errorMessage))},dependencies:[_a.BN,Ki.xw,Ki.Wh,Ki.yH,Ai.lW,tr.a8,tr.dk,tr.dn,tr.n5],encapsulation:2}),H})();var es=p(1643),J0=p(8104),C2=p(9843),X0=p(6534);function M2(H,F){1&H&&e._UZ(0,"span",16)}function j4(H,F){1&H&&e._UZ(0,"span",17)}function od(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"form",18,4)(2,"div",19),e._UZ(3,"fa-icon",2),e.TgZ(4,"span"),e._uU(5,"Please ensure that "),e.TgZ(6,"strong"),e._uU(7,"experimental-offers"),e.qZA(),e._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.TgZ(9,"strong")(10,"a",20),e._uU(11,"here"),e.qZA()(),e._uU(12," to learn more about Core Lightning offers."),e.qZA()(),e.TgZ(13,"h4",21),e._uU(14,"Description"),e.qZA(),e.TgZ(15,"span"),e._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),e.qZA(),e.TgZ(17,"h4",21),e._uU(18,"Links"),e.qZA(),e.TgZ(19,"span")(20,"a",22),e._uU(21,"Core lightning Bolt12"),e.qZA()(),e._UZ(22,"mat-divider",23),e.TgZ(23,"div",24),e._UZ(24,"fa-icon",2),e.TgZ(25,"span"),e._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),e.qZA()(),e.TgZ(27,"mat-slide-toggle",25),e.NdJ("ngModelChange",function(te){e.CHM(v);const je=e.oxw(2);return e.KtG(je.enableOffers=te)})("change",function(){e.CHM(v);const te=e.oxw(2);return e.KtG(te.onUpdateFeature())}),e._uU(28),e.qZA()()}if(2&H){const v=e.oxw(2);e.xp6(3),e.Q6J("icon",v.faInfoCircle),e.xp6(19),e.Q6J("inset",!0),e.xp6(2),e.Q6J("icon",v.faExclamationTriangle),e.xp6(3),e.Q6J("ngModel",v.enableOffers),e.xp6(1),e.hij("Enable Offers ",v.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function p1(H,F){if(1&H&&(e.TgZ(0,"div")(1,"div",28),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"experimental-dual-fund"),e.qZA(),e._uU(7," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.TgZ(8,"strong")(9,"a",29),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about Core Lightning Liquidity Ads."),e.qZA()()()),2&H){const v=e.oxw(3);e.xp6(2),e.Q6J("icon",v.faExclamationTriangle)}}function w2(H,F){if(1&H&&(e.TgZ(0,"mat-option",47),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&H){const v=F.$implicit;e.Q6J("value",v),e.xp6(1),e.hij(" ",e.lcZ(2,2,v.id)," ")}}function $0(H,F){if(1&H&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&H){const v=e.oxw(4);e.xp6(1),e.hij("",v.selPolicyType.placeholder," is required.")}}function Ll(H,F){if(1&H&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&H){const v=e.oxw(4);e.xp6(1),e.AsE("",v.selPolicyType.placeholder," must be greater than or equal to ",v.selPolicyType.min,".")}}function ld(H,F){if(1&H&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&H){const v=e.oxw(4);e.xp6(1),e.AsE("",v.selPolicyType.placeholder," must be less than or equal to ",v.selPolicyType.max,".")}}function S2(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base fee is required."),e.qZA())}function Tc(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base basis is required."),e.qZA())}function cd(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing base fee is required."),e.qZA())}function m1(H,F){1&H&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing fee rate is required."),e.qZA())}const g1=function(H,F){return{"alert-danger":H,"alert-info":F}};function Dl(H,F){if(1&H&&(e.TgZ(0,"h4",48)(1,"span",49),e._uU(2),e.qZA()()),2&H){const v=e.oxw(4);e.xp6(1),e.Q6J("ngClass",e.WLB(2,g1,!!v.updateMsg.error,!!v.updateMsg.data)),e.xp6(1),e.hij(" ",v.updateMsg.error&&""!==v.updateMsg.error?"Error: "+v.updateMsg.error||0:v.updateMsg.data&&""!==v.updateMsg.data?v.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function e3(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"div",30)(1,"div",31),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"These config changes should be configured permanently via the config file on your CLN node otherwise the policy would need to be configured again, if your node restarts."),e.qZA()(),e.TgZ(5,"div",32)(6,"mat-form-field",33)(7,"mat-select",34),e.NdJ("ngModelChange",function(te){e.CHM(v);const je=e.oxw(3);return e.KtG(je.selPolicyType=te)})("selectionChange",function(){e.CHM(v);const te=e.oxw(3);return e.KtG(te.policyMod=null)}),e.YNc(8,w2,3,4,"mat-option",35),e.qZA()(),e.TgZ(9,"mat-form-field",36)(10,"input",37,38),e.NdJ("ngModelChange",function(te){e.CHM(v);const je=e.oxw(3);return e.KtG(je.policyMod=te)}),e.qZA(),e.TgZ(12,"mat-hint"),e._uU(13),e.qZA(),e.YNc(14,$0,2,1,"mat-error",26),e.YNc(15,Ll,2,2,"mat-error",26),e.YNc(16,ld,2,2,"mat-error",26),e.qZA()(),e.TgZ(17,"div",32)(18,"mat-form-field",36)(19,"input",39),e.NdJ("ngModelChange",function(te){e.CHM(v);const je=e.oxw(3);return e.KtG(je.lease_fee_base_sat=te)}),e.qZA(),e.YNc(20,S2,2,0,"mat-error",26),e.qZA(),e.TgZ(21,"mat-form-field",36)(22,"input",40),e.NdJ("ngModelChange",function(te){e.CHM(v);const je=e.oxw(3);return e.KtG(je.lease_fee_basis=te)}),e.qZA(),e.YNc(23,Tc,2,0,"mat-error",26),e.qZA()(),e.TgZ(24,"div",32)(25,"mat-form-field",36)(26,"input",41),e.NdJ("ngModelChange",function(te){e.CHM(v);const je=e.oxw(3);return e.KtG(je.channelFeeMaxBaseSat=te)}),e.qZA(),e.YNc(27,cd,2,0,"mat-error",26),e.qZA(),e.TgZ(28,"mat-form-field",36)(29,"input",42),e.NdJ("ngModelChange",function(te){e.CHM(v);const je=e.oxw(3);return e.KtG(je.channelFeeMaxProportional=te)}),e.qZA(),e.YNc(30,m1,2,0,"mat-error",26),e.qZA()(),e.YNc(31,Dl,3,5,"h4",43),e.TgZ(32,"div",44)(33,"button",45),e.NdJ("click",function(){e.CHM(v);const te=e.oxw(3);return e.KtG(te.onResetPolicy())}),e._uU(34,"Reset"),e.qZA(),e.TgZ(35,"button",46),e.NdJ("click",function(){e.CHM(v);const te=e.oxw(3);return e.KtG(te.onUpdateFundingPolicy())}),e._uU(36,"Update"),e.qZA()()()}if(2&H){const v=e.oxw(3);e.xp6(2),e.Q6J("icon",v.faExclamationTriangle),e.xp6(5),e.Q6J("ngModel",v.selPolicyType),e.xp6(1),e.Q6J("ngForOf",v.policyTypes),e.xp6(2),e.Q6J("ngModel",v.policyMod)("placeholder",v.selPolicyType.placeholder)("step","fixed"===v.selPolicyType.id?1e3:10)("min",v.selPolicyType.min)("max",v.selPolicyType.max),e.xp6(3),e.lnq("",v.selPolicyType.placeholder," should be between ",v.selPolicyType.min," and ",v.selPolicyType.max,""),e.xp6(1),e.Q6J("ngIf",!v.policyMod),e.xp6(1),e.Q6J("ngIf",v.policyMod<v.selPolicyType.min),e.xp6(1),e.Q6J("ngIf",v.policyMod>v.selPolicyType.max),e.xp6(3),e.Q6J("ngModel",v.lease_fee_base_sat),e.xp6(1),e.Q6J("ngIf",!v.lease_fee_base_sat),e.xp6(2),e.Q6J("ngModel",v.lease_fee_basis),e.xp6(1),e.Q6J("ngIf",!v.lease_fee_basis),e.xp6(3),e.Q6J("ngModel",v.channelFeeMaxBaseSat),e.xp6(1),e.Q6J("ngIf",!v.channelFeeMaxBaseSat),e.xp6(2),e.Q6J("ngModel",v.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",!v.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",v.flgUpdateCalled)}}function E2(H,F){if(1&H&&(e.TgZ(0,"form",18,4),e.YNc(2,p1,12,1,"div",26),e.YNc(3,e3,37,23,"div",27),e.qZA()),2&H){const v=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!v.features[1].enabled),e.xp6(1),e.Q6J("ngIf",v.features[1].enabled)}}function dd(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"mat-expansion-panel",9),e.NdJ("opened",function(){const je=e.CHM(v).index,Ft=e.oxw();return e.KtG(Ft.onPanelExpanded(je))}),e.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title",10)(3,"h4",11),e._uU(4),e.qZA(),e.TgZ(5,"h4",11),e.YNc(6,M2,1,0,"span",12),e.YNc(7,j4,1,0,"span",13),e._uU(8),e.qZA()()(),e.TgZ(9,"div",14),e.YNc(10,od,29,5,"form",15),e.YNc(11,E2,4,2,"form",15),e.qZA()()}if(2&H){const v=F.$implicit,V=F.index;e.Q6J("expanded",!1),e.xp6(4),e.Oqu(v.name),e.xp6(2),e.Q6J("ngIf",v.enabled),e.xp6(1),e.Q6J("ngIf",!v.enabled),e.xp6(1),e.hij(" ",v.enabled?"Enabled":"Disabled"," "),e.xp6(2),e.Q6J("ngIf",0===V),e.xp6(1),e.Q6J("ngIf",1===V)}}const ql=Bn.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([p.e(267),p.e(636)]).then(p.bind(p,1636)).then(H=>H.LNDModule),canActivate:[es.a1]},{path:"cln",loadChildren:()=>Promise.all([p.e(267),p.e(564)]).then(p.bind(p,9564)).then(H=>H.CLNModule),canActivate:[es.a1]},{path:"ecl",loadChildren:()=>Promise.all([p.e(267),p.e(258)]).then(p.bind(p,7258)).then(H=>H.ECLModule),canActivate:[es.a1]},{path:"settings",component:Ht,canActivate:[es.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:ia,canActivate:[es.a1]},{path:"auth",component:Vl,canActivate:[es.a1]},{path:"bconfig",component:co,canActivate:[es.a1]}]},{path:"config",component:Ue,canActivate:[es.a1],children:[{path:"",pathMatch:"full",redirectTo:"nodesettings"},{path:"nodesettings",component:N1,canActivate:[es.a1]},{path:"pglayout",component:D3,canActivate:[es.a1]},{path:"services",component:H4,canActivate:[es.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:F1,canActivate:[es.a1]},{path:"boltz",component:O3,canActivate:[es.a1]}]},{path:"experimental",component:(()=>{class H{constructor(v,V,te,je){this.logger=v,this.store=V,this.dataService=te,this.commonService=je,this.faInfoCircle=ji.sqG,this.faExclamationTriangle=ji.eHv,this.faCode=ji.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=$e.gB,this.selPolicyType=$e.gB[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new Bi.x,new Bi.x,new Bi.x,new Bi.x,new Bi.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,en.R)(this.unSubs[0])).subscribe({next:v=>{this.logger.info("Received List Configs: "+JSON.stringify(v)),this.features[1].enabled=!!v["experimental-dual-fund"]},error:v=>{this.logger.error("List Configs Error: "+JSON.stringify(v)),this.features[1].enabled=!1}}),this.store.select(zr.dT).pipe((0,en.R)(this.unSubs[1])).subscribe(v=>{this.selNode=v,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(Bo.Rn).pipe((0,en.R)(this.unSubs[2])).subscribe(v=>{this.policyTypes[2].max=v.balance.totalBalance||1e3})}onPanelExpanded(v){1===v&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,en.R)(this.unSubs[3])).subscribe(V=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(V)),this.fundingPolicy=V,this.fundingPolicy.policy&&(this.selPolicyType=$e.gB.find(te=>te.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,ai.jS)({payload:{uiMessage:$e.m6.UPDATE_SETTING,service:$e.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,er.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,In.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,mn.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!0,this.updateMsg={},this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,1e3*(this.lease_fee_base_sat||0),this.lease_fee_basis,1e3*(this.channelFeeMaxBaseSat||0),this.channelFeeMaxProportional?this.channelFeeMaxProportional/1e3:0).pipe((0,en.R)(this.unSubs[4])).subscribe({next:v=>{this.logger.info(v),this.fundingPolicy=v,this.updateMsg={data:"Compact Lease: "+v.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:v=>{this.logger.error(v),this.updateMsg={error:this.commonService.extractErrorMessage(v,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?$e.gB.find(v=>v.id===this.fundingPolicy.policy)||this.policyTypes[0]:$e.gB[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(ui.mQ),e.Y36(Ni.yh),e.Y36(J0.D),e.Y36($r.v))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","flat-expansion-panel my-1",3,"expanded","opened",4,"ngFor","ngForOf"],[1,"flat-expansion-panel","my-1",3,"expanded","opened"],["fxFlex","100","fxLayoutAlign","space-between center"],[1,"font-bold-500"],["class","dot green",4,"ngIf"],["class","dot yellow",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],[1,"dot","green"],[1,"dot","yellow"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-info"],["href","http://bolt12.org","target","_blank"],[1,"mt-2"],["href","https://github.com/lightningnetwork/lightning-rfc/pull/798 ","target","blank"],[1,"my-2",3,"inset"],[1,"alert","alert-warn"],["autoFocus","","tabindex","1","color","primary","name","enableOfr",1,"my-1",3,"ngModel","ngModelChange","change"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["href","https://medium.com/blockstream/setting-up-liquidity-ads-in-c-lightning-54e4c59c091d","target","_blank"],["fxLayout","column"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn","mb-2"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","placeholder","Policy","name","policy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"ngModel","placeholder","step","min","max","ngModelChange"],["plcMod","ngModel"],["matInput","","placeholder","Lease Base Fee (Sats)","type","number","step","100","min","0","tabindex","3","required","","name","lease_fee_base_sat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Lease Base Basis (bps)","type","number","step","1","min","0","tabindex","4","required","","name","lease_fee_basis",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Base Fee (Sats)","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Fee Rate (ppm)","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModel","ngModelChange"],["fxLayoutAlign","start stretch","class","font-bold-500 mt-2",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxLayoutAlign","start stretch",1,"font-bold-500","mt-2"],["fxFlex","100",1,"alert",3,"ngClass"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Experimental features should be enabled with caution. Many such features may be implementation specific and not ratified for the BOLT spec. Enabling these may still result in a broken experience. Referencing relevant feature documentation is highly advised before enabling."),e.qZA()(),e.TgZ(5,"form",3,4)(7,"div",5),e._UZ(8,"fa-icon",6),e.TgZ(9,"span",7),e._uU(10,"Features"),e.qZA()(),e.TgZ(11,"mat-accordion"),e.YNc(12,dd,12,7,"mat-expansion-panel",8),e.qZA()()()),2&v&&(e.xp6(2),e.Q6J("icon",V.faInfoCircle),e.xp6(6),e.Q6J("icon",V.faCode),e.xp6(4),e.Q6J("ngForOf",V.features))},dependencies:[Ze.mk,Ze.sg,Ze.O5,ri._Y,ri.Fj,ri.wV,ri.JJ,ri.JL,ri.Q7,ri.qQ,ri.Fd,ri.On,ri.F,_a.BN,Ki.xw,Ki.Wh,Ki.yH,Sr.oO,Ai.lW,Dr.pp,Dr.ib,Dr.yz,Dr.yK,zi.TO,zi.KE,zi.bx,$n.Nt,cr.d,Qi.gD,ln.ey,Vo.Rr,Tn.$V,wn.h,C2.F,X0.q,Ze.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),H})(),canActivate:[es.a1]},{path:"lnconfig",component:cn,canActivate:[es.a1]}]},{path:"services",component:z4,canActivate:[es.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:il},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:Ec}]},{path:"help",component:rd},{path:"login",component:Eo},{path:"error",component:x2},{path:"**",component:b2.w}],{scrollPositionRestoration:"enabled"});var _1=p(9470),hd=p(8878),fd=p(1572),A2=p(3267),v1=p(3683),L2=p(7851),mo=p(5423);const Il={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:ji.HLz,link:"/lnd/home",userPersona:$e.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:ji.nNP,link:"/lnd/onchain",userPersona:$e.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:ji.BDt,link:"/lnd/connections",userPersona:$e.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:ji.FVb,link:"/lnd/connections",userPersona:$e.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:ji.Ssp,link:"/lnd/transactions",userPersona:$e.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:ji.SuH,link:"/lnd/routing",userPersona:$e.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:ji.koM,link:"/lnd/reports",userPersona:$e.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:ji.wn1,link:"/lnd/graph",userPersona:$e.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:ji.hkK,link:"/lnd/messages",userPersona:$e.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:ji.q7m,link:"/lnd/channelbackup",userPersona:$e.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:ji.TmZ,link:"/lnd/network",userPersona:$e.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:ji.xf3,link:"/lnd/network",userPersona:$e.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:ji.Krp,link:"/services/loop",userPersona:$e.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:ji.vqe,link:"/services/loop",userPersona:$e.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:$e.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:ji.CgH,link:"/config",userPersona:$e.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:ji.Psp,link:"/help",userPersona:$e.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:ji.HLz,link:"/cln/home",userPersona:$e.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:ji.nNP,link:"/cln/onchain",userPersona:$e.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:ji.BDt,link:"/cln/connections",userPersona:$e.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:ji.FVb,link:"/cln/connections",userPersona:$e.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:ji.Acd,link:"/cln/liquidityads",userPersona:$e.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:ji.Ssp,link:"/cln/transactions",userPersona:$e.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:ji.SuH,link:"/cln/routing",userPersona:$e.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:ji.koM,link:"/cln/reports",userPersona:$e.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:ji.wn1,link:"/cln/graph",userPersona:$e.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:ji.hkK,link:"/cln/messages",userPersona:$e.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:ji.USL,link:"/cln/rates",userPersona:$e.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:ji.xf3,link:"/cln/rates",userPersona:$e.ol.MERCHANT}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:ji.CgH,link:"/config",userPersona:$e.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:ji.Psp,link:"/help",userPersona:$e.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:ji.HLz,link:"/ecl/home",userPersona:$e.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:ji.nNP,link:"/ecl/onchain",userPersona:$e.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:ji.BDt,link:"/ecl/connections",userPersona:$e.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:ji.FVb,link:"/ecl/connections",userPersona:$e.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:ji.Ssp,link:"/ecl/transactions",userPersona:$e.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:ji.SuH,link:"/ecl/routing",userPersona:$e.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:ji.koM,link:"/ecl/reports",userPersona:$e.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:ji.wn1,link:"/ecl/graph",userPersona:$e.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:ji.CgH,link:"/config",userPersona:$e.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:ji.Psp,link:"/help",userPersona:$e.ol.ALL}]};function t3(H,F){if(1&H&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&H){const v=F.$implicit;e.Q6J("value",v.index),e.xp6(1),e.AsE(" ",v.lnNode," (",v.lnImplementation,") ")}}function Ac(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"mat-select",9),e.NdJ("selectionChange",function(te){e.CHM(v);const je=e.oxw();return e.KtG(je.onNodeSelectionChange(te.value))}),e.YNc(1,t3,2,3,"mat-option",10),e.qZA()}if(2&H){const v=e.oxw();e.Q6J("value",v.selConfigNodeIndex),e.xp6(1),e.Q6J("ngForOf",v.appConfig.nodes)}}function md(H,F){if(1&H&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&H){const v=e.oxw().$implicit;e.oxw(2);const V=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet","boltzIconBlock"===v.icon?V:null)}}function Ol(H,F){if(1&H&&e._UZ(0,"fa-icon",23),2&H){const v=e.oxw().$implicit;e.Q6J("icon",v.icon)}}function Lc(H,F){if(1&H&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&H){const v=e.oxw().$implicit;e.xp6(1),e.Oqu(v.icon)}}function gd(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"mat-tree-node",15)(1,"div",16),e.NdJ("click",function(){const je=e.CHM(v).$implicit,Ft=e.oxw(2);return e.KtG(Ft.onChildNavClicked(je))}),e.TgZ(2,"div",17),e.YNc(3,md,2,1,"span",18),e.YNc(4,Ol,1,1,"fa-icon",19),e.YNc(5,Lc,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()()()()}if(2&H){const v=F.$implicit;e.s9C("routerLink",v.link),e.xp6(3),e.Q6J("ngIf","SVG"===v.iconType),e.xp6(1),e.Q6J("ngIf","FA"===v.iconType),e.xp6(1),e.Q6J("ngIf",!v.iconType),e.xp6(2),e.Oqu(v.name)}}function q4(H,F){if(1&H&&(e.TgZ(0,"span",33),e.GkF(1,22),e.qZA()),2&H){const v=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",v.icon)}}function D2(H,F){if(1&H&&e._UZ(0,"fa-icon",23),2&H){const v=e.oxw().$implicit;e.Q6J("icon",v.icon)}}function _d(H,F){if(1&H&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&H){const v=e.oxw().$implicit;e.xp6(1),e.Oqu(v.icon)}}function vd(H,F){if(1&H&&(e.TgZ(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),e.YNc(3,q4,2,1,"span",28),e.YNc(4,D2,1,1,"fa-icon",19),e.YNc(5,_d,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e.TgZ(8,"button",29)(9,"mat-icon",30),e._uU(10),e.qZA()()(),e.TgZ(11,"div",31),e.GkF(12,32),e.qZA()()),2&H){const v=F.$implicit,V=e.oxw(2);e.xp6(3),e.Q6J("ngIf","SVG"===v.iconType),e.xp6(1),e.Q6J("ngIf","FA"===v.iconType),e.xp6(1),e.Q6J("ngIf",!v.iconType),e.xp6(2),e.Oqu(v.name),e.xp6(1),e.uIk("aria-label","toggle "+v.name),e.xp6(2),e.Oqu(V.treeControlNested.isExpanded(v)?"arrow_drop_up":"arrow_drop_down"),e.xp6(1),e.ekj("tree-children-invisible",!V.treeControlNested.isExpanded(v))}}function i3(H,F){if(1&H&&(e.TgZ(0,"mat-tree",5,12),e.YNc(2,gd,8,5,"mat-tree-node",13),e.YNc(3,vd,13,8,"mat-nested-tree-node",14),e.qZA()),2&H){const v=e.oxw();e.Q6J("dataSource",v.navMenus)("treeControl",v.treeControlNested),e.xp6(3),e.Q6J("matTreeNodeDefWhen",v.hasChild)}}function n3(H,F){if(1&H&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&H){const v=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",v.icon)}}function yd(H,F){if(1&H&&e._UZ(0,"fa-icon",36),2&H){const v=e.oxw().$implicit;e.s9C("matTooltip",v.name),e.Q6J("icon",v.icon)}}function I2(H,F){if(1&H&&(e.TgZ(0,"mat-icon",37),e._uU(1),e.qZA()),2&H){const v=e.oxw().$implicit;e.s9C("matTooltip",v.name),e.xp6(1),e.Oqu(v.icon)}}function Dc(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const je=e.CHM(v).$implicit,Ft=e.oxw();return e.KtG(Ft.onShowData(je))}),e.YNc(1,n3,2,1,"span",18),e.YNc(2,yd,1,2,"fa-icon",34),e.YNc(3,I2,2,2,"mat-icon",35),e.TgZ(4,"span"),e._uU(5),e.qZA()()}if(2&H){const v=F.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===v.iconType),e.xp6(1),e.Q6J("ngIf","FA"===v.iconType),e.xp6(1),e.Q6J("ngIf",!v.iconType),e.xp6(2),e.Oqu(v.name)}}function bd(H,F){if(1&H&&(e.TgZ(0,"span",33),e.GkF(1,22),e.qZA()),2&H){const v=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",v.icon)}}function O2(H,F){if(1&H&&e._UZ(0,"fa-icon",36),2&H){const v=e.oxw().$implicit;e.s9C("matTooltip",v.name),e.Q6J("icon",v.icon)}}function Ic(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const je=e.CHM(v).$implicit,Ft=e.oxw(2);return e.KtG(Ft.onClick(je))}),e.YNc(1,bd,2,1,"span",28),e.YNc(2,O2,1,2,"fa-icon",34),e.TgZ(3,"span"),e._uU(4),e.qZA()()}if(2&H){const v=F.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===v.iconType),e.xp6(1),e.Q6J("ngIf","FA"===v.iconType),e.xp6(2),e.Oqu(v.name)}}function r3(H,F){if(1&H&&(e.TgZ(0,"mat-tree",5),e.YNc(1,Ic,5,3,"mat-tree-node",6),e.qZA()),2&H){const v=e.oxw();e.Q6J("dataSource",v.navMenusLogout)("treeControl",v.treeControlLogout)}}function xd(H,F){1&H&&(e.O4$(),e.TgZ(0,"svg",38)(1,"g",39)(2,"g",40),e._UZ(3,"circle",41)(4,"path",42)(5,"path",43),e.qZA()()())}let a3=(()=>{class H{constructor(v,V,te,je,Ft,Qt){this.logger=v,this.commonService=V,this.sessionService=te,this.store=je,this.actions=Ft,this.rtlEffects=Qt,this.ChildNavClicked=new e.vpe,this.faEject=ji.KOR,this.faEye=ji.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:ji.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:ji.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=$e.ol,this.unSubs=[new Bi.x,new Bi.x,new Bi.x,new Bi.x,new Bi.x,new Bi.x],this.treeControlNested=new L2.VY(ci=>ci.children),this.treeControlLogout=new L2.VY(ci=>ci.children),this.treeControlShowData=new L2.VY(ci=>ci.children),this.navMenus=new mo.WX,this.navMenusLogout=new mo.WX,this.navMenusShowData=new mo.WX,this.hasChild=(ci,xi)=>!!xi.children&&xi.children.length>0,this.version=Va.q4,Il.LNDChildren&&200===Il.LNDChildren[Il.LNDChildren.length-1].id&&Il.LNDChildren.pop(),this.navMenus.data=Il.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const v=this.sessionService.getItem("token");this.showLogout=!!v,this.flgLoading=!!v,this.store.select(zr.Yj).pipe((0,en.R)(this.unSubs[0])).subscribe(V=>{this.appConfig=V}),this.store.select(zr.gW).pipe((0,en.R)(this.unSubs[1])).subscribe(V=>{if(this.information=V.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 te=this.information.chains[0];this.informationChain.chain=te.chain,this.informationChain.network=te.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=V.selNode,this.settings=this.selNode?.settings||null,this.selConfigNodeIndex=+(V.selNode?.index||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(V)}),this.sessionService.watchSession().pipe((0,en.R)(this.unSubs[2])).subscribe(V=>{this.showLogout=!!V.token,this.flgLoading=!!V.token}),this.actions.pipe((0,en.R)(this.unSubs[3]),(0,Xn.h)(V=>V.type===$e.pg.LOGOUT)).subscribe(V=>{this.showLogout=!1})}onClick(v){"Logout"===v.name&&(this.store.dispatch((0,ai.c1)({payload:{data:{type:$e.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,en.R)(this.unSubs[4])).subscribe(V=>{V&&(this.showLogout=!1,this.store.dispatch((0,ai.kS)()))})),this.ChildNavClicked.emit(v)}onChildNavClicked(v){this.ChildNavClicked.emit(v)}filterSideMenuNodes(){switch(this.selNode?.lnImplementation?.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let v=[];v=JSON.parse(JSON.stringify(Il.LNDChildren)),this.navMenus.data=v?.filter(V=>V.children&&V.children.length?(V.children=V.children?.filter(te=>(te.userPersona===$e.ol.ALL||te.userPersona===this.settings?.userPersona)&&"/services/loop"!==te.link&&"/services/boltz"!==te.link||"/services/loop"===te.link&&this.settings?.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===te.link&&this.settings?.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),V.children.length>0):V.userPersona===$e.ol.ALL||V.userPersona===this.settings?.userPersona)}loadCLNMenu(){let v=[];v=JSON.parse(JSON.stringify(Il.CLNChildren)),this.navMenus.data=v?.filter(V=>V.children&&V.children.length?(V.children=V.children?.filter(te=>(te.userPersona===$e.ol.ALL||te.userPersona===this.settings?.userPersona)&&"/services/peerswap"!==te.link||"/services/peerswap"===te.link&&this.settings?.enablePeerswap),V.children.length>0):V.userPersona===$e.ol.ALL||V.userPersona===this.settings?.userPersona)}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Il.ECLChildren))}onShowData(v){this.store.dispatch((0,ai.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(v){const V=this.selConfigNodeIndex;this.selConfigNodeIndex=v;const te=this.appConfig.nodes.find(je=>+je.index===v);this.store.dispatch((0,ai.fk)({payload:{uiMessage:$e.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+V,currentLnNode:te||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(ui.mQ),e.Y36($r.v),e.Y36(oo.m),e.Y36(Ni.yh),e.Y36(xs.eX),e.Y36(Br.V))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-side-navigation"]],viewQuery:function(v,V){if(1&v&&e.Gf(mo.gi,5),2&v){let te;e.iGM(te=e.CRH())&&(V.tree=te.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},decls:12,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","90","fxLayoutAlign","start stretch",1,"w-100"],["class","m-2 multi-node-select",3,"value","selectionChange",4,"ngIf"],[1,"w-100"],[3,"dataSource","treeControl",4,"ngIf"],[3,"dataSource","treeControl"],[3,"click",4,"matTreeNodeDef"],["fxLayout","column","fxLayoutAlign","end stretch",1,"w-100"],["boltzIconBlock",""],[1,"m-2","multi-node-select",3,"value","selectionChange"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["tree",""],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink"],[3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],[1,"fa-icon-small","mr-2"],[3,"ngTemplateOutlet"],[1,"fa-icon-small","mr-2",3,"icon"],[1,"mat-icon-36"],["fxLayout","column","matTreeNodeToggle",""],["fxLayout","row","fxLayoutAlign","start center",1,"mat-nested-tree-node-parent"],["fxFlex","89","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","11","mat-icon-button","","fxLayoutAlign","end center"],[1,"mat-icon-rtl-mirror"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"icon","matTooltip",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"icon","matTooltip"],["matTooltipPosition","right",1,"mat-icon-36",3,"matTooltip"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Ac,2,2,"mat-select",2),e._UZ(3,"mat-divider",3),e.YNc(4,i3,4,3,"mat-tree",4),e._UZ(5,"mat-divider",3),e.TgZ(6,"mat-tree",5),e.YNc(7,Dc,6,4,"mat-tree-node",6),e.qZA()(),e.TgZ(8,"div",7),e.YNc(9,r3,2,2,"mat-tree",4),e.qZA()(),e.YNc(10,xd,6,0,"ng-template",null,8,e.W1O)),2&v&&(e.xp6(2),e.Q6J("ngIf",V.appConfig.nodes.length>1),e.xp6(2),e.Q6J("ngIf",null==V.settings?null:V.settings.lnServerUrl),e.xp6(2),e.Q6J("dataSource",V.navMenusShowData)("treeControl",V.treeControlShowData),e.xp6(3),e.Q6J("ngIf",V.showLogout))},dependencies:[Ze.sg,Ze.O5,Ze.tP,_a.BN,Ki.xw,Ki.Wh,Ki.yH,Ai.lW,Yr.Hw,cr.d,mo.GZ,mo.fQ,mo.eu,mo.gi,mo.uo,mo.Ar,Qi.gD,ln.ey,R1.gM,Bn.rH,Bn.Od,Tn.$V],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),H})();var P2=p(8255);function k2(H,F){if(1&H&&(e.TgZ(0,"p",2),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&H){const v=e.oxw();e.xp6(1),e.Q6J("icon",v.faCode),e.xp6(2),e.hij("API Version: ",null==v.information?null:v.information.api_version,"")}}function Cd(H,F){if(1&H&&(e.TgZ(0,"a",11),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",12),e._uU(3,"Settings"),e.qZA()()),2&H){const v=e.oxw();e.xp6(1),e.Q6J("icon",v.faUserCog)}}function Md(H,F){if(1&H&&(e.TgZ(0,"a",13),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",14),e._uU(3,"Help"),e.qZA()()),2&H){const v=e.oxw();e.xp6(1),e.Q6J("icon",v.faQuestion)}}function Jl(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"a",15),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.onClick())}),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3,"Logout"),e.qZA()()}if(2&H){const v=e.oxw();e.xp6(1),e.Q6J("icon",v.faEject)}}let Yo=(()=>{class H{constructor(v,V,te,je,Ft){this.logger=v,this.sessionService=V,this.store=te,this.rtlEffects=je,this.actions=Ft,this.faUserCog=ji.gNZ,this.faCodeBranch=ji.mh3,this.faCode=ji.dT$,this.faCog=ji.b7W,this.faQuestion=ji.Psp,this.faEject=ji.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new Bi.x,new Bi.x,new Bi.x,new Bi.x],this.version=Va.q4}ngOnInit(){this.store.select(zr.R4).pipe((0,en.R)(this.unSubs[0])).subscribe(v=>{if(this.information=v,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 V=this.information.chains[0];this.informationChain.chain=V.chain,this.informationChain.network=V.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(v)}),this.sessionService.watchSession().pipe((0,en.R)(this.unSubs[1])).subscribe(v=>{this.showLogout=!!v.token,this.flgLoading=!!v.token}),this.actions.pipe((0,en.R)(this.unSubs[2]),(0,Xn.h)(v=>v.type===$e.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,ai.c1)({payload:{data:{type:$e.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,en.R)(this.unSubs[3])).subscribe(v=>{v&&(this.showLogout=!1,this.store.dispatch((0,ai.kS)()))})}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(ui.mQ),e.Y36(oo.m),e.Y36(Ni.yh),e.Y36(Br.V),e.Y36(xs.eX))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-top-menu"]],decls:14,vars:8,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","",4,"ngIf"],["mat-menu-item","","routerLink","/settings",4,"ngIf"],["mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",1,"top-toolbar-icon",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo"],[1,"logo-icon"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(v,V){if(1&v&&(e.TgZ(0,"mat-menu",0,1)(2,"p",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span"),e._uU(5),e.qZA()(),e.YNc(6,k2,4,2,"p",4),e.YNc(7,Cd,4,1,"a",5),e.YNc(8,Md,4,1,"a",6),e.YNc(9,Jl,4,1,"a",7),e.qZA(),e.TgZ(10,"button",8),e._UZ(11,"img",9),e.TgZ(12,"mat-icon",10),e._uU(13,"arrow_drop_down"),e.qZA()()),2&v){const te=e.MAs(1);e.Q6J("overlapTrigger",!1),e.xp6(3),e.Q6J("icon",V.faCodeBranch),e.xp6(2),e.hij("Version: ",V.version,""),e.xp6(1),e.Q6J("ngIf",null==V.information?null:V.information.api_version),e.xp6(1),e.Q6J("ngIf",V.showLogout),e.xp6(1),e.Q6J("ngIf",V.showLogout),e.xp6(1),e.Q6J("ngIf",V.showLogout),e.xp6(1),e.Q6J("matMenuTriggerFor",te)}},dependencies:[Ze.O5,_a.BN,Ai.lW,Yr.Hw,P2.VK,P2.OP,P2.p6,Bn.rH,Bn.yS],styles:[".mat-menu-content,.mat-menu-content p.mat-menu-item{cursor:default}.mat-menu-content p.mat-menu-item fa-icon,.mat-menu-content p.mat-menu-item span,.mat-menu-content p.mat-menu-item div{cursor:default}.mat-menu-content p.mat-menu-item:hover{cursor:default!important}.top-toolbar-icon .mat-button-wrapper img{width:3.2rem}.top-toolbar-icon .mat-button-wrapper .material-icons.mat-icon.logo-icon{font-size:2rem;text-align:start}\n"],encapsulation:2}),H})();const wd=["sideNavigation"],Sd=["sideNavContent"];function J4(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.sideNavToggle())}),e.TgZ(1,"mat-icon"),e._uU(2,"menu"),e.qZA()()}if(2&H){const v=e.oxw();e.Q6J("matTooltip",v.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",v.smallScreen)}}function X4(H,F){1&H&&(e.O4$(),e._UZ(0,"path",18))}function N2(H,F){1&H&&(e.O4$(),e._UZ(0,"path",19))}function dh(H,F){if(1&H){const v=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(v);const te=e.oxw();return e.KtG(te.flgSidenavPinned=!te.flgSidenavPinned)}),e.O4$(),e.TgZ(1,"svg",15),e.YNc(2,X4,1,0,"path",16),e.YNc(3,N2,1,0,"path",17),e.qZA()()}if(2&H){const v=e.oxw();e.Q6J("matTooltip",v.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),e.xp6(2),e.Q6J("ngIf",!v.flgSidenavPinned),e.xp6(1),e.Q6J("ngIf",v.flgSidenavPinned)}}function Ed(H,F){if(1&H&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&H){const v=e.oxw();e.xp6(1),e.Oqu(v.information.alias?"RTL - "+v.information.alias:"RTL")}}function $4(H,F){if(1&H&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&H){const v=e.oxw();e.xp6(1),e.Oqu(v.information.alias?"Ride The Lightning - "+v.information.alias:"Ride The Lightning")}}function Td(H,F){1&H&&(e.TgZ(0,"div",20),e._UZ(1,"mat-spinner",21),e.TgZ(2,"h4"),e._uU(3,"Loading RTL..."),e.qZA()())}const Ad=function(H,F){return[H,F]};let Ld=(()=>{class H{constructor(v,V,te,je,Ft,Qt,ci,xi,qi){this.logger=v,this.commonService=V,this.store=te,this.actions=je,this.userIdle=Ft,this.router=Qt,this.sessionService=ci,this.breakpointObserver=xi,this.renderer=qi,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.x,new Bi.x,new Bi.x,new Bi.x,new Bi.x,new Bi.x,new Bi.x,new Bi.x]}ngOnInit(){this.router.events.subscribe(v=>{v instanceof Bn.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([vr.u3.XSmall,vr.u3.TabletPortrait,vr.u3.Small,vr.u3.Medium,vr.u3.Large,vr.u3.XLarge]).pipe((0,en.R)(this.unSubs[0])).subscribe(v=>{v.breakpoints[vr.u3.XSmall]?(this.commonService.setScreenSize($e.cu.XS),this.smallScreen=!0):v.breakpoints[vr.u3.TabletPortrait]?(this.commonService.setScreenSize($e.cu.SM),this.smallScreen=!0):v.breakpoints[vr.u3.Small]||v.breakpoints[vr.u3.Medium]?(this.commonService.setScreenSize($e.cu.MD),this.smallScreen=!1):v.breakpoints[vr.u3.Large]?(this.commonService.setScreenSize($e.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize($e.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,ai.ey)()),this.accessKey=this.readAccessKey()||"",this.store.select(zr.dT).pipe((0,en.R)(this.unSubs[1])).subscribe(v=>{this.settings=v.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(zr.Yj).pipe((0,en.R)(this.unSubs[2])).subscribe(v=>{this.appConfig=v}),this.store.select(zr.R4).pipe((0,en.R)(this.unSubs[3])).subscribe(v=>{this.information=v,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,en.R)(this.unSubs[4]),(0,Xn.h)(v=>v.type===$e.pg.SET_RTL_CONFIG||v.type===$e.pg.LOGIN||v.type===$e.pg.LOGOUT)).subscribe(v=>{v.type===$e.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+v.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,ai.x4)({payload:{password:na(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),v.type===$e.pg.LOGIN&&(this.flgLoggedIn=!0,this.userIdle.startWatching(),this.userIdle.resetTimer(),setTimeout(()=>{this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)},1e3)),v.type===$e.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,en.R)(this.unSubs[5])).subscribe(v=>{this.logger.info("Counting Down: "+(11-v))}),this.userIdle.onTimeout().pipe((0,en.R)(this.unSubs[6])).subscribe(()=>{this.logger.info("Time Out!"),this.sessionService.getItem("token")&&(this.flgLoggedIn=!1,this.logger.warn("Time limit exceeded for session inactivity."),this.store.dispatch((0,ai.ts)()),this.store.dispatch((0,ai.qR)({payload:{data:{type:$e.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,ai.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const v=window.location.href;return v.includes("access-key=")?v.substring(v.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(v){this.smallScreen&&this.sideNavigation.close()}copiedText(v){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+v)}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(),v.complete()})}}return H.\u0275fac=function(v){return new(v||H)(e.Y36(ui.mQ),e.Y36($r.v),e.Y36(Ni.yh),e.Y36(xs.eX),e.Y36(Fl),e.Y36(Bn.F0),e.Y36(oo.m),e.Y36(vr.Yg),e.Y36(e.Qsj))},H.\u0275cmp=e.Xpm({type:H,selectors:[["rtl-app"]],viewQuery:function(v,V){if(1&v&&(e.Gf(wd,5),e.Gf(Sd,5)),2&v){let te;e.iGM(te=e.CRH())&&(V.sideNavigation=te.first),e.iGM(te=e.CRH())&&(V.sideNavContent=te.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"padding-gap-x","bg-primary","rtl-top-toolbar"],["class","top-toolbar-icon mr-1","mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["sideNavigation",""],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["sideNavContent",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["outlet","outlet"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon","mr-1",3,"matTooltip","matTooltipDisabled","click"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["viewBox","0 0 32 32",1,"top-toolbar-icon","icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"rtl-spinner"],["color","accent"]],template:function(v,V){1&v&&(e.TgZ(0,"div",0),e.ALo(1,"lowercase"),e.ALo(2,"lowercase"),e.TgZ(3,"mat-toolbar",1)(4,"div"),e.YNc(5,J4,3,2,"button",2),e.YNc(6,dh,4,3,"button",3),e.qZA(),e.TgZ(7,"div"),e.YNc(8,Ed,2,1,"span",4),e.YNc(9,$4,2,1,"span",4),e.qZA(),e.TgZ(10,"div"),e._UZ(11,"rtl-top-menu"),e.qZA()(),e.TgZ(12,"mat-sidenav-container")(13,"mat-sidenav",5,6)(15,"rtl-side-navigation",7),e.NdJ("ChildNavClicked",function(je){return V.onNavigationClicked(je)}),e.qZA()(),e.TgZ(16,"mat-sidenav-content",8,9)(18,"div",10),e._UZ(19,"router-outlet",null,11),e.qZA()(),e._uU(21,"> "),e.qZA(),e.YNc(22,Td,4,0,"div",12),e.qZA()),2&v&&(e.Q6J("ngClass",e.WLB(12,Ad,e.lcZ(1,8,V.settings.themeColor),e.lcZ(2,10,V.settings.themeMode))),e.xp6(5),e.Q6J("ngIf",V.flgLoggedIn),e.xp6(1),e.Q6J("ngIf",!V.smallScreen&&V.flgLoggedIn),e.xp6(2),e.Q6J("ngIf",V.smallScreen),e.xp6(1),e.Q6J("ngIf",!V.smallScreen),e.xp6(4),e.Q6J("opened",V.flgSideNavOpened&&V.flgLoggedIn)("mode",V.flgSidenavPinned&&!V.smallScreen?"side":"over"),e.xp6(9),e.Q6J("ngIf",!V.settings.themeColor))},dependencies:[Ze.mk,Ze.O5,Ki.xw,Ki.Wh,Ki.yH,Sr.oO,Ai.lW,Yr.Hw,fd.Ou,A2.JX,A2.TM,A2.Rh,v1.Ye,R1.gM,Tn.$V,a3,Yo,Bn.lC,Ze.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[hd.g]}}),H})(),Dd=(()=>{class H{constructor(v){this.sessionService=v}intercept(v,V){if(this.sessionService.getItem("token")){const te=v.clone({headers:v.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return V.handle(te)}return V.handle(v)}}return H.\u0275fac=function(v){return new(v||H)(e.LFG(oo.m))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();var al=p(7998),To=p(711),eu=p(4947),Id=p(3289);const Od={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",unannouncedChannels:!1,fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1},s3={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},o3={apiURL:"",apisCallStatus:{Login:{status:$e.Bn.UN_INITIATED},IsAuthorized:{status:$e.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Od,authentication:s3,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Od,authentication:s3}]},nodeData:{}},Pd=(0,Ni.Lq)(o3,(0,Ni.on)(ai.qi,(H,{payload:F})=>{const v=JSON.parse(JSON.stringify(H.apisCallStatus));return F.action&&(v[F.action]={status:F.status,statusCode:F.statusCode,message:F.message,URL:F.URL,filePath:F.filePath}),{...H,apisCallStatus:v}}),(0,Ni.on)(ai.vI,(H,{payload:F})=>({...o3,apisCallStatus:H.apisCallStatus,appConfig:H.appConfig,selNode:F})),(0,Ni.on)(ai.fk,(H,{payload:F})=>({...H,selNode:F.currentLnNode})),(0,Ni.on)(ai.Tm,(H,{payload:F})=>{const v=JSON.parse(JSON.stringify(H.selNode));switch(F.service){case $e.JX.BOLTZ:v.settings.boltzServerUrl=F.settings.boltzServerUrl;break;case $e.JX.LOOP:v.settings.swapServerUrl=F.settings.swapServerUrl;break;case $e.JX.OFFERS:v.settings.enableOffers=F.settings.enableOffers;break;case $e.JX.PEERSWAP:v.settings.enablePeerswap=F.settings.enablePeerswap}return{...H,selNode:v}}),(0,Ni.on)(ai._V,(H,{payload:F})=>({...H,nodeData:F})),(0,Ni.on)(ai.XT,(H,{payload:F})=>({...H,appConfig:F}))),l3={apisCallStatus:{FetchPageSettings:{status:$e.Bn.UN_INITIATED},FetchInfo:{status:$e.Bn.UN_INITIATED},FetchFees:{status:$e.Bn.UN_INITIATED},FetchPeers:{status:$e.Bn.UN_INITIATED},FetchClosedChannels:{status:$e.Bn.UN_INITIATED},FetchPendingChannels:{status:$e.Bn.UN_INITIATED},FetchAllChannels:{status:$e.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:$e.Bn.UN_INITIATED},FetchInvoices:{status:$e.Bn.UN_INITIATED},FetchPayments:{status:$e.Bn.UN_INITIATED},FetchForwardingHistory:{status:$e.Bn.UN_INITIATED},FetchUTXOs:{status:$e.Bn.UN_INITIATED},FetchTransactions:{status:$e.Bn.UN_INITIATED},FetchLightningTransactions:{status:$e.Bn.UN_INITIATED},FetchNetwork:{status:$e.Bn.UN_INITIATED}},nodeSettings:{userPersona:$e.ol.OPERATOR,unannouncedChannels:!1,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},pageSettings:$e.gK,information:{},peers:[],fees:{channel_fees:[],day_fee_sum:0,week_fee_sum:0,month_fee_sum:0,daily_tx_count:0,weekly_tx_count:0,monthly_tx_count:0,forwarding_events_history:{}},networkInfo:{},blockchainBalance:{total_balance:-1},lightningBalance:{local:-1,remote:-1},channels:[],channelsSummary:{active:{num_channels:0,capacity:0},inactive:{num_channels:0,capacity:0}},closedChannels:[],pendingChannels:{},pendingChannelsSummary:{open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0},transactions:[],utxos:[],listPayments:{payments:[]},listInvoices:{invoices:[]},allLightningTransactions:{listPaymentsAll:{payments:[],first_index_offset:"",last_index_offset:""},listInvoicesAll:{invoices:[],total_invoices:0,last_index_offset:"",first_index_offset:""}},forwardingHistory:{last_offset_index:0,total_fee_msat:0,forwarding_events:[]}};let R2=!1,c3=!1;const tu=(0,Ni.Lq)(l3,(0,Ni.on)(er.PC,(H,{payload:F})=>{const v=JSON.parse(JSON.stringify(H.apisCallStatus));return F.action&&(v[F.action]={status:F.status,statusCode:F.statusCode,message:F.message,URL:F.URL,filePath:F.filePath}),{...H,apisCallStatus:v}}),(0,Ni.on)(er.JT,(H,{payload:F})=>({...H,nodeSettings:F})),(0,Ni.on)(er.Ll,(H,{payload:F})=>({...l3,nodeSettings:F})),(0,Ni.on)(er.CX,(H,{payload:F})=>({...H,information:F})),(0,Ni.on)(er.Z8,(H,{payload:F})=>({...H,peers:F})),(0,Ni.on)(er.EK,(H,{payload:F})=>{const v=[...H.peers],V=H.peers.findIndex(te=>te.pub_key===F.pubkey);return V>-1&&v.splice(V,1),{...H,peers:v}}),(0,Ni.on)(er.YP,(H,{payload:F})=>{const v=H.listInvoices;return v.invoices?.unshift(F),{...H,listInvoices:v}}),(0,Ni.on)(er.aL,(H,{payload:F})=>{const v=H.listInvoices;return v.invoices=v.invoices?.map(V=>V.payment_request===F.payment_request?F:V),{...H,listInvoices:v}}),(0,Ni.on)(er.qY,(H,{payload:F})=>{const v=H.listPayments;return v.payments=v.payments?.map(V=>V.payment_hash===F.payment_hash?F:V),{...H,listPayments:v}}),(0,Ni.on)(er.RX,(H,{payload:F})=>({...H,fees:F})),(0,Ni.on)(er._L,(H,{payload:F})=>({...H,closedChannels:F})),(0,Ni.on)(er.TW,(H,{payload:F})=>({...H,pendingChannels:F.pendingChannels,pendingChannelsSummary:F.pendingChannelsSummary})),(0,Ni.on)(er.as,(H,{payload:F})=>{let v=0,V=0,te=0,je=0,Ft=0,Qt=0;return F&&F.forEach(ci=>{ci.local_balance||(ci.local_balance=0),!0===ci.active?(Ft+=+ci.local_balance,te+=1,ci.local_balance?v=+v+ +ci.local_balance:ci.local_balance=0,ci.remote_balance?V=+V+ +ci.remote_balance:ci.remote_balance=0):(Qt+=+ci.local_balance,je+=1)}),{...H,channels:F,channelsSummary:{active:{num_channels:te,capacity:Ft},inactive:{num_channels:je,capacity:Qt}},lightningBalance:{local:v,remote:V}}}),(0,Ni.on)(er.OG,(H,{payload:F})=>{const v=[...H.channels],V=H.channels.findIndex(te=>te.channel_point===F.channelPoint);return V>-1&&v.splice(V,1),{...H,channels:v}}),(0,Ni.on)(er.Jl,(H,{payload:F})=>({...H,blockchainBalance:F})),(0,Ni.on)(er.ks,(H,{payload:F})=>({...H,networkInfo:F})),(0,Ni.on)(er.Nr,(H,{payload:F})=>(F.total_invoices||(F.total_invoices=H.listInvoices.total_invoices),{...H,listInvoices:F})),(0,Ni.on)(er.Lf,(H,{payload:F})=>{if(R2=!0,F.length&&c3){const v=[...H.utxos];return v.forEach(V=>{const te=F.find(je=>je.tx_hash===V.outpoint?.txid_str);V.label=te&&te.label?te.label:""}),{...H,utxos:v,transactions:F}}return{...H,transactions:F}}),(0,Ni.on)(er.UH,(H,{payload:F})=>{if(c3=!0,F.length&&R2){const v=[...H.transactions];F.forEach(V=>{const te=v.find(je=>je.tx_hash===V.outpoint?.txid_str);V.label=te&&te.label?te.label:""})}return{...H,utxos:F}}),(0,Ni.on)(er.HI,(H,{payload:F})=>{const v={listInvoicesAll:H.allLightningTransactions.listInvoicesAll,listPaymentsAll:F};return{...H,listPayments:F,allLightningTransactions:v}}),(0,Ni.on)(er.Fr,(H,{payload:F})=>{const v={listInvoicesAll:F.listInvoicesAll,listPaymentsAll:H.listPayments};return{...H,allLightningTransactions:v}}),(0,Ni.on)(er.QJ,(H,{payload:F})=>{const v=[...H.channels,...H.closedChannels];let V=F.forwarding_events?JSON.parse(JSON.stringify(F)):{};return V.forwarding_events&&(V=Un(V,v)),{...H,forwardingHistory:V}}),(0,Ni.on)(er.pd,(H,{payload:F})=>{const v=[];return $e.gK.forEach(V=>{const te=F&&F.length&&F.length>0?F.find(je=>je.pageId===V.pageId):null;if(te){const je=JSON.parse(JSON.stringify(te.tables));te.tables=[],V.tables.forEach(Ft=>{const Qt=je.find(ci=>ci.tableId===Ft.tableId)||null;te.tables.push(Qt||JSON.parse(JSON.stringify(Ft)))}),v.push(te)}else v.push(JSON.parse(JSON.stringify(V)))}),{...H,pageSettings:v}})),Un=(H,F)=>(H.forwarding_events.forEach(v=>{if(F&&F.length>0)for(let V=0;V<F.length;V++){if(F[V].chan_id?.toString()===v.chan_id_in&&(v.alias_in=F[V].remote_alias?F[V].remote_alias:v.chan_id_in,v.alias_out)||F[V].chan_id?.toString()===v.chan_id_out&&(v.alias_out=F[V].remote_alias?F[V].remote_alias:v.chan_id_out,v.alias_in))return;V===F.length-1&&(v.alias_in||(v.alias_in=v.chan_id_in),v.alias_out||(v.alias_out=v.chan_id_out))}else v.alias_in=v.chan_id_in,v.alias_out=v.chan_id_out}),H),y1={apisCallStatus:{FetchPageSettings:{status:$e.Bn.UN_INITIATED},FetchInfo:{status:$e.Bn.UN_INITIATED},FetchInvoices:{status:$e.Bn.UN_INITIATED},FetchFees:{status:$e.Bn.UN_INITIATED},FetchChannels:{status:$e.Bn.UN_INITIATED},FetchBalance:{status:$e.Bn.UN_INITIATED},FetchLocalRemoteBalance:{status:$e.Bn.UN_INITIATED},FetchFeeRatesperkb:{status:$e.Bn.UN_INITIATED},FetchFeeRatesperkw:{status:$e.Bn.UN_INITIATED},FetchPeers:{status:$e.Bn.UN_INITIATED},FetchUTXOs:{status:$e.Bn.UN_INITIATED},FetchPayments:{status:$e.Bn.UN_INITIATED},FetchForwardingHistoryS:{status:$e.Bn.UN_INITIATED},FetchForwardingHistoryF:{status:$e.Bn.UN_INITIATED},FetchForwardingHistoryL:{status:$e.Bn.UN_INITIATED},FetchOffers:{status:$e.Bn.UN_INITIATED},FetchOfferBookmarks:{status:$e.Bn.UN_INITIATED}},nodeSettings:{userPersona:$e.ol.OPERATOR,unannouncedChannels:!1,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[],enableOffers:!1,enablePeerswap:!1},pageSettings:$e.gG,information:{},fees:{},feeRatesPerKB:{},feeRatesPerKW:{},balance:{},localRemoteBalance:{localBalance:-1,remoteBalance:-1},peers:[],activeChannels:[],pendingChannels:[],inactiveChannels:[],payments:[],forwardingHistory:{},failedForwardingHistory:{},localFailedForwardingHistory:{},invoices:{invoices:[]},utxos:[],offers:[],offersBookmarks:[]},kd=(0,Ni.Lq)(y1,(0,Ni.on)(In.Ni,(H,{payload:F})=>{const v=JSON.parse(JSON.stringify(H.apisCallStatus));return F.action&&(v[F.action]={status:F.status,statusCode:F.statusCode,message:F.message,URL:F.URL,filePath:F.filePath}),{...H,apisCallStatus:v}}),(0,Ni.on)(In.oo,(H,{payload:F})=>({...H,nodeSettings:F})),(0,Ni.on)(In.xH,(H,{payload:F})=>({...y1,nodeSettings:F})),(0,Ni.on)(In.CX,(H,{payload:F})=>({...H,information:F})),(0,Ni.on)(In.RX,(H,{payload:F})=>({...H,fees:F})),(0,Ni.on)(In.I8,(H,{payload:F})=>F.perkb?{...H,feeRatesPerKB:F}:F.perkw?{...H,feeRatesPerKW:F}:{...H}),(0,Ni.on)(In.Lu,(H,{payload:F})=>({...H,balance:F})),(0,Ni.on)(In.xS,(H,{payload:F})=>({...H,localRemoteBalance:F})),(0,Ni.on)(In.Z8,(H,{payload:F})=>({...H,peers:F})),(0,Ni.on)(In.X3,(H,{payload:F})=>({...H,peers:[...H.peers,F]})),(0,Ni.on)(In.EK,(H,{payload:F})=>{const v=[...H.peers],V=H.peers.findIndex(te=>te.id===F.id);return V>-1&&v.splice(V,1),{...H,peers:v}}),(0,Ni.on)(In.as,(H,{payload:F})=>({...H,activeChannels:F.activeChannels,pendingChannels:F.pendingChannels,inactiveChannels:F.inactiveChannels})),(0,Ni.on)(In.OG,(H,{payload:F})=>{const v=[...H.peers];return v.forEach(V=>{V.id===F.id&&(V.connected=!1,delete V.netaddr)}),{...H,peers:v}}),(0,Ni.on)(In.HI,(H,{payload:F})=>({...H,payments:F})),(0,Ni.on)(In.QJ,(H,{payload:F})=>{const v=[...H.activeChannels,...H.pendingChannels,...H.inactiveChannels],V=H2(F.listForwards,v);switch(F.listForwards=V,F.status){case $e.OO.SETTLED:const te=H.fees;return te.totalTxCount=F.totalForwards||0,{...H,fees:te,forwardingHistory:F};case $e.OO.FAILED:return{...H,failedForwardingHistory:F};case $e.OO.LOCAL_FAILED:return{...H,localFailedForwardingHistory:F};default:return{...H}}}),(0,Ni.on)(In.YP,(H,{payload:F})=>{const v=H.invoices;return v.invoices?.unshift(F),{...H,invoices:v}}),(0,Ni.on)(In.Nr,(H,{payload:F})=>({...H,invoices:F})),(0,Ni.on)(In.aL,(H,{payload:F})=>{const v=H.invoices;return v.invoices=v.invoices?.map(V=>V.label===F.label?F:V),{...H,invoices:v}}),(0,Ni.on)(In.UH,(H,{payload:F})=>({...H,utxos:F})),(0,Ni.on)(In.Zu,(H,{payload:F})=>({...H,offers:F})),(0,Ni.on)(In.ZH,(H,{payload:F})=>{const v=H.offers;return v?.unshift(F),{...H,offers:v}}),(0,Ni.on)(In.JK,(H,{payload:F})=>{const v=[...H.offers],V=H.offers.findIndex(te=>te.offer_id===F.offer.offer_id);return V>-1&&v.splice(V,1,F.offer),{...H,offers:v}}),(0,Ni.on)(In.d7,(H,{payload:F})=>({...H,offersBookmarks:F})),(0,Ni.on)(In.e9,(H,{payload:F})=>{const v=[...H.offersBookmarks],V=v.findIndex(te=>te.bolt12===F.bolt12);if(V<0)v?.unshift(F);else{const te={...v[V]};te.title=F.title,te.amountMSat=F.amountMSat,te.lastUpdatedAt=F.lastUpdatedAt,te.description=F.description,te.vendor=F.vendor,v.splice(V,1,te)}return{...H,offersBookmarks:v}}),(0,Ni.on)(In.en,(H,{payload:F})=>{const v=[...H.offersBookmarks],V=H.offersBookmarks.findIndex(te=>te.bolt12===F.bolt12);return V>-1&&v.splice(V,1),{...H,offersBookmarks:v}}),(0,Ni.on)(In.pd,(H,{payload:F})=>{const v=[];return $e.gG.forEach(V=>{const te=F&&F.length&&F.length>0?F.find(je=>je.pageId===V.pageId):null;if(te){const je=JSON.parse(JSON.stringify(te.tables));te.tables=[],V.tables.forEach(Ft=>{const Qt=je.find(ci=>ci.tableId===Ft.tableId)||null;te.tables.push(Qt||JSON.parse(JSON.stringify(Ft)))}),v.push(te)}else v.push(JSON.parse(JSON.stringify(V)))}),{...H,pageSettings:v}})),H2=(H,F)=>(H&&H.length>0?H.forEach((v,V)=>{if(F&&F.length>0)for(let te=0;te<F.length;te++){if(F[te].short_channel_id&&F[te].short_channel_id===v.in_channel&&(v.in_channel_alias=F[te].alias?F[te].alias:v.in_channel,v.out_channel_alias)||F[te].short_channel_id&&F[te].short_channel_id?.toString()===v.out_channel&&(v.out_channel_alias=F[te].alias?F[te].alias:v.out_channel,v.in_channel_alias))return;te===F.length-1&&(v.in_channel_alias||(v.in_channel_alias=v.in_channel?v.in_channel:"-"),v.out_channel_alias||(v.out_channel_alias=v.out_channel?v.out_channel:"-"))}else v.in_channel_alias=v.in_channel?v.in_channel:"-",v.out_channel_alias=v.out_channel?v.out_channel:"-"}):H=[],H),Nd={apisCallStatus:{FetchPageSettings:{status:$e.Bn.UN_INITIATED},FetchInfo:{status:$e.Bn.UN_INITIATED},FetchFees:{status:$e.Bn.UN_INITIATED},FetchChannels:{status:$e.Bn.UN_INITIATED},FetchOnchainBalance:{status:$e.Bn.UN_INITIATED},FetchPeers:{status:$e.Bn.UN_INITIATED},FetchPayments:{status:$e.Bn.UN_INITIATED},FetchInvoices:{status:$e.Bn.UN_INITIATED},FetchTransactions:{status:$e.Bn.UN_INITIATED}},nodeSettings:{userPersona:$e.ol.OPERATOR,unannouncedChannels:!1,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},pageSettings:$e.c3,information:{},fees:{},activeChannels:[],pendingChannels:[],inactiveChannels:[],channelsStatus:{active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0},closing:{channels:0,capacity:0}},onchainBalance:{total:0,confirmed:0,unconfirmed:0},lightningBalance:{localBalance:-1,remoteBalance:-1},peers:[],payments:{},transactions:[],invoices:[]},Rd=(0,Ni.Lq)(Nd,(0,Ni.on)(mn.QZ,(H,{payload:F})=>{const v=JSON.parse(JSON.stringify(H.apisCallStatus));return F.action&&(v[F.action]={status:F.status,statusCode:F.statusCode,message:F.message,URL:F.URL,filePath:F.filePath}),{...H,apisCallStatus:v}}),(0,Ni.on)(mn.Zr,(H,{payload:F})=>({...H,nodeSettings:F})),(0,Ni.on)(mn.Fd,(H,{payload:F})=>({...Nd,nodeSettings:F})),(0,Ni.on)(mn.CX,(H,{payload:F})=>({...H,information:F})),(0,Ni.on)(mn.RX,(H,{payload:F})=>({...H,fees:F})),(0,Ni.on)(mn.eN,(H,{payload:F})=>({...H,activeChannels:F})),(0,Ni.on)(mn.TW,(H,{payload:F})=>({...H,pendingChannels:F})),(0,Ni.on)(mn.i,(H,{payload:F})=>({...H,inactiveChannels:F})),(0,Ni.on)(mn.HG,(H,{payload:F})=>({...H,channelsStatus:F})),(0,Ni.on)(mn.Bw,(H,{payload:F})=>({...H,onchainBalance:F})),(0,Ni.on)(mn.On,(H,{payload:F})=>({...H,lightningBalance:F})),(0,Ni.on)(mn.Z8,(H,{payload:F})=>({...H,peers:F})),(0,Ni.on)(mn.EK,(H,{payload:F})=>{const v=[...H.peers],V=H.peers.findIndex(te=>te.nodeId===F.nodeId);return V>-1&&v.splice(V,1),{...H,peers:v}}),(0,Ni.on)(mn.OG,(H,{payload:F})=>{const v=[...H.activeChannels],V=H.activeChannels.findIndex(te=>te.channelId===F.channelId);return V>-1&&v.splice(V,1),{...H,activeChannels:v}}),(0,Ni.on)(mn.HI,(H,{payload:F})=>{if(F&&F.sent){const v=[...H.activeChannels,...H.pendingChannels,...H.inactiveChannels];F.sent?.map(V=>{const te=H.peers.find(je=>je.nodeId===V.recipientNodeId);return V.recipientNodeAlias=te?te.alias:V.recipientNodeId,V.parts&&V.parts?.map(je=>{const Ft=v.find(Qt=>Qt.channelId===je.toChannelId);return je.toChannelAlias=Ft?Ft.alias:je.toChannelId,V.parts}),F.sent})}if(F&&F.relayed){const v=[...H.activeChannels,...H.pendingChannels,...H.inactiveChannels];F.relayed.forEach(V=>{V=b1(V,v)})}return{...H,payments:F}}),(0,Ni.on)(mn.Lf,(H,{payload:F})=>({...H,transactions:F})),(0,Ni.on)(mn.YP,(H,{payload:F})=>{const v=H.invoices;return v?.unshift(F),{...H,invoices:v}}),(0,Ni.on)(mn.Nr,(H,{payload:F})=>({...H,invoices:F})),(0,Ni.on)(mn.aL,(H,{payload:F})=>{let v=H.invoices;return v=v?.map(V=>{if(V.paymentHash===F.paymentHash){if(F.hasOwnProperty("type")){const te=JSON.parse(JSON.stringify(V));return te.amountSettled=F.parts&&F.parts.length&&F.parts.length>0&&F.parts[0].amount?(F.parts[0].amount||0)/1e3:0,te.receivedAt=F.parts&&F.parts.length&&F.parts.length>0&&F.parts[0].timestamp?Math.round((F.parts[0].timestamp||0)/1e3):0,te.status="received",te}return F}return V}),{...H,invoices:v}}),(0,Ni.on)(mn.DJ,(H,{payload:F})=>{let v=H.pendingChannels;return v=v?.map(V=>(V.channelId===F.channelId&&V.nodeId===F.remoteNodeId&&(F.currentState=F.currentState?.replace(/_/g," "),V.state=F.currentState),V)),{...H,pendingChannels:v}}),(0,Ni.on)(mn.ti,(H,{payload:F})=>{const v=H.payments,V=b1(F,[...H.activeChannels,...H.pendingChannels,...H.inactiveChannels]);V.amountIn=Math.round((F.amountIn||0)/1e3),V.amountOut=Math.round((F.amountOut||0)/1e3),v.relayed?.unshift(V);const te=(F.amountIn||0)-(F.amountOut||0),je={localBalance:H.lightningBalance.localBalance+te,remoteBalance:H.lightningBalance.remoteBalance-te},Ft=H.channelsStatus;Ft.active&&(Ft.active.capacity=(H.channelsStatus?.active?.capacity||0)+te);const Qt={daily_fee:(H.fees.daily_fee||0)+te,daily_txs:(H.fees.daily_txs||0)+1,weekly_fee:(H.fees.weekly_fee||0)+te,weekly_txs:(H.fees.weekly_txs||0)+1,monthly_fee:(H.fees.monthly_fee||0)+te,monthly_txs:(H.fees.monthly_txs||0)+1},ci=H.activeChannels;let xi=!1,qi=!1;for(const Zi of ci){if(Zi.channelId===F.fromChannelId){xi=!0;const Hn=(Zi.toLocal||0)+(Zi.toRemote||0);Zi.toLocal=(Zi.toLocal||0)+V.amountIn,Zi.toRemote=(Zi.toRemote||0)-V.amountIn,Zi.balancedness=0===Hn?1:+(1-Math.abs((Zi.toLocal-Zi.toRemote)/Hn)).toFixed(3)}if(Zi.channelId===F.toChannelId){qi=!0;const Hn=(Zi.toLocal||0)+(Zi.toRemote||0);Zi.toLocal=(Zi.toLocal||0)-V.amountOut,Zi.toRemote=(Zi.toRemote||0)+V.amountOut,Zi.balancedness=0===Hn?1:+(1-Math.abs((Zi.toLocal-Zi.toRemote)/Hn)).toFixed(3)}if(qi&&xi)break}return{...H,payments:v,lightningBalance:je,channelStatus:Ft,fees:Qt,activeChannels:ci}}),(0,Ni.on)(mn.pd,(H,{payload:F})=>{const v=[];return $e.c3.forEach(V=>{const te=F&&F.length&&F.length>0?F.find(je=>je.pageId===V.pageId):null;if(te){const je=JSON.parse(JSON.stringify(te.tables));te.tables=[],V.tables.forEach(Ft=>{const Qt=je.find(ci=>ci.tableId===Ft.tableId)||null;te.tables.push(Qt||JSON.parse(JSON.stringify(Ft)))}),v.push(te)}else v.push(JSON.parse(JSON.stringify(V)))}),{...H,pageSettings:v}})),b1=(H,F)=>{if("payment-relayed"===H.type)if(F&&F.length>0)for(let v=0;v<F.length;v++){if(F[v].channelId?.toString()===H.fromChannelId&&(H.fromChannelAlias=F[v].alias?F[v].alias:H.fromChannelId,H.fromShortChannelId=F[v].shortChannelId?F[v].shortChannelId:"",H.toChannelAlias)||F[v].channelId?.toString()===H.toChannelId&&(H.toChannelAlias=F[v].alias?F[v].alias:H.toChannelId,H.toShortChannelId=F[v].shortChannelId?F[v].shortChannelId:"",H.fromChannelAlias))return H;v===F.length-1&&(H.fromChannelAlias||(H.fromChannelAlias=H.fromChannelId?.substring(0,17)+"...",H.fromShortChannelId=""),H.toChannelAlias||(H.toChannelAlias=H.toChannelId?.substring(0,17)+"...",H.toShortChannelId=""))}else H.fromChannelAlias=H.fromChannelId?.substring(0,17)+"...",H.fromShortChannelId="",H.toChannelAlias=H.toChannelId?.substring(0,17)+"...",H.toShortChannelId="";else if(H.type="trampoline-payment-relayed"){if(F&&F.length>0)for(let v=0;v<F.length;v++)H.incoming?.forEach(V=>{F[v].channelId?.toString()===V.channelId&&(V.channelAlias=F[v].alias?F[v].alias:V.channelId,V.shortChannelId=F[v].shortChannelId?F[v].shortChannelId:"")}),H.outgoing?.forEach(V=>{F[v].channelId?.toString()===V.channelId&&(V.channelAlias=F[v].alias?F[v].alias:V.channelId,V.shortChannelId=F[v].shortChannelId?F[v].shortChannelId:"")}),v===F.length-1&&(H.incoming&&H.incoming.length&&H.incoming.length>0&&!H.incoming[0].channelAlias&&H.incoming?.forEach(V=>{V.channelAlias=V.channelId?.substring(0,17)+"...",V.shortChannelId=""}),H.outgoing&&H.outgoing.length&&H.outgoing.length>0&&!H.outgoing[0].channelAlias&&H.outgoing?.forEach(V=>{V.channelAlias=V.channelId?.substring(0,17)+"...",V.shortChannelId=""}));else H.incoming?.forEach(v=>{v.channelAlias=v.channelId?.substring(0,17)+"...",v.shortChannelId=""}),H.outgoing?.forEach(v=>{v.channelAlias=v.channelId?.substring(0,17)+"...",v.shortChannelId=""});H.amountIn=H.incoming?.reduce((v,V)=>v+V.amount,0)||0,H.fromChannelId=H.incoming&&H.incoming.length?H.incoming[0].channelId:"",H.fromChannelAlias=H.incoming&&H.incoming.length?H.incoming[0].channelAlias:"",H.fromShortChannelId=H.incoming&&H.incoming.length?H.incoming[0].shortChannelId:"",H.amountOut=H.outgoing?.reduce((v,V)=>v+V.amount,0)||0,H.toChannelId=H.outgoing&&H.outgoing.length?H.outgoing[0].channelId:"",H.toChannelAlias=H.outgoing&&H.outgoing.length?H.outgoing[0].channelAlias:"",H.toShortChannelId=H.outgoing&&H.outgoing.length?H.outgoing[0].shortChannelId:""}return H};let Hd=(()=>{class H{}return H.\u0275fac=function(v){return new(v||H)},H.\u0275mod=e.oAB({type:H,bootstrap:[Ld]}),H.\u0275inj=e.cJS({providers:[{provide:Ra.TP,useClass:Dd,multi:!0},es.a1,oo.m,J0.D,al.d,c0.W,$r.v,yc],imports:[Vs,_1.m,ql,vr.xu,t.t6,Co.forRoot({idle:3590,timeout:10,ping:12e3}),Ni.Aw.forRoot({root:Pd,lnd:tu,cln:kd,ecl:Rd},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),xs.sQ.forRoot([Br.V,To.l,eu.J,Id.o]),Va.NZ.production?[]:xo.FT.instrument()]}),H})();Va.NZ.production&&(0,e.G48)(),t.q6().bootstrapModule(Hd).catch(H=>console.log(H))},7854:(ke,J)=>{"use strict";function p(ue){return Object.keys(ue).map(ve=>ue[ve])}var ue;Object.defineProperty(J,"__esModule",{value:!0}),(ue=J.HashAlgorithms||(J.HashAlgorithms={})).SHA1="sha1",ue.SHA256="sha256",ue.SHA512="sha512";const t=p(J.HashAlgorithms);!function(ue){ue.ASCII="ascii",ue.BASE64="base64",ue.HEX="hex",ue.LATIN1="latin1",ue.UTF8="utf8"}(J.KeyEncodings||(J.KeyEncodings={}));const e=p(J.KeyEncodings);!function(ue){ue.HOTP="hotp",ue.TOTP="totp"}(J.Strategy||(J.Strategy={}));const f=p(J.Strategy),C=()=>{throw new Error("Please provide an options.createDigest implementation.")};function a(ue){return/^(\d+)$/.test(ue)}function M(ue,ve,Ie){return ue.length>=ve?ue:`${Array(ve+1).join(Ie)}${ue}`.slice(-1*ve)}function d(ue){const ve=`otpauth://${ue.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,Ie=[];if(f.indexOf(ue.type)<0)throw new Error(`Expecting options.type to be one of ${f.join(", ")}. Received ${ue.type}.`);if("hotp"===ue.type){if(null==ue.counter||"number"!=typeof ue.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');Ie.push(`&counter=${ue.counter}`)}return"totp"===ue.type&&ue.step&&Ie.push(`&period=${ue.step}`),ue.digits&&Ie.push(`&digits=${ue.digits}`),ue.algorithm&&Ie.push(`&algorithm=${ue.algorithm.toUpperCase()}`),ue.issuer&&Ie.push(`&issuer=${encodeURIComponent(ue.issuer)}`),ve.replace("{labelPrefix}",encodeURIComponent(ue.issuer||ue.accountName)).replace("{accountName}",encodeURIComponent(ue.accountName)).replace("{secret}",ue.secret).replace("{query}",Ie.join(""))}class R{constructor(ve={}){this._defaultOptions=Object.freeze({...ve}),this._options=Object.freeze({})}create(ve={}){return new R(ve)}clone(ve={}){const Ie=this.create({...this._defaultOptions,...ve});return Ie.options=this._options,Ie}get options(){return Object.freeze({...this._defaultOptions,...this._options})}set options(ve){this._options=Object.freeze({...this._options,...ve})}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function h(ue){if("function"!=typeof ue.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof ue.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof ue.digits)throw new Error("Expecting options.digits to be a number.");if(!ue.algorithm||t.indexOf(ue.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${t.join(", ")}. Received ${ue.algorithm}.`);if(!ue.encoding||e.indexOf(ue.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${e.join(", ")}. Received ${ue.encoding}.`)}const I=(ue,ve,Ie)=>Buffer.from(ve,Ie).toString("hex");function E(){return{algorithm:J.HashAlgorithms.SHA1,createHmacKey:I,createDigest:C,digits:6,encoding:J.KeyEncodings.ASCII}}function L(ue){const ve={...E(),...ue};return h(ve),Object.freeze(ve)}function T(ue){return M(ue.toString(16),16,"0")}function N(ue,ve){const Ie=Buffer.from(ue,"hex"),$=15&Ie[Ie.length-1],ut=((127&Ie[$])<<24|(255&Ie[$+1])<<16|(255&Ie[$+2])<<8|255&Ie[$+3])%Math.pow(10,ve);return M(String(ut),ve,"0")}function G(ue,ve,Ie){const $=Ie.digest||function w(ue,ve,Ie){const $=T(ve),Ge=Ie.createHmacKey(Ie.algorithm,ue,Ie.encoding);return Ie.createDigest(Ie.algorithm,Ge,$)}(ue,ve,Ie);return N($,Ie.digits)}function K(ue,ve,Ie,$){return!!a(ue)&&ue===G(ve,Ie,$)}function Q(ue,ve,Ie,$,Ge){return d({algorithm:Ge.algorithm,digits:Ge.digits,type:J.Strategy.HOTP,accountName:ue,counter:$,issuer:ve,secret:Ie})}class re extends R{create(ve={}){return new re(ve)}allOptions(){return L(this.options)}generate(ve,Ie){return G(ve,Ie,this.allOptions())}check(ve,Ie,$){return K(ve,Ie,$,this.allOptions())}verify(ve){if("object"!=typeof ve)throw new Error("Expecting argument 0 of verify to be an object");return this.check(ve.token,ve.secret,ve.counter)}keyuri(ve,Ie,$,Ge){return Q(ve,Ie,$,Ge,this.allOptions())}}function ie(ue){if("number"==typeof ue)return[Math.abs(ue),Math.abs(ue)];if(Array.isArray(ue)){const[ve,Ie]=ue;if("number"==typeof ve&&"number"==typeof Ie)return[Math.abs(ve),Math.abs(Ie)]}throw new Error("Expecting options.window to be an number or [number, number].")}function ce(ue){if(h(ue),ie(ue.window),"number"!=typeof ue.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof ue.step)throw new Error("Expecting options.step to be a number.")}const ae=(ue,ve,Ie)=>{const $=ue.length,Ge=Buffer.from(ue,ve).toString("hex");if($<Ie){const ut=new Array(Ie-$+1).join(Ge);return Buffer.from(ut,"hex").slice(0,Ie).toString("hex")}return Ge},ne=(ue,ve,Ie)=>{switch(ue){case J.HashAlgorithms.SHA1:return ae(ve,Ie,20);case J.HashAlgorithms.SHA256:return ae(ve,Ie,32);case J.HashAlgorithms.SHA512:return ae(ve,Ie,64);default:throw new Error(`Expecting algorithm to be one of ${t.join(", ")}. Received ${ue}.`)}};function le(){return{algorithm:J.HashAlgorithms.SHA1,createDigest:C,createHmacKey:ne,digits:6,encoding:J.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function ee(ue){const ve={...le(),...ue};return ce(ve),Object.freeze(ve)}function pe(ue,ve){return Math.floor(ue/ve/1e3)}function S(ue,ve){return G(ue,pe(ve.epoch,ve.step),ve)}function i(ue,ve,Ie,$){const Ge=[];if(0===$)return Ge;for(let ut=1;ut<=$;ut++)Ge.push(ue+ve*ut*Ie);return Ge}function r(ue,ve,Ie){const $=ie(Ie),Ge=1e3*ve;return{current:ue,past:i(ue,-1,Ge,$[0]),future:i(ue,1,Ge,$[1])}}function u(ue,ve,Ie){return!!a(ue)&&ue===S(ve,Ie)}function l(ue,ve,Ie,$){let Ge=null;return ue.some((ut,Ee)=>!!u(ve,Ie,{...$,epoch:ut})&&(Ge=Ee+1,!0)),Ge}function y(ue,ve,Ie){if(u(ue,ve,Ie))return 0;const $=r(Ie.epoch,Ie.step,Ie.window),Ge=l($.past,ue,ve,Ie);return null!==Ge?-1*Ge:l($.future,ue,ve,Ie)}function D(ue,ve){return Math.floor(ue/1e3)%ve}function k(ue,ve){return ve-D(ue,ve)}function b(ue,ve,Ie,$){return d({algorithm:$.algorithm,digits:$.digits,step:$.step,type:J.Strategy.TOTP,accountName:ue,issuer:ve,secret:Ie})}class n extends re{create(ve={}){return new n(ve)}allOptions(){return ee(this.options)}generate(ve){return S(ve,this.allOptions())}checkDelta(ve,Ie){return y(ve,Ie,this.allOptions())}check(ve,Ie){return"number"==typeof this.checkDelta(ve,Ie)}verify(ve){if("object"!=typeof ve)throw new Error("Expecting argument 0 of verify to be an object");return this.check(ve.token,ve.secret)}timeRemaining(){const ve=this.allOptions();return k(ve.epoch,ve.step)}timeUsed(){const ve=this.allOptions();return D(ve.epoch,ve.step)}keyuri(ve,Ie,$){return b(ve,Ie,$,this.allOptions())}}function _(ue){if(ce(ue),"function"!=typeof ue.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(ue.keyEncoder&&"function"!=typeof ue.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function W(){return{algorithm:J.HashAlgorithms.SHA1,createDigest:C,createHmacKey:ne,digits:6,encoding:J.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function P(ue){const ve={...W(),...ue};return _(ve),Object.freeze(ve)}function U(ue,ve){return ve.keyEncoder(ue,ve.encoding)}function me(ue,ve){return ve.keyDecoder(ue,ve.encoding)}function nt(ue,ve){return U(ve.createRandomBytes(ue,ve.encoding),ve)}function Pe(ue,ve){return S(me(ue,ve),ve)}function Oe(ue,ve,Ie){return y(ue,me(ve,Ie),Ie)}class De extends n{create(ve={}){return new De(ve)}allOptions(){return P(this.options)}generate(ve){return Pe(ve,this.allOptions())}checkDelta(ve,Ie){return Oe(ve,Ie,this.allOptions())}encode(ve){return U(ve,this.allOptions())}decode(ve){return me(ve,this.allOptions())}generateSecret(ve=10){return nt(ve,this.allOptions())}}J.Authenticator=De,J.HASH_ALGORITHMS=t,J.HOTP=re,J.KEY_ENCODINGS=e,J.OTP=R,J.STRATEGY=f,J.TOTP=n,J.authenticatorCheckWithWindow=Oe,J.authenticatorDecoder=me,J.authenticatorDefaultOptions=W,J.authenticatorEncoder=U,J.authenticatorGenerateSecret=nt,J.authenticatorOptionValidator=_,J.authenticatorOptions=P,J.authenticatorToken=Pe,J.createDigestPlaceholder=C,J.hotpCheck=K,J.hotpCounter=T,J.hotpCreateHmacKey=I,J.hotpDefaultOptions=E,J.hotpDigestToToken=N,J.hotpKeyuri=Q,J.hotpOptions=L,J.hotpOptionsValidator=h,J.hotpToken=G,J.isTokenValid=a,J.keyuri=d,J.objectValues=p,J.padStart=M,J.totpCheck=u,J.totpCheckByEpoch=l,J.totpCheckWithWindow=y,J.totpCounter=pe,J.totpCreateHmacKey=ne,J.totpDefaultOptions=le,J.totpEpochAvailable=r,J.totpKeyuri=b,J.totpOptions=ee,J.totpOptionsValidator=ce,J.totpPadSecret=ae,J.totpTimeRemaining=k,J.totpTimeUsed=D,J.totpToken=S},6098:(ke,J,p)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});var e=function t(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(1348));J.createDigest=(a,M,d)=>e.createHmac(a,Buffer.from(M,"hex")).update(Buffer.from(d,"hex")).digest().toString("hex"),J.createRandomBytes=(a,M)=>e.randomBytes(a).toString(M)},1415:(ke,J,p)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});var e=function t(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(2167));J.keyDecoder=(a,M)=>e.decode(a).toString(M),J.keyEncoder=(a,M)=>e.encode(Buffer.from(a,M).toString("ascii")).toString().replace(/=/g,"")},842:(ke,J,p)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});var t=p(6098),e=p(1415),f=p(7854);const C=new f.HOTP({createDigest:t.createDigest}),a=new f.TOTP({createDigest:t.createDigest}),M=new f.Authenticator({createDigest:t.createDigest,createRandomBytes:t.createRandomBytes,keyDecoder:e.keyDecoder,keyEncoder:e.keyEncoder});J.authenticator=M,J.hotp=C,J.totp=a},7977:(ke,J,p)=>{"use strict";const t=J;t.bignum=p(3854),t.define=p(9516).define,t.base=p(7813),t.constants=p(5459),t.decoders=p(196),t.encoders=p(1131)},9516:(ke,J,p)=>{"use strict";const t=p(1131),e=p(196),f=p(3894);function a(M,d){this.name=M,this.body=d,this.decoders={},this.encoders={}}J.define=function(d,R){return new a(d,R)},a.prototype._createNamed=function(d){const R=this.name;function h(I){this._initNamed(I,R)}return f(h,d),h.prototype._initNamed=function(E,L){d.call(this,E,L)},new h(this)},a.prototype._getDecoder=function(d){return this.decoders.hasOwnProperty(d=d||"der")||(this.decoders[d]=this._createNamed(e[d])),this.decoders[d]},a.prototype.decode=function(d,R,h){return this._getDecoder(R).decode(d,h)},a.prototype._getEncoder=function(d){return this.encoders.hasOwnProperty(d=d||"der")||(this.encoders[d]=this._createNamed(t[d])),this.encoders[d]},a.prototype.encode=function(d,R,h){return this._getEncoder(R).encode(d,h)}},2769:(ke,J,p)=>{"use strict";const t=p(3894),e=p(4919).b,f=p(2038).Buffer;function C(M,d){e.call(this,d),f.isBuffer(M)?(this.base=M,this.offset=0,this.length=M.length):this.error("Input not Buffer")}function a(M,d){if(Array.isArray(M))this.length=0,this.value=M.map(function(R){return a.isEncoderBuffer(R)||(R=new a(R,d)),this.length+=R.length,R},this);else if("number"==typeof M){if(!(0<=M&&M<=255))return d.error("non-byte EncoderBuffer value");this.value=M,this.length=1}else if("string"==typeof M)this.value=M,this.length=f.byteLength(M);else{if(!f.isBuffer(M))return d.error("Unsupported type: "+typeof M);this.value=M,this.length=M.length}}t(C,e),J.C=C,C.isDecoderBuffer=function(d){return d instanceof C||"object"==typeof d&&f.isBuffer(d.base)&&"DecoderBuffer"===d.constructor.name&&"number"==typeof d.offset&&"number"==typeof d.length&&"function"==typeof d.save&&"function"==typeof d.restore&&"function"==typeof d.isEmpty&&"function"==typeof d.readUInt8&&"function"==typeof d.skip&&"function"==typeof d.raw},C.prototype.save=function(){return{offset:this.offset,reporter:e.prototype.save.call(this)}},C.prototype.restore=function(d){const R=new C(this.base);return R.offset=d.offset,R.length=this.offset,this.offset=d.offset,e.prototype.restore.call(this,d.reporter),R},C.prototype.isEmpty=function(){return this.offset===this.length},C.prototype.readUInt8=function(d){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(d||"DecoderBuffer overrun")},C.prototype.skip=function(d,R){if(!(this.offset+d<=this.length))return this.error(R||"DecoderBuffer overrun");const h=new C(this.base);return h._reporterState=this._reporterState,h.offset=this.offset,h.length=this.offset+d,this.offset+=d,h},C.prototype.raw=function(d){return this.base.slice(d?d.offset:this.offset,this.length)},J.R=a,a.isEncoderBuffer=function(d){return d instanceof a||"object"==typeof d&&"EncoderBuffer"===d.constructor.name&&"number"==typeof d.length&&"function"==typeof d.join},a.prototype.join=function(d,R){return d||(d=f.alloc(this.length)),R||(R=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(h){h.join(d,R),R+=h.length}):("number"==typeof this.value?d[R]=this.value:"string"==typeof this.value?d.write(this.value,R):f.isBuffer(this.value)&&this.value.copy(d,R),R+=this.length)),d}},7813:(ke,J,p)=>{"use strict";const t=J;t.Reporter=p(4919).b,t.DecoderBuffer=p(2769).C,t.EncoderBuffer=p(2769).R,t.Node=p(1430)},1430:(ke,J,p)=>{"use strict";const t=p(4919).b,e=p(2769).R,f=p(2769).C,C=p(2391),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],M=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function R(I,E,L){const T={};this._baseState=T,T.name=L,T.enc=I,T.parent=E||null,T.children=null,T.tag=null,T.args=null,T.reverseArgs=null,T.choice=null,T.optional=!1,T.any=!1,T.obj=!1,T.use=null,T.useDecoder=null,T.key=null,T.default=null,T.explicit=null,T.implicit=null,T.contains=null,T.parent||(T.children=[],this._wrap())}ke.exports=R;const h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];R.prototype.clone=function(){const E=this._baseState,L={};h.forEach(function(N){L[N]=E[N]});const T=new this.constructor(L.parent);return T._baseState=L,T},R.prototype._wrap=function(){const E=this._baseState;M.forEach(function(L){this[L]=function(){const N=new this.constructor(this);return E.children.push(N),N[L].apply(N,arguments)}},this)},R.prototype._init=function(E){const L=this._baseState;C(null===L.parent),E.call(this),L.children=L.children.filter(function(T){return T._baseState.parent===this},this),C.equal(L.children.length,1,"Root node can have only one child")},R.prototype._useArgs=function(E){const L=this._baseState,T=E.filter(function(N){return N instanceof this.constructor},this);E=E.filter(function(N){return!(N instanceof this.constructor)},this),0!==T.length&&(C(null===L.children),L.children=T,T.forEach(function(N){N._baseState.parent=this},this)),0!==E.length&&(C(null===L.args),L.args=E,L.reverseArgs=E.map(function(N){if("object"!=typeof N||N.constructor!==Object)return N;const w={};return Object.keys(N).forEach(function(G){G==(0|G)&&(G|=0),w[N[G]]=G}),w}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(I){R.prototype[I]=function(){throw new Error(I+" not implemented for encoding: "+this._baseState.enc)}}),a.forEach(function(I){R.prototype[I]=function(){const L=this._baseState,T=Array.prototype.slice.call(arguments);return C(null===L.tag),L.tag=I,this._useArgs(T),this}}),R.prototype.use=function(E){C(E);const L=this._baseState;return C(null===L.use),L.use=E,this},R.prototype.optional=function(){return this._baseState.optional=!0,this},R.prototype.def=function(E){const L=this._baseState;return C(null===L.default),L.default=E,L.optional=!0,this},R.prototype.explicit=function(E){const L=this._baseState;return C(null===L.explicit&&null===L.implicit),L.explicit=E,this},R.prototype.implicit=function(E){const L=this._baseState;return C(null===L.explicit&&null===L.implicit),L.implicit=E,this},R.prototype.obj=function(){const E=this._baseState,L=Array.prototype.slice.call(arguments);return E.obj=!0,0!==L.length&&this._useArgs(L),this},R.prototype.key=function(E){const L=this._baseState;return C(null===L.key),L.key=E,this},R.prototype.any=function(){return this._baseState.any=!0,this},R.prototype.choice=function(E){const L=this._baseState;return C(null===L.choice),L.choice=E,this._useArgs(Object.keys(E).map(function(T){return E[T]})),this},R.prototype.contains=function(E){const L=this._baseState;return C(null===L.use),L.contains=E,this},R.prototype._decode=function(E,L){const T=this._baseState;if(null===T.parent)return E.wrapResult(T.children[0]._decode(E,L));let K,N=T.default,w=!0,G=null;if(null!==T.key&&(G=E.enterKey(T.key)),T.optional){let Q=null;if(null!==T.explicit?Q=T.explicit:null!==T.implicit?Q=T.implicit:null!==T.tag&&(Q=T.tag),null!==Q||T.any){if(w=this._peekTag(E,Q,T.any),E.isError(w))return w}else{const re=E.save();try{null===T.choice?this._decodeGeneric(T.tag,E,L):this._decodeChoice(E,L),w=!0}catch{w=!1}E.restore(re)}}if(T.obj&&w&&(K=E.enterObject()),w){if(null!==T.explicit){const re=this._decodeTag(E,T.explicit);if(E.isError(re))return re;E=re}const Q=E.offset;if(null===T.use&&null===T.choice){let re;T.any&&(re=E.save());const ie=this._decodeTag(E,null!==T.implicit?T.implicit:T.tag,T.any);if(E.isError(ie))return ie;T.any?N=E.raw(re):E=ie}if(L&&L.track&&null!==T.tag&&L.track(E.path(),Q,E.length,"tagged"),L&&L.track&&null!==T.tag&&L.track(E.path(),E.offset,E.length,"content"),T.any||(N=null===T.choice?this._decodeGeneric(T.tag,E,L):this._decodeChoice(E,L)),E.isError(N))return N;if(!T.any&&null===T.choice&&null!==T.children&&T.children.forEach(function(ie){ie._decode(E,L)}),T.contains&&("octstr"===T.tag||"bitstr"===T.tag)){const re=new f(N);N=this._getUse(T.contains,E._reporterState.obj)._decode(re,L)}}return T.obj&&w&&(N=E.leaveObject(K)),null===T.key||null===N&&!0!==w?null!==G&&E.exitKey(G):E.leaveKey(G,T.key,N),N},R.prototype._decodeGeneric=function(E,L,T){const N=this._baseState;return"seq"===E||"set"===E?null:"seqof"===E||"setof"===E?this._decodeList(L,E,N.args[0],T):/str$/.test(E)?this._decodeStr(L,E,T):"objid"===E&&N.args?this._decodeObjid(L,N.args[0],N.args[1],T):"objid"===E?this._decodeObjid(L,null,null,T):"gentime"===E||"utctime"===E?this._decodeTime(L,E,T):"null_"===E?this._decodeNull(L,T):"bool"===E?this._decodeBool(L,T):"objDesc"===E?this._decodeStr(L,E,T):"int"===E||"enum"===E?this._decodeInt(L,N.args&&N.args[0],T):null!==N.use?this._getUse(N.use,L._reporterState.obj)._decode(L,T):L.error("unknown tag: "+E)},R.prototype._getUse=function(E,L){const T=this._baseState;return T.useDecoder=this._use(E,L),C(null===T.useDecoder._baseState.parent),T.useDecoder=T.useDecoder._baseState.children[0],T.implicit!==T.useDecoder._baseState.implicit&&(T.useDecoder=T.useDecoder.clone(),T.useDecoder._baseState.implicit=T.implicit),T.useDecoder},R.prototype._decodeChoice=function(E,L){const T=this._baseState;let N=null,w=!1;return Object.keys(T.choice).some(function(G){const K=E.save(),Q=T.choice[G];try{const re=Q._decode(E,L);if(E.isError(re))return!1;N={type:G,value:re},w=!0}catch{return E.restore(K),!1}return!0},this),w?N:E.error("Choice not matched")},R.prototype._createEncoderBuffer=function(E){return new e(E,this.reporter)},R.prototype._encode=function(E,L,T){const N=this._baseState;if(null!==N.default&&N.default===E)return;const w=this._encodeValue(E,L,T);return void 0===w||this._skipDefault(w,L,T)?void 0:w},R.prototype._encodeValue=function(E,L,T){const N=this._baseState;if(null===N.parent)return N.children[0]._encode(E,L||new t);let w=null;if(this.reporter=L,N.optional&&void 0===E){if(null===N.default)return;E=N.default}let G=null,K=!1;if(N.any)w=this._createEncoderBuffer(E);else if(N.choice)w=this._encodeChoice(E,L);else if(N.contains)G=this._getUse(N.contains,T)._encode(E,L),K=!0;else if(N.children)G=N.children.map(function(Q){if("null_"===Q._baseState.tag)return Q._encode(null,L,E);if(null===Q._baseState.key)return L.error("Child should have a key");const re=L.enterKey(Q._baseState.key);if("object"!=typeof E)return L.error("Child expected, but input is not object");const ie=Q._encode(E[Q._baseState.key],L,E);return L.leaveKey(re),ie},this).filter(function(Q){return Q}),G=this._createEncoderBuffer(G);else if("seqof"===N.tag||"setof"===N.tag){if(!N.args||1!==N.args.length)return L.error("Too many args for : "+N.tag);if(!Array.isArray(E))return L.error("seqof/setof, but data is not Array");const Q=this.clone();Q._baseState.implicit=null,G=this._createEncoderBuffer(E.map(function(re){return this._getUse(this._baseState.args[0],E)._encode(re,L)},Q))}else null!==N.use?w=this._getUse(N.use,T)._encode(E,L):(G=this._encodePrimitive(N.tag,E),K=!0);if(!N.any&&null===N.choice){const Q=null!==N.implicit?N.implicit:N.tag,re=null===N.implicit?"universal":"context";null===Q?null===N.use&&L.error("Tag could be omitted only for .use()"):null===N.use&&(w=this._encodeComposite(Q,K,re,G))}return null!==N.explicit&&(w=this._encodeComposite(N.explicit,!1,"context",w)),w},R.prototype._encodeChoice=function(E,L){const T=this._baseState,N=T.choice[E.type];return N||C(!1,E.type+" not found in "+JSON.stringify(Object.keys(T.choice))),N._encode(E.value,L)},R.prototype._encodePrimitive=function(E,L){const T=this._baseState;if(/str$/.test(E))return this._encodeStr(L,E);if("objid"===E&&T.args)return this._encodeObjid(L,T.reverseArgs[0],T.args[1]);if("objid"===E)return this._encodeObjid(L,null,null);if("gentime"===E||"utctime"===E)return this._encodeTime(L,E);if("null_"===E)return this._encodeNull();if("int"===E||"enum"===E)return this._encodeInt(L,T.args&&T.reverseArgs[0]);if("bool"===E)return this._encodeBool(L);if("objDesc"===E)return this._encodeStr(L,E);throw new Error("Unsupported tag: "+E)},R.prototype._isNumstr=function(E){return/^[0-9 ]*$/.test(E)},R.prototype._isPrintstr=function(E){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(E)}},4919:(ke,J,p)=>{"use strict";const t=p(3894);function e(C){this._reporterState={obj:null,path:[],options:C||{},errors:[]}}function f(C,a){this.path=C,this.rethrow(a)}J.b=e,e.prototype.isError=function(a){return a instanceof f},e.prototype.save=function(){const a=this._reporterState;return{obj:a.obj,pathLen:a.path.length}},e.prototype.restore=function(a){const M=this._reporterState;M.obj=a.obj,M.path=M.path.slice(0,a.pathLen)},e.prototype.enterKey=function(a){return this._reporterState.path.push(a)},e.prototype.exitKey=function(a){const M=this._reporterState;M.path=M.path.slice(0,a-1)},e.prototype.leaveKey=function(a,M,d){const R=this._reporterState;this.exitKey(a),null!==R.obj&&(R.obj[M]=d)},e.prototype.path=function(){return this._reporterState.path.join("/")},e.prototype.enterObject=function(){const a=this._reporterState,M=a.obj;return a.obj={},M},e.prototype.leaveObject=function(a){const M=this._reporterState,d=M.obj;return M.obj=a,d},e.prototype.error=function(a){let M;const d=this._reporterState,R=a instanceof f;if(M=R?a:new f(d.path.map(function(h){return"["+JSON.stringify(h)+"]"}).join(""),a.message||a,a.stack),!d.options.partial)throw M;return R||d.errors.push(M),M},e.prototype.wrapResult=function(a){const M=this._reporterState;return M.options.partial?{result:this.isError(a)?null:a,errors:M.errors}:a},t(f,Error),f.prototype.rethrow=function(a){if(this.message=a+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,f),!this.stack)try{throw new Error(this.message)}catch(M){this.stack=M.stack}return this}},5496:(ke,J)=>{"use strict";function p(t){const e={};return Object.keys(t).forEach(function(f){(0|f)==f&&(f|=0),e[t[f]]=f}),e}J.tagClass={0:"universal",1:"application",2:"context",3:"private"},J.tagClassByName=p(J.tagClass),J.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"},J.tagByName=p(J.tag)},5459:(ke,J,p)=>{"use strict";const t=J;t._reverse=function(f){const C={};return Object.keys(f).forEach(function(a){(0|a)==a&&(a|=0),C[f[a]]=a}),C},t.der=p(5496)},7127:(ke,J,p)=>{"use strict";const t=p(3894),e=p(3854),f=p(2769).C,C=p(1430),a=p(5496);function M(I){this.enc="der",this.name=I.name,this.entity=I,this.tree=new d,this.tree._init(I.body)}function d(I){C.call(this,"der",I)}function R(I,E){let L=I.readUInt8(E);if(I.isError(L))return L;const T=a.tagClass[L>>6],N=0==(32&L);if(31==(31&L)){let G=L;for(L=0;128==(128&G);){if(G=I.readUInt8(E),I.isError(G))return G;L<<=7,L|=127&G}}else L&=31;return{cls:T,primitive:N,tag:L,tagStr:a.tag[L]}}function h(I,E,L){let T=I.readUInt8(L);if(I.isError(T))return T;if(!E&&128===T)return null;if(0==(128&T))return T;const N=127&T;if(N>4)return I.error("length octect is too long");T=0;for(let w=0;w<N;w++){T<<=8;const G=I.readUInt8(L);if(I.isError(G))return G;T|=G}return T}ke.exports=M,M.prototype.decode=function(E,L){return f.isDecoderBuffer(E)||(E=new f(E,L)),this.tree._decode(E,L)},t(d,C),d.prototype._peekTag=function(E,L,T){if(E.isEmpty())return!1;const N=E.save(),w=R(E,'Failed to peek tag: "'+L+'"');return E.isError(w)?w:(E.restore(N),w.tag===L||w.tagStr===L||w.tagStr+"of"===L||T)},d.prototype._decodeTag=function(E,L,T){const N=R(E,'Failed to decode tag of "'+L+'"');if(E.isError(N))return N;let w=h(E,N.primitive,'Failed to get length of "'+L+'"');if(E.isError(w))return w;if(!T&&N.tag!==L&&N.tagStr!==L&&N.tagStr+"of"!==L)return E.error('Failed to match tag: "'+L+'"');if(N.primitive||null!==w)return E.skip(w,'Failed to match body of: "'+L+'"');const G=E.save(),K=this._skipUntilEnd(E,'Failed to skip indefinite length body: "'+this.tag+'"');return E.isError(K)?K:(w=E.offset-G.offset,E.restore(G),E.skip(w,'Failed to match body of: "'+L+'"'))},d.prototype._skipUntilEnd=function(E,L){for(;;){const T=R(E,L);if(E.isError(T))return T;const N=h(E,T.primitive,L);if(E.isError(N))return N;let w;if(w=T.primitive||null!==N?E.skip(N):this._skipUntilEnd(E,L),E.isError(w))return w;if("end"===T.tagStr)break}},d.prototype._decodeList=function(E,L,T,N){const w=[];for(;!E.isEmpty();){const G=this._peekTag(E,"end");if(E.isError(G))return G;const K=T.decode(E,"der",N);if(E.isError(K)&&G)break;w.push(K)}return w},d.prototype._decodeStr=function(E,L){if("bitstr"===L){const T=E.readUInt8();return E.isError(T)?T:{unused:T,data:E.raw()}}if("bmpstr"===L){const T=E.raw();if(T.length%2==1)return E.error("Decoding of string type: bmpstr length mismatch");let N="";for(let w=0;w<T.length/2;w++)N+=String.fromCharCode(T.readUInt16BE(2*w));return N}if("numstr"===L){const T=E.raw().toString("ascii");return this._isNumstr(T)?T:E.error("Decoding of string type: numstr unsupported characters")}if("octstr"===L)return E.raw();if("objDesc"===L)return E.raw();if("printstr"===L){const T=E.raw().toString("ascii");return this._isPrintstr(T)?T:E.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(L)?E.raw().toString():E.error("Decoding of string type: "+L+" unsupported")},d.prototype._decodeObjid=function(E,L,T){let N;const w=[];let G=0,K=0;for(;!E.isEmpty();)K=E.readUInt8(),G<<=7,G|=127&K,0==(128&K)&&(w.push(G),G=0);if(128&K&&w.push(G),N=T?w:[w[0]/40|0,w[0]%40].concat(w.slice(1)),L){let ie=L[N.join(" ")];void 0===ie&&(ie=L[N.join(".")]),void 0!==ie&&(N=ie)}return N},d.prototype._decodeTime=function(E,L){const T=E.raw().toString();let N,w,G,K,Q,re;if("gentime"===L)N=0|T.slice(0,4),w=0|T.slice(4,6),G=0|T.slice(6,8),K=0|T.slice(8,10),Q=0|T.slice(10,12),re=0|T.slice(12,14);else{if("utctime"!==L)return E.error("Decoding "+L+" time is not supported yet");N=0|T.slice(0,2),w=0|T.slice(2,4),G=0|T.slice(4,6),K=0|T.slice(6,8),Q=0|T.slice(8,10),re=0|T.slice(10,12),N=N<70?2e3+N:1900+N}return Date.UTC(N,w-1,G,K,Q,re,0)},d.prototype._decodeNull=function(){return null},d.prototype._decodeBool=function(E){const L=E.readUInt8();return E.isError(L)?L:0!==L},d.prototype._decodeInt=function(E,L){const T=E.raw();let N=new e(T);return L&&(N=L[N.toString(10)]||N),N},d.prototype._use=function(E,L){return"function"==typeof E&&(E=E(L)),E._getDecoder("der").tree}},196:(ke,J,p)=>{"use strict";const t=J;t.der=p(7127),t.pem=p(9617)},9617:(ke,J,p)=>{"use strict";const t=p(3894),e=p(2038).Buffer,f=p(7127);function C(a){f.call(this,a),this.enc="pem"}t(C,f),ke.exports=C,C.prototype.decode=function(M,d){const R=M.toString().split(/[\r\n]+/g),h=d.label.toUpperCase(),I=/^-----(BEGIN|END) ([^-]+)-----$/;let E=-1,L=-1;for(let w=0;w<R.length;w++){const G=R[w].match(I);if(null!==G&&G[2]===h){if(-1!==E){if("END"!==G[1])break;L=w;break}if("BEGIN"!==G[1])break;E=w}}if(-1===E||-1===L)throw new Error("PEM section not found for: "+h);const T=R.slice(E+1,L).join("");T.replace(/[^a-z0-9+/=]+/gi,"");const N=e.from(T,"base64");return f.prototype.decode.call(this,N,d)}},6374:(ke,J,p)=>{"use strict";const t=p(3894),e=p(2038).Buffer,f=p(1430),C=p(5496);function a(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new M,this.tree._init(h.body)}function M(h){f.call(this,"der",h)}function d(h){return h<10?"0"+h:h}ke.exports=a,a.prototype.encode=function(I,E){return this.tree._encode(I,E).join()},t(M,f),M.prototype._encodeComposite=function(I,E,L,T){const N=function R(h,I,E,L){let T;if("seqof"===h?h="seq":"setof"===h&&(h="set"),C.tagByName.hasOwnProperty(h))T=C.tagByName[h];else{if("number"!=typeof h||(0|h)!==h)return L.error("Unknown tag: "+h);T=h}return T>=31?L.error("Multi-octet tag encoding unsupported"):(I||(T|=32),T|=C.tagClassByName[E||"universal"]<<6,T)}(I,E,L,this.reporter);if(T.length<128){const K=e.alloc(2);return K[0]=N,K[1]=T.length,this._createEncoderBuffer([K,T])}let w=1;for(let K=T.length;K>=256;K>>=8)w++;const G=e.alloc(2+w);G[0]=N,G[1]=128|w;for(let K=1+w,Q=T.length;Q>0;K--,Q>>=8)G[K]=255&Q;return this._createEncoderBuffer([G,T])},M.prototype._encodeStr=function(I,E){if("bitstr"===E)return this._createEncoderBuffer([0|I.unused,I.data]);if("bmpstr"===E){const L=e.alloc(2*I.length);for(let T=0;T<I.length;T++)L.writeUInt16BE(I.charCodeAt(T),2*T);return this._createEncoderBuffer(L)}return"numstr"===E?this._isNumstr(I)?this._createEncoderBuffer(I):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===E?this._isPrintstr(I)?this._createEncoderBuffer(I):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(E)||"objDesc"===E?this._createEncoderBuffer(I):this.reporter.error("Encoding of string type: "+E+" unsupported")},M.prototype._encodeObjid=function(I,E,L){if("string"==typeof I){if(!E)return this.reporter.error("string objid given, but no values map found");if(!E.hasOwnProperty(I))return this.reporter.error("objid not found in values map");I=E[I].split(/[\s.]+/g);for(let G=0;G<I.length;G++)I[G]|=0}else if(Array.isArray(I)){I=I.slice();for(let G=0;G<I.length;G++)I[G]|=0}if(!Array.isArray(I))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(I));if(!L){if(I[1]>=40)return this.reporter.error("Second objid identifier OOB");I.splice(0,2,40*I[0]+I[1])}let T=0;for(let G=0;G<I.length;G++){let K=I[G];for(T++;K>=128;K>>=7)T++}const N=e.alloc(T);let w=N.length-1;for(let G=I.length-1;G>=0;G--){let K=I[G];for(N[w--]=127&K;(K>>=7)>0;)N[w--]=128|127&K}return this._createEncoderBuffer(N)},M.prototype._encodeTime=function(I,E){let L;const T=new Date(I);return"gentime"===E?L=[d(T.getUTCFullYear()),d(T.getUTCMonth()+1),d(T.getUTCDate()),d(T.getUTCHours()),d(T.getUTCMinutes()),d(T.getUTCSeconds()),"Z"].join(""):"utctime"===E?L=[d(T.getUTCFullYear()%100),d(T.getUTCMonth()+1),d(T.getUTCDate()),d(T.getUTCHours()),d(T.getUTCMinutes()),d(T.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+E+" time is not supported yet"),this._encodeStr(L,"octstr")},M.prototype._encodeNull=function(){return this._createEncoderBuffer("")},M.prototype._encodeInt=function(I,E){if("string"==typeof I){if(!E)return this.reporter.error("String int or enum given, but no values map");if(!E.hasOwnProperty(I))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(I));I=E[I]}if("number"!=typeof I&&!e.isBuffer(I)){const N=I.toArray();!I.sign&&128&N[0]&&N.unshift(0),I=e.from(N)}if(e.isBuffer(I)){let N=I.length;0===I.length&&N++;const w=e.alloc(N);return I.copy(w),0===I.length&&(w[0]=0),this._createEncoderBuffer(w)}if(I<128)return this._createEncoderBuffer(I);if(I<256)return this._createEncoderBuffer([0,I]);let L=1;for(let N=I;N>=256;N>>=8)L++;const T=new Array(L);for(let N=T.length-1;N>=0;N--)T[N]=255&I,I>>=8;return 128&T[0]&&T.unshift(0),this._createEncoderBuffer(e.from(T))},M.prototype._encodeBool=function(I){return this._createEncoderBuffer(I?255:0)},M.prototype._use=function(I,E){return"function"==typeof I&&(I=I(E)),I._getEncoder("der").tree},M.prototype._skipDefault=function(I,E,L){const T=this._baseState;let N;if(null===T.default)return!1;const w=I.join();if(void 0===T.defaultBuffer&&(T.defaultBuffer=this._encodeValue(T.default,E,L).join()),w.length!==T.defaultBuffer.length)return!1;for(N=0;N<w.length;N++)if(w[N]!==T.defaultBuffer[N])return!1;return!0}},1131:(ke,J,p)=>{"use strict";const t=J;t.der=p(6374),t.pem=p(3530)},3530:(ke,J,p)=>{"use strict";const t=p(3894),e=p(6374);function f(C){e.call(this,C),this.enc="pem"}t(f,e),ke.exports=f,f.prototype.encode=function(a,M){const R=e.prototype.encode.call(this,a).toString("base64"),h=["-----BEGIN "+M.label+"-----"];for(let I=0;I<R.length;I+=64)h.push(R.slice(I,I+64));return h.push("-----END "+M.label+"-----"),h.join("\n")}},3854:function(ke,J,p){!function(t,e){"use strict";function f(S,i){if(!S)throw new Error(i||"Assertion failed")}function C(S,i){S.super_=i;var r=function(){};r.prototype=i.prototype,S.prototype=new r,S.prototype.constructor=S}function a(S,i,r){if(a.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,null!==S&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(S||0,i||10,r||"be"))}var M;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{M=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:p(950).Buffer}catch{}function d(S,i){var r=S.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(S,i,r){var u=d(S,r);return r-1>=i&&(u|=d(S,r-1)<<4),u}function h(S,i,r,u){for(var l=0,y=Math.min(S.length,r),D=i;D<y;D++){var k=S.charCodeAt(D)-48;l*=u,l+=k>=49?k-49+10:k>=17?k-17+10:k}return l}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===r?this._parseHex(i,l,u):(this._parseBase(i,r,l),"le"===u&&this._initArray(this.toArray(),r,u)))},a.prototype._initNumber=function(i,r,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(f(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),r,u)},a.prototype._initArray=function(i,r,u){if(f("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var y,D,k=0;if("be"===u)for(l=i.length-1,y=0;l>=0;l-=3)this.words[y]|=(D=i[l]|i[l-1]<<8|i[l-2]<<16)<<k&67108863,this.words[y+1]=D>>>26-k&67108863,(k+=24)>=26&&(k-=26,y++);else if("le"===u)for(l=0,y=0;l<i.length;l+=3)this.words[y]|=(D=i[l]|i[l+1]<<8|i[l+2]<<16)<<k&67108863,this.words[y+1]=D>>>26-k&67108863,(k+=24)>=26&&(k-=26,y++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var k,y=0,D=0;if("be"===u)for(l=i.length-1;l>=r;l-=2)k=R(i,r,l)<<y,this.words[D]|=67108863&k,y>=18?(y-=18,this.words[D+=1]|=k>>>26):y+=8;else for(l=(i.length-r)%2==0?r+1:r;l<i.length;l+=2)k=R(i,r,l)<<y,this.words[D]|=67108863&k,y>=18?(y-=18,this.words[D+=1]|=k>>>26):y+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=r)l++;l--,y=y/r|0;for(var D=i.length-u,k=D%l,b=Math.min(D,D-k)+u,n=0,_=u;_<b;_+=l)n=h(i,_,_+l,r),this.imuln(y),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==k){var W=1;for(n=h(i,_,i.length,r),_=0;_<k;_++)W*=r;this.imuln(W),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},a.prototype.copy=function(i){i.words=new Array(this.length);for(var r=0;r<this.length;r++)i.words[r]=this.words[r];i.length=this.length,i.negative=this.negative,i.red=this.red},a.prototype.clone=function(){var i=new a(null);return this.copy(i),i},a.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var I=["","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"],E=[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],L=[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 N(S,i,r){r.negative=i.negative^S.negative;var u=S.length+i.length|0;r.length=u,u=u-1|0;var l=0|S.words[0],y=0|i.words[0],D=l*y,b=D/67108864|0;r.words[0]=67108863&D;for(var n=1;n<u;n++){for(var _=b>>>26,W=67108863&b,P=Math.min(n,i.length-1),U=Math.max(0,n-S.length+1);U<=P;U++)_+=(D=(l=0|S.words[n-U|0])*(y=0|i.words[U])+W)/67108864|0,W=67108863&D;r.words[n]=0|W,b=0|_}return 0!==b?r.words[n]=0|b:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,y=0,D=0;D<this.length;D++){var k=this.words[D],b=(16777215&(k<<l|y)).toString(16);u=0!=(y=k>>>24-l&16777215)||D!==this.length-1?I[6-b.length]+b+u:b+u,(l+=2)>=26&&(l-=26,D--)}for(0!==y&&(u=y.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=E[i],_=L[i];u="";var W=this.clone();for(W.negative=0;!W.isZero();){var P=W.modn(_).toString(i);u=(W=W.idivn(_)).isZero()?P+u:I[n-P.length]+P+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(typeof M<"u"),this.toArrayLike(M,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var l=this.byteLength(),y=u||Math.max(1,l);f(l<=y,"byte array longer than desired length"),f(y>0,"Requested array length <= 0"),this.strip();var b,n,D="le"===r,k=new i(y),_=this.clone();if(D){for(n=0;!_.isZero();n++)b=_.andln(255),_.iushrn(8),k[n]=b;for(;n<y;n++)k[n]=0}else{for(n=0;n<y-l;n++)k[n]=0;for(n=0;!_.isZero();n++)b=_.andln(255),_.iushrn(8),k[y-n-1]=b}return k},a.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;r<this.length;r++){var u=this._zeroBits(this.words[r]);if(i+=u,26!==u)break}return i},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},a.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var r=0;r<i.length;r++)this.words[r]=this.words[r]|i.words[r];return this.strip()},a.prototype.ior=function(i){return f(0==(this.negative|i.negative)),this.iuor(i)},a.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;u<r.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=r.length,this.strip()},a.prototype.iand=function(i){return f(0==(this.negative|i.negative)),this.iuand(i)},a.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=r.words[l]^u.words[l];if(this!==r)for(;l<r.length;l++)this.words[l]=r.words[l];return this.length=r.length,this.strip()},a.prototype.ixor=function(i){return f(0==(this.negative|i.negative)),this.iuxor(i)},a.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var l=0;l<r;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},a.prototype.iadd=function(i){var r,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,r=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,r=this.isub(i),i.negative=1,r._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var y=0,D=0;D<l.length;D++)this.words[D]=67108863&(r=(0|u.words[D])+(0|l.words[D])+y),y=r>>>26;for(;0!==y&&D<u.length;D++)this.words[D]=67108863&(r=(0|u.words[D])+y),y=r>>>26;if(this.length=u.length,0!==y)this.words[this.length]=y,this.length++;else if(u!==this)for(;D<u.length;D++)this.words[D]=u.words[D];return this},a.prototype.add=function(i){var r;return 0!==i.negative&&0===this.negative?(i.negative=0,r=this.sub(i),i.negative^=1,r):0===i.negative&&0!==this.negative?(this.negative=0,r=i.sub(this),this.negative=1,r):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var l,y,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,y=i):(l=i,y=this);for(var D=0,k=0;k<y.length;k++)D=(r=(0|l.words[k])-(0|y.words[k])+D)>>26,this.words[k]=67108863&r;for(;0!==D&&k<l.length;k++)D=(r=(0|l.words[k])+D)>>26,this.words[k]=67108863&r;if(0===D&&k<l.length&&l!==this)for(;k<l.length;k++)this.words[k]=l.words[k];return this.length=Math.max(this.length,k),l!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,r,u){var b,n,_,l=i.words,y=r.words,D=u.words,k=0,W=0|l[0],P=8191&W,U=W>>>13,me=0|l[1],nt=8191&me,Pe=me>>>13,Oe=0|l[2],De=8191&Oe,ue=Oe>>>13,ve=0|l[3],Ie=8191&ve,$=ve>>>13,Ge=0|l[4],ut=8191&Ge,Ee=Ge>>>13,ye=0|l[5],he=8191&ye,de=ye>>>13,we=0|l[6],Y=8191&we,j=we>>>13,Ce=0|l[7],Se=8191&Ce,X=Ce>>>13,Ye=0|l[8],Le=8191&Ye,gt=Ye>>>13,Wt=0|l[9],Rt=8191&Wt,jt=Wt>>>13,hi=0|y[0],yt=8191&hi,Pt=hi>>>13,pt=0|y[1],vt=8191&pt,Ct=pt>>>13,At=0|y[2],dt=8191&At,ze=At>>>13,Ve=0|y[3],Fe=8191&Ve,be=Ve>>>13,xt=0|y[4],ct=8191&xt,Nt=xt>>>13,et=0|y[5],Ae=8191&et,rt=et>>>13,Qe=0|y[6],Ke=8191&Qe,mt=Qe>>>13,$t=0|y[7],Gt=8191&$t,zt=$t>>>13,Et=0|y[8],ht=8191&Et,at=Et>>>13,ei=0|y[9],Ut=8191&ei,qt=ei>>>13;u.negative=i.negative^r.negative,u.length=19;var Pi=(k+(b=Math.imul(P,yt))|0)+((8191&(n=(n=Math.imul(P,Pt))+Math.imul(U,yt)|0))<<13)|0;k=((_=Math.imul(U,Pt))+(n>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,b=Math.imul(nt,yt),n=(n=Math.imul(nt,Pt))+Math.imul(Pe,yt)|0,_=Math.imul(Pe,Pt);var Ii=(k+(b=b+Math.imul(P,vt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ct)|0)+Math.imul(U,vt)|0))<<13)|0;k=((_=_+Math.imul(U,Ct)|0)+(n>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,b=Math.imul(De,yt),n=(n=Math.imul(De,Pt))+Math.imul(ue,yt)|0,_=Math.imul(ue,Pt),b=b+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,Ct)|0)+Math.imul(Pe,vt)|0,_=_+Math.imul(Pe,Ct)|0;var Ei=(k+(b=b+Math.imul(P,dt)|0)|0)+((8191&(n=(n=n+Math.imul(P,ze)|0)+Math.imul(U,dt)|0))<<13)|0;k=((_=_+Math.imul(U,ze)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,b=Math.imul(Ie,yt),n=(n=Math.imul(Ie,Pt))+Math.imul($,yt)|0,_=Math.imul($,Pt),b=b+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,Ct)|0)+Math.imul(ue,vt)|0,_=_+Math.imul(ue,Ct)|0,b=b+Math.imul(nt,dt)|0,n=(n=n+Math.imul(nt,ze)|0)+Math.imul(Pe,dt)|0,_=_+Math.imul(Pe,ze)|0;var Vi=(k+(b=b+Math.imul(P,Fe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(U,Fe)|0))<<13)|0;k=((_=_+Math.imul(U,be)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,b=Math.imul(ut,yt),n=(n=Math.imul(ut,Pt))+Math.imul(Ee,yt)|0,_=Math.imul(Ee,Pt),b=b+Math.imul(Ie,vt)|0,n=(n=n+Math.imul(Ie,Ct)|0)+Math.imul($,vt)|0,_=_+Math.imul($,Ct)|0,b=b+Math.imul(De,dt)|0,n=(n=n+Math.imul(De,ze)|0)+Math.imul(ue,dt)|0,_=_+Math.imul(ue,ze)|0,b=b+Math.imul(nt,Fe)|0,n=(n=n+Math.imul(nt,be)|0)+Math.imul(Pe,Fe)|0,_=_+Math.imul(Pe,be)|0;var Be=(k+(b=b+Math.imul(P,ct)|0)|0)+((8191&(n=(n=n+Math.imul(P,Nt)|0)+Math.imul(U,ct)|0))<<13)|0;k=((_=_+Math.imul(U,Nt)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,b=Math.imul(he,yt),n=(n=Math.imul(he,Pt))+Math.imul(de,yt)|0,_=Math.imul(de,Pt),b=b+Math.imul(ut,vt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Ee,vt)|0,_=_+Math.imul(Ee,Ct)|0,b=b+Math.imul(Ie,dt)|0,n=(n=n+Math.imul(Ie,ze)|0)+Math.imul($,dt)|0,_=_+Math.imul($,ze)|0,b=b+Math.imul(De,Fe)|0,n=(n=n+Math.imul(De,be)|0)+Math.imul(ue,Fe)|0,_=_+Math.imul(ue,be)|0,b=b+Math.imul(nt,ct)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Pe,ct)|0,_=_+Math.imul(Pe,Nt)|0;var kt=(k+(b=b+Math.imul(P,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(P,rt)|0)+Math.imul(U,Ae)|0))<<13)|0;k=((_=_+Math.imul(U,rt)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,b=Math.imul(Y,yt),n=(n=Math.imul(Y,Pt))+Math.imul(j,yt)|0,_=Math.imul(j,Pt),b=b+Math.imul(he,vt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(de,vt)|0,_=_+Math.imul(de,Ct)|0,b=b+Math.imul(ut,dt)|0,n=(n=n+Math.imul(ut,ze)|0)+Math.imul(Ee,dt)|0,_=_+Math.imul(Ee,ze)|0,b=b+Math.imul(Ie,Fe)|0,n=(n=n+Math.imul(Ie,be)|0)+Math.imul($,Fe)|0,_=_+Math.imul($,be)|0,b=b+Math.imul(De,ct)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(ue,ct)|0,_=_+Math.imul(ue,Nt)|0,b=b+Math.imul(nt,Ae)|0,n=(n=n+Math.imul(nt,rt)|0)+Math.imul(Pe,Ae)|0,_=_+Math.imul(Pe,rt)|0;var _e=(k+(b=b+Math.imul(P,Ke)|0)|0)+((8191&(n=(n=n+Math.imul(P,mt)|0)+Math.imul(U,Ke)|0))<<13)|0;k=((_=_+Math.imul(U,mt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,b=Math.imul(Se,yt),n=(n=Math.imul(Se,Pt))+Math.imul(X,yt)|0,_=Math.imul(X,Pt),b=b+Math.imul(Y,vt)|0,n=(n=n+Math.imul(Y,Ct)|0)+Math.imul(j,vt)|0,_=_+Math.imul(j,Ct)|0,b=b+Math.imul(he,dt)|0,n=(n=n+Math.imul(he,ze)|0)+Math.imul(de,dt)|0,_=_+Math.imul(de,ze)|0,b=b+Math.imul(ut,Fe)|0,n=(n=n+Math.imul(ut,be)|0)+Math.imul(Ee,Fe)|0,_=_+Math.imul(Ee,be)|0,b=b+Math.imul(Ie,ct)|0,n=(n=n+Math.imul(Ie,Nt)|0)+Math.imul($,ct)|0,_=_+Math.imul($,Nt)|0,b=b+Math.imul(De,Ae)|0,n=(n=n+Math.imul(De,rt)|0)+Math.imul(ue,Ae)|0,_=_+Math.imul(ue,rt)|0,b=b+Math.imul(nt,Ke)|0,n=(n=n+Math.imul(nt,mt)|0)+Math.imul(Pe,Ke)|0,_=_+Math.imul(Pe,mt)|0;var Je=(k+(b=b+Math.imul(P,Gt)|0)|0)+((8191&(n=(n=n+Math.imul(P,zt)|0)+Math.imul(U,Gt)|0))<<13)|0;k=((_=_+Math.imul(U,zt)|0)+(n>>>13)|0)+(Je>>>26)|0,Je&=67108863,b=Math.imul(Le,yt),n=(n=Math.imul(Le,Pt))+Math.imul(gt,yt)|0,_=Math.imul(gt,Pt),b=b+Math.imul(Se,vt)|0,n=(n=n+Math.imul(Se,Ct)|0)+Math.imul(X,vt)|0,_=_+Math.imul(X,Ct)|0,b=b+Math.imul(Y,dt)|0,n=(n=n+Math.imul(Y,ze)|0)+Math.imul(j,dt)|0,_=_+Math.imul(j,ze)|0,b=b+Math.imul(he,Fe)|0,n=(n=n+Math.imul(he,be)|0)+Math.imul(de,Fe)|0,_=_+Math.imul(de,be)|0,b=b+Math.imul(ut,ct)|0,n=(n=n+Math.imul(ut,Nt)|0)+Math.imul(Ee,ct)|0,_=_+Math.imul(Ee,Nt)|0,b=b+Math.imul(Ie,Ae)|0,n=(n=n+Math.imul(Ie,rt)|0)+Math.imul($,Ae)|0,_=_+Math.imul($,rt)|0,b=b+Math.imul(De,Ke)|0,n=(n=n+Math.imul(De,mt)|0)+Math.imul(ue,Ke)|0,_=_+Math.imul(ue,mt)|0,b=b+Math.imul(nt,Gt)|0,n=(n=n+Math.imul(nt,zt)|0)+Math.imul(Pe,Gt)|0,_=_+Math.imul(Pe,zt)|0;var _t=(k+(b=b+Math.imul(P,ht)|0)|0)+((8191&(n=(n=n+Math.imul(P,at)|0)+Math.imul(U,ht)|0))<<13)|0;k=((_=_+Math.imul(U,at)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,b=Math.imul(Rt,yt),n=(n=Math.imul(Rt,Pt))+Math.imul(jt,yt)|0,_=Math.imul(jt,Pt),b=b+Math.imul(Le,vt)|0,n=(n=n+Math.imul(Le,Ct)|0)+Math.imul(gt,vt)|0,_=_+Math.imul(gt,Ct)|0,b=b+Math.imul(Se,dt)|0,n=(n=n+Math.imul(Se,ze)|0)+Math.imul(X,dt)|0,_=_+Math.imul(X,ze)|0,b=b+Math.imul(Y,Fe)|0,n=(n=n+Math.imul(Y,be)|0)+Math.imul(j,Fe)|0,_=_+Math.imul(j,be)|0,b=b+Math.imul(he,ct)|0,n=(n=n+Math.imul(he,Nt)|0)+Math.imul(de,ct)|0,_=_+Math.imul(de,Nt)|0,b=b+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Ee,Ae)|0,_=_+Math.imul(Ee,rt)|0,b=b+Math.imul(Ie,Ke)|0,n=(n=n+Math.imul(Ie,mt)|0)+Math.imul($,Ke)|0,_=_+Math.imul($,mt)|0,b=b+Math.imul(De,Gt)|0,n=(n=n+Math.imul(De,zt)|0)+Math.imul(ue,Gt)|0,_=_+Math.imul(ue,zt)|0,b=b+Math.imul(nt,ht)|0,n=(n=n+Math.imul(nt,at)|0)+Math.imul(Pe,ht)|0,_=_+Math.imul(Pe,at)|0;var se=(k+(b=b+Math.imul(P,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(P,qt)|0)+Math.imul(U,Ut)|0))<<13)|0;k=((_=_+Math.imul(U,qt)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,b=Math.imul(Rt,vt),n=(n=Math.imul(Rt,Ct))+Math.imul(jt,vt)|0,_=Math.imul(jt,Ct),b=b+Math.imul(Le,dt)|0,n=(n=n+Math.imul(Le,ze)|0)+Math.imul(gt,dt)|0,_=_+Math.imul(gt,ze)|0,b=b+Math.imul(Se,Fe)|0,n=(n=n+Math.imul(Se,be)|0)+Math.imul(X,Fe)|0,_=_+Math.imul(X,be)|0,b=b+Math.imul(Y,ct)|0,n=(n=n+Math.imul(Y,Nt)|0)+Math.imul(j,ct)|0,_=_+Math.imul(j,Nt)|0,b=b+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(de,Ae)|0,_=_+Math.imul(de,rt)|0,b=b+Math.imul(ut,Ke)|0,n=(n=n+Math.imul(ut,mt)|0)+Math.imul(Ee,Ke)|0,_=_+Math.imul(Ee,mt)|0,b=b+Math.imul(Ie,Gt)|0,n=(n=n+Math.imul(Ie,zt)|0)+Math.imul($,Gt)|0,_=_+Math.imul($,zt)|0,b=b+Math.imul(De,ht)|0,n=(n=n+Math.imul(De,at)|0)+Math.imul(ue,ht)|0,_=_+Math.imul(ue,at)|0;var Xe=(k+(b=b+Math.imul(nt,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(nt,qt)|0)+Math.imul(Pe,Ut)|0))<<13)|0;k=((_=_+Math.imul(Pe,qt)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,b=Math.imul(Rt,dt),n=(n=Math.imul(Rt,ze))+Math.imul(jt,dt)|0,_=Math.imul(jt,ze),b=b+Math.imul(Le,Fe)|0,n=(n=n+Math.imul(Le,be)|0)+Math.imul(gt,Fe)|0,_=_+Math.imul(gt,be)|0,b=b+Math.imul(Se,ct)|0,n=(n=n+Math.imul(Se,Nt)|0)+Math.imul(X,ct)|0,_=_+Math.imul(X,Nt)|0,b=b+Math.imul(Y,Ae)|0,n=(n=n+Math.imul(Y,rt)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,rt)|0,b=b+Math.imul(he,Ke)|0,n=(n=n+Math.imul(he,mt)|0)+Math.imul(de,Ke)|0,_=_+Math.imul(de,mt)|0,b=b+Math.imul(ut,Gt)|0,n=(n=n+Math.imul(ut,zt)|0)+Math.imul(Ee,Gt)|0,_=_+Math.imul(Ee,zt)|0,b=b+Math.imul(Ie,ht)|0,n=(n=n+Math.imul(Ie,at)|0)+Math.imul($,ht)|0,_=_+Math.imul($,at)|0;var bt=(k+(b=b+Math.imul(De,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(De,qt)|0)+Math.imul(ue,Ut)|0))<<13)|0;k=((_=_+Math.imul(ue,qt)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,b=Math.imul(Rt,Fe),n=(n=Math.imul(Rt,be))+Math.imul(jt,Fe)|0,_=Math.imul(jt,be),b=b+Math.imul(Le,ct)|0,n=(n=n+Math.imul(Le,Nt)|0)+Math.imul(gt,ct)|0,_=_+Math.imul(gt,Nt)|0,b=b+Math.imul(Se,Ae)|0,n=(n=n+Math.imul(Se,rt)|0)+Math.imul(X,Ae)|0,_=_+Math.imul(X,rt)|0,b=b+Math.imul(Y,Ke)|0,n=(n=n+Math.imul(Y,mt)|0)+Math.imul(j,Ke)|0,_=_+Math.imul(j,mt)|0,b=b+Math.imul(he,Gt)|0,n=(n=n+Math.imul(he,zt)|0)+Math.imul(de,Gt)|0,_=_+Math.imul(de,zt)|0,b=b+Math.imul(ut,ht)|0,n=(n=n+Math.imul(ut,at)|0)+Math.imul(Ee,ht)|0,_=_+Math.imul(Ee,at)|0;var Vt=(k+(b=b+Math.imul(Ie,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Ie,qt)|0)+Math.imul($,Ut)|0))<<13)|0;k=((_=_+Math.imul($,qt)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,b=Math.imul(Rt,ct),n=(n=Math.imul(Rt,Nt))+Math.imul(jt,ct)|0,_=Math.imul(jt,Nt),b=b+Math.imul(Le,Ae)|0,n=(n=n+Math.imul(Le,rt)|0)+Math.imul(gt,Ae)|0,_=_+Math.imul(gt,rt)|0,b=b+Math.imul(Se,Ke)|0,n=(n=n+Math.imul(Se,mt)|0)+Math.imul(X,Ke)|0,_=_+Math.imul(X,mt)|0,b=b+Math.imul(Y,Gt)|0,n=(n=n+Math.imul(Y,zt)|0)+Math.imul(j,Gt)|0,_=_+Math.imul(j,zt)|0,b=b+Math.imul(he,ht)|0,n=(n=n+Math.imul(he,at)|0)+Math.imul(de,ht)|0,_=_+Math.imul(de,at)|0;var mi=(k+(b=b+Math.imul(ut,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(ut,qt)|0)+Math.imul(Ee,Ut)|0))<<13)|0;k=((_=_+Math.imul(Ee,qt)|0)+(n>>>13)|0)+(mi>>>26)|0,mi&=67108863,b=Math.imul(Rt,Ae),n=(n=Math.imul(Rt,rt))+Math.imul(jt,Ae)|0,_=Math.imul(jt,rt),b=b+Math.imul(Le,Ke)|0,n=(n=n+Math.imul(Le,mt)|0)+Math.imul(gt,Ke)|0,_=_+Math.imul(gt,mt)|0,b=b+Math.imul(Se,Gt)|0,n=(n=n+Math.imul(Se,zt)|0)+Math.imul(X,Gt)|0,_=_+Math.imul(X,zt)|0,b=b+Math.imul(Y,ht)|0,n=(n=n+Math.imul(Y,at)|0)+Math.imul(j,ht)|0,_=_+Math.imul(j,at)|0;var Hi=(k+(b=b+Math.imul(he,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(he,qt)|0)+Math.imul(de,Ut)|0))<<13)|0;k=((_=_+Math.imul(de,qt)|0)+(n>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,b=Math.imul(Rt,Ke),n=(n=Math.imul(Rt,mt))+Math.imul(jt,Ke)|0,_=Math.imul(jt,mt),b=b+Math.imul(Le,Gt)|0,n=(n=n+Math.imul(Le,zt)|0)+Math.imul(gt,Gt)|0,_=_+Math.imul(gt,zt)|0,b=b+Math.imul(Se,ht)|0,n=(n=n+Math.imul(Se,at)|0)+Math.imul(X,ht)|0,_=_+Math.imul(X,at)|0;var Ui=(k+(b=b+Math.imul(Y,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Y,qt)|0)+Math.imul(j,Ut)|0))<<13)|0;k=((_=_+Math.imul(j,qt)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,b=Math.imul(Rt,Gt),n=(n=Math.imul(Rt,zt))+Math.imul(jt,Gt)|0,_=Math.imul(jt,zt),b=b+Math.imul(Le,ht)|0,n=(n=n+Math.imul(Le,at)|0)+Math.imul(gt,ht)|0,_=_+Math.imul(gt,at)|0;var Ji=(k+(b=b+Math.imul(Se,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Se,qt)|0)+Math.imul(X,Ut)|0))<<13)|0;k=((_=_+Math.imul(X,qt)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,b=Math.imul(Rt,ht),n=(n=Math.imul(Rt,at))+Math.imul(jt,ht)|0,_=Math.imul(jt,at);var an=(k+(b=b+Math.imul(Le,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Le,qt)|0)+Math.imul(gt,Ut)|0))<<13)|0;k=((_=_+Math.imul(gt,qt)|0)+(n>>>13)|0)+(an>>>26)|0,an&=67108863;var _n=(k+(b=Math.imul(Rt,Ut))|0)+((8191&(n=(n=Math.imul(Rt,qt))+Math.imul(jt,Ut)|0))<<13)|0;return k=((_=Math.imul(jt,qt))+(n>>>13)|0)+(_n>>>26)|0,_n&=67108863,D[0]=Pi,D[1]=Ii,D[2]=Ei,D[3]=Vi,D[4]=Be,D[5]=kt,D[6]=_e,D[7]=Je,D[8]=_t,D[9]=se,D[10]=Xe,D[11]=bt,D[12]=Vt,D[13]=mi,D[14]=Hi,D[15]=Ui,D[16]=Ji,D[17]=an,D[18]=_n,0!==k&&(D[19]=k,u.length++),u};function K(S,i,r){return(new Q).mulp(S,i,r)}function Q(S,i){this.x=S,this.y=i}Math.imul||(w=N),a.prototype.mulTo=function(i,r){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?w(this,i,r):l<63?N(this,i,r):l<1024?function G(S,i,r){r.negative=i.negative^S.negative,r.length=S.length+i.length;for(var u=0,l=0,y=0;y<r.length-1;y++){var D=l;l=0;for(var k=67108863&u,b=Math.min(y,i.length-1),n=Math.max(0,y-S.length+1);n<=b;n++){var U=(0|S.words[y-n])*(0|i.words[n]),me=67108863&U;k=67108863&(me=me+k|0),l+=(D=(D=D+(U/67108864|0)|0)+(me>>>26)|0)>>>26,D&=67108863}r.words[y]=k,u=D,D=l}return 0!==u?r.words[y]=u:r.length--,r.strip()}(this,i,r):K(this,i,r),u},Q.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,l=0;l<i;l++)r[l]=this.revBin(l,u,i);return r},Q.prototype.revBin=function(i,r,u){if(0===i||i===u-1)return i;for(var l=0,y=0;y<r;y++)l|=(1&i)<<r-y-1,i>>=1;return l},Q.prototype.permute=function(i,r,u,l,y,D){for(var k=0;k<D;k++)l[k]=r[i[k]],y[k]=u[i[k]]},Q.prototype.transform=function(i,r,u,l,y,D){this.permute(D,i,r,u,l,y);for(var k=1;k<y;k<<=1)for(var b=k<<1,n=Math.cos(2*Math.PI/b),_=Math.sin(2*Math.PI/b),W=0;W<y;W+=b)for(var P=n,U=_,me=0;me<k;me++){var nt=u[W+me],Pe=l[W+me],Oe=u[W+me+k],De=l[W+me+k],ue=P*Oe-U*De;De=P*De+U*Oe,u[W+me]=nt+(Oe=ue),l[W+me]=Pe+De,u[W+me+k]=nt-Oe,l[W+me+k]=Pe-De,me!==b&&(ue=n*P-_*U,U=n*U+_*P,P=ue)}},Q.prototype.guessLen13b=function(i,r){var u=1|Math.max(r,i),l=1&u,y=0;for(u=u/2|0;u;u>>>=1)y++;return 1<<y+1+l},Q.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var l=0;l<u/2;l++){var y=i[l];i[l]=i[u-l-1],i[u-l-1]=y,y=r[l],r[l]=-r[u-l-1],r[u-l-1]=-y}},Q.prototype.normalize13b=function(i,r){for(var u=0,l=0;l<r/2;l++){var y=8192*Math.round(i[2*l+1]/r)+Math.round(i[2*l]/r)+u;i[l]=67108863&y,u=y<67108864?0:y/67108864|0}return i},Q.prototype.convert13b=function(i,r,u,l){for(var y=0,D=0;D<r;D++)u[2*D]=8191&(y+=0|i[D]),u[2*D+1]=8191&(y>>>=13),y>>>=13;for(D=2*r;D<l;++D)u[D]=0;f(0===y),f(0==(-8192&y))},Q.prototype.stub=function(i){for(var r=new Array(i),u=0;u<i;u++)r[u]=0;return r},Q.prototype.mulp=function(i,r,u){var l=2*this.guessLen13b(i.length,r.length),y=this.makeRBT(l),D=this.stub(l),k=new Array(l),b=new Array(l),n=new Array(l),_=new Array(l),W=new Array(l),P=new Array(l),U=u.words;U.length=l,this.convert13b(i.words,i.length,k,l),this.convert13b(r.words,r.length,_,l),this.transform(k,D,b,n,l,y),this.transform(_,D,W,P,l,y);for(var me=0;me<l;me++){var nt=b[me]*W[me]-n[me]*P[me];n[me]=b[me]*P[me]+n[me]*W[me],b[me]=nt}return this.conjugate(b,n,l),this.transform(b,n,U,D,l,y),this.conjugate(U,D,l),this.normalize13b(U,l),u.negative=i.negative^r.negative,u.length=i.length+r.length,u.strip()},a.prototype.mul=function(i){var r=new a(null);return r.words=new Array(this.length+i.length),this.mulTo(i,r)},a.prototype.mulf=function(i){var r=new a(null);return r.words=new Array(this.length+i.length),K(this,i,r)},a.prototype.imul=function(i){return this.clone().mulTo(i,this)},a.prototype.imuln=function(i){f("number"==typeof i),f(i<67108864);for(var r=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,y=(67108863&l)+(67108863&r);r>>=26,r+=l/67108864|0,r+=y>>>26,this.words[u]=67108863&y}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function T(S){for(var i=new Array(S.bitLength()),r=0;r<i.length;r++){var l=r%26;i[r]=(S.words[r/26|0]&1<<l)>>>l}return i}(i);if(0===r.length)return new a(1);for(var u=this,l=0;l<r.length&&0===r[l];l++,u=u.sqr());if(++l<r.length)for(var y=u.sqr();l<r.length;l++,y=y.sqr())0!==r[l]&&(u=u.mul(y));return u},a.prototype.iushln=function(i){f("number"==typeof i&&i>=0);var y,r=i%26,u=(i-r)/26,l=67108863>>>26-r<<26-r;if(0!==r){var D=0;for(y=0;y<this.length;y++){var k=this.words[y]&l;this.words[y]=(0|this.words[y])-k<<r|D,D=k>>>26-r}D&&(this.words[y]=D,this.length++)}if(0!==u){for(y=this.length-1;y>=0;y--)this.words[y+u]=this.words[y];for(y=0;y<u;y++)this.words[y]=0;this.length+=u}return this.strip()},a.prototype.ishln=function(i){return f(0===this.negative),this.iushln(i)},a.prototype.iushrn=function(i,r,u){var l;f("number"==typeof i&&i>=0),l=r?(r-r%26)/26:0;var y=i%26,D=Math.min((i-y)/26,this.length),k=67108863^67108863>>>y<<y,b=u;if(l-=D,l=Math.max(0,l),b){for(var n=0;n<D;n++)b.words[n]=this.words[n];b.length=D}if(0!==D)if(this.length>D)for(this.length-=D,n=0;n<this.length;n++)this.words[n]=this.words[n+D];else this.words[0]=0,this.length=1;var _=0;for(n=this.length-1;n>=0&&(0!==_||n>=l);n--){var W=0|this.words[n];this.words[n]=_<<26-y|W>>>y,_=W&k}return b&&0!==_&&(b.words[b.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<<r))},a.prototype.imaskn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},a.prototype.maskn=function(i){return this.clone().imaskn(i)},a.prototype.iaddn=function(i){return f("number"==typeof i),f(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},a.prototype._iaddn=function(i){this.words[0]+=i;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(i){return this.clone().iaddn(i)},a.prototype.subn=function(i){return this.clone().isubn(i)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(i,r,u){var y;this._expand(i.length+u);var D,k=0;for(y=0;y<i.length;y++){D=(0|this.words[y+u])+k;var b=(0|i.words[y])*r;k=((D-=67108863&b)>>26)-(b/67108864|0),this.words[y+u]=67108863&D}for(;y<this.length-u;y++)k=(D=(0|this.words[y+u])+k)>>26,this.words[y+u]=67108863&D;if(0===k)return this.strip();for(f(-1===k),k=0,y=0;y<this.length;y++)k=(D=-(0|this.words[y])+k)>>26,this.words[y]=67108863&D;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,l=this.clone(),y=i,D=0|y.words[y.length-1];0!=(u=26-this._countBits(D))&&(y=y.ushln(u),l.iushln(u),D=0|y.words[y.length-1]);var n,b=l.length-y.length;if("mod"!==r){(n=new a(null)).length=b+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var W=l.clone()._ishlnsubmul(y,1,b);0===W.negative&&(l=W,n&&(n.words[b]=1));for(var P=b-1;P>=0;P--){var U=67108864*(0|l.words[y.length+P])+(0|l.words[y.length+P-1]);for(U=Math.min(U/D|0,67108863),l._ishlnsubmul(y,U,P);0!==l.negative;)U--,l.negative=0,l._ishlnsubmul(y,1,P),l.isZero()||(l.negative^=1);n&&(n.words[P]=U)}return n&&n.strip(),l.strip(),"div"!==r&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,r),"mod"!==r&&(l=D.div.neg()),"div"!==r&&(y=D.mod.neg(),u&&0!==y.negative&&y.iadd(i)),{div:l,mod:y}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),r),"mod"!==r&&(l=D.div.neg()),{div:l,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),r),"div"!==r&&(y=D.mod.neg(),u&&0!==y.negative&&y.isub(i)),{div:D.div,mod:y}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var l,y,D},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,l=i.ushrn(1),y=i.andln(1),D=u.cmp(l);return D<0||1===y&&0===D?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(r*u+(0|this.words[l]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*r;this.words[u]=l/i|0,r=l%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var l=new a(1),y=new a(0),D=new a(0),k=new a(1),b=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++b;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var W=0,P=1;0==(r.words[0]&P)&&W<26;++W,P<<=1);if(W>0)for(r.iushrn(W);W-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(n),y.isub(_)),l.iushrn(1),y.iushrn(1);for(var U=0,me=1;0==(u.words[0]&me)&&U<26;++U,me<<=1);if(U>0)for(u.iushrn(U);U-- >0;)(D.isOdd()||k.isOdd())&&(D.iadd(n),k.isub(_)),D.iushrn(1),k.iushrn(1);r.cmp(u)>=0?(r.isub(u),l.isub(D),y.isub(k)):(u.isub(r),D.isub(l),k.isub(y))}return{a:D,b:k,gcd:u.iushln(b)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var W,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var l=new a(1),y=new a(0),D=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var k=0,b=1;0==(r.words[0]&b)&&k<26;++k,b<<=1);if(k>0)for(r.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(D),l.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)y.isOdd()&&y.iadd(D),y.iushrn(1);r.cmp(u)>=0?(r.isub(u),l.isub(y)):(u.isub(r),y.isub(l))}return(W=0===r.cmpn(1)?l:y).cmpn(0)<0&&W.iadd(i),W},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var l=0;r.isEven()&&u.isEven();l++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var y=r.cmp(u);if(y<0){var D=r;r=u,u=D}else if(0===y||0===u.cmpn(1))break;r.isub(u)}return u.iushln(l)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,l=1<<r;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var y=l,D=u;0!==y&&D<this.length;D++){var k=0|this.words[D];y=(k+=y)>>>26,this.words[D]=k&=67108863}return 0!==y&&(this.words[D]=y,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},a.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var r=this.ucmp(i);return 0!==this.negative?0|-r:r},a.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var r=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],y=0|i.words[u];if(l!==y){l<y?r=-1:l>y&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new ee(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var re={k256:null,p224:null,p192:null,p25519:null};function ie(S,i){this.name=S,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ce(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ae(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ne(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(S){if("string"==typeof S){var i=a._prime(S);this.m=i.p,this.prime=i}else f(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function pe(S){ee.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ie.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:r.ucmp(this.p);return 0===l?(r.words[0]=0,r.length=1):l>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ie.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ie.prototype.imulK=function(i){return i.imul(this.k)},C(ce,ie),ce.prototype.split=function(i,r){for(var u=4194303,l=Math.min(i.length,9),y=0;y<l;y++)r.words[y]=i.words[y];if(r.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var D=i.words[9];for(r.words[r.length++]=D&u,y=10;y<i.length;y++){var k=0|i.words[y];i.words[y-10]=(k&u)<<4|D>>>22,D=k}i.words[y-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ce.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(r+=977*l),r=64*l+(r/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ae,ie),C(ne,ie),C(le,ie),le.prototype.imulK=function(i){for(var r=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+r,y=67108863&l;l>>>=26,i.words[u]=y,r=l}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(re[i])return re[i];var r;if("k256"===i)r=new ce;else if("p224"===i)r=new ae;else if("p192"===i)r=new ne;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new le}return re[i]=r,r},ee.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},ee.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},ee.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ee.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ee.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},ee.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},ee.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},ee.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},ee.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},ee.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},ee.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},ee.prototype.isqr=function(i){return this.imul(i,i.clone())},ee.prototype.sqr=function(i){return this.mul(i,i)},ee.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),y=0;!l.isZero()&&0===l.andln(1);)y++,l.iushrn(1);f(!l.isZero());var D=new a(1).toRed(this),k=D.redNeg(),b=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,b).cmp(k);)n.redIAdd(k);for(var _=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),P=this.pow(i,l),U=y;0!==P.cmp(D);){for(var me=P,nt=0;0!==me.cmp(D);nt++)me=me.redSqr();f(nt<U);var Pe=this.pow(_,new a(1).iushln(U-nt-1));W=W.redMul(Pe),_=Pe.redSqr(),P=P.redMul(_),U=nt}return W},ee.prototype.invm=function(i){var r=i._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},ee.prototype.pow=function(i,r){if(r.isZero())return new a(1).toRed(this);if(0===r.cmpn(1))return i.clone();var l=new Array(16);l[0]=new a(1).toRed(this),l[1]=i;for(var y=2;y<l.length;y++)l[y]=this.mul(l[y-1],i);var D=l[0],k=0,b=0,n=r.bitLength()%26;for(0===n&&(n=26),y=r.length-1;y>=0;y--){for(var _=r.words[y],W=n-1;W>=0;W--){var P=_>>W&1;D!==l[0]&&(D=this.sqr(D)),0!==P||0!==k?(k<<=1,k|=P,(4==++b||0===y&&0===W)&&(D=this.mul(D,l[k]),b=0,k=0)):b=0}n=26}return D},ee.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},ee.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new pe(i)},C(pe,ee),pe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},pe.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},pe.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),D=y;return y.cmp(this.m)>=0?D=y.isub(this.m):y.cmpn(0)<0&&(D=y.iadd(this.m)),D._forceRed(this)},pe.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),D=y;return y.cmp(this.m)>=0?D=y.isub(this.m):y.cmpn(0)<0&&(D=y.iadd(this.m)),D._forceRed(this)},pe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=p.nmd(ke),this)},5343:(ke,J)=>{"use strict";J.byteLength=function d(T){var N=M(T),G=N[1];return 3*(N[0]+G)/4-G},J.toByteArray=function h(T){var N,ce,w=M(T),G=w[0],K=w[1],Q=new e(function R(T,N,w){return 3*(N+w)/4-w}(0,G,K)),re=0,ie=K>0?G-4:G;for(ce=0;ce<ie;ce+=4)N=t[T.charCodeAt(ce)]<<18|t[T.charCodeAt(ce+1)]<<12|t[T.charCodeAt(ce+2)]<<6|t[T.charCodeAt(ce+3)],Q[re++]=N>>16&255,Q[re++]=N>>8&255,Q[re++]=255&N;return 2===K&&(N=t[T.charCodeAt(ce)]<<2|t[T.charCodeAt(ce+1)]>>4,Q[re++]=255&N),1===K&&(N=t[T.charCodeAt(ce)]<<10|t[T.charCodeAt(ce+1)]<<4|t[T.charCodeAt(ce+2)]>>2,Q[re++]=N>>8&255,Q[re++]=255&N),Q},J.fromByteArray=function L(T){for(var N,w=T.length,G=w%3,K=[],Q=16383,re=0,ie=w-G;re<ie;re+=Q)K.push(E(T,re,re+Q>ie?ie:re+Q));return 1===G?K.push(p[(N=T[w-1])>>2]+p[N<<4&63]+"=="):2===G&&K.push(p[(N=(T[w-2]<<8)+T[w-1])>>10]+p[N>>4&63]+p[N<<2&63]+"="),K.join("")};for(var p=[],t=[],e=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C=0,a=f.length;C<a;++C)p[C]=f[C],t[f.charCodeAt(C)]=C;function M(T){var N=T.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=T.indexOf("=");return-1===w&&(w=N),[w,w===N?0:4-w%4]}function I(T){return p[T>>18&63]+p[T>>12&63]+p[T>>6&63]+p[63&T]}function E(T,N,w){for(var K=[],Q=N;Q<w;Q+=3)K.push(I((T[Q]<<16&16711680)+(T[Q+1]<<8&65280)+(255&T[Q+2])));return K.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},8538:function(ke,J,p){!function(t,e){"use strict";function f(u,l){if(!u)throw new Error(l||"Assertion failed")}function C(u,l){u.super_=l;var y=function(){};y.prototype=l.prototype,u.prototype=new y,u.prototype.constructor=u}function a(u,l,y){if(a.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,null!==u&&(("le"===l||"be"===l)&&(y=l,l=10),this._init(u||0,l||10,y||"be"))}var M;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{M=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:p(6601).Buffer}catch{}function d(u,l){var y=u.charCodeAt(l);return y>=48&&y<=57?y-48:y>=65&&y<=70?y-55:y>=97&&y<=102?y-87:void f(!1,"Invalid character in "+u)}function R(u,l,y){var D=d(u,y);return y-1>=l&&(D|=d(u,y-1)<<4),D}function h(u,l,y,D){for(var k=0,b=0,n=Math.min(u.length,y),_=l;_<n;_++){var W=u.charCodeAt(_)-48;k*=D,b=W>=49?W-49+10:W>=17?W-17+10:W,f(W>=0&&b<D,"Invalid character"),k+=b}return k}function I(u,l){u.words=l.words,u.length=l.length,u.negative=l.negative,u.red=l.red}if(a.isBN=function(l){return l instanceof a||null!==l&&"object"==typeof l&&l.constructor.wordSize===a.wordSize&&Array.isArray(l.words)},a.max=function(l,y){return l.cmp(y)>0?l:y},a.min=function(l,y){return l.cmp(y)<0?l:y},a.prototype._init=function(l,y,D){if("number"==typeof l)return this._initNumber(l,y,D);if("object"==typeof l)return this._initArray(l,y,D);"hex"===y&&(y=16),f(y===(0|y)&&y>=2&&y<=36);var k=0;"-"===(l=l.toString().replace(/\s+/g,""))[0]&&(k++,this.negative=1),k<l.length&&(16===y?this._parseHex(l,k,D):(this._parseBase(l,y,k),"le"===D&&this._initArray(this.toArray(),y,D)))},a.prototype._initNumber=function(l,y,D){l<0&&(this.negative=1,l=-l),l<67108864?(this.words=[67108863&l],this.length=1):l<4503599627370496?(this.words=[67108863&l,l/67108864&67108863],this.length=2):(f(l<9007199254740992),this.words=[67108863&l,l/67108864&67108863,1],this.length=3),"le"===D&&this._initArray(this.toArray(),y,D)},a.prototype._initArray=function(l,y,D){if(f("number"==typeof l.length),l.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(l.length/3),this.words=new Array(this.length);for(var k=0;k<this.length;k++)this.words[k]=0;var b,n,_=0;if("be"===D)for(k=l.length-1,b=0;k>=0;k-=3)this.words[b]|=(n=l[k]|l[k-1]<<8|l[k-2]<<16)<<_&67108863,this.words[b+1]=n>>>26-_&67108863,(_+=24)>=26&&(_-=26,b++);else if("le"===D)for(k=0,b=0;k<l.length;k+=3)this.words[b]|=(n=l[k]|l[k+1]<<8|l[k+2]<<16)<<_&67108863,this.words[b+1]=n>>>26-_&67108863,(_+=24)>=26&&(_-=26,b++);return this._strip()},a.prototype._parseHex=function(l,y,D){this.length=Math.ceil((l.length-y)/6),this.words=new Array(this.length);for(var k=0;k<this.length;k++)this.words[k]=0;var _,b=0,n=0;if("be"===D)for(k=l.length-1;k>=y;k-=2)_=R(l,y,k)<<b,this.words[n]|=67108863&_,b>=18?(b-=18,this.words[n+=1]|=_>>>26):b+=8;else for(k=(l.length-y)%2==0?y+1:y;k<l.length;k+=2)_=R(l,y,k)<<b,this.words[n]|=67108863&_,b>=18?(b-=18,this.words[n+=1]|=_>>>26):b+=8;this._strip()},a.prototype._parseBase=function(l,y,D){this.words=[0],this.length=1;for(var k=0,b=1;b<=67108863;b*=y)k++;k--,b=b/y|0;for(var n=l.length-D,_=n%k,W=Math.min(n,n-_)+D,P=0,U=D;U<W;U+=k)P=h(l,U,U+k,y),this.imuln(b),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P);if(0!==_){var me=1;for(P=h(l,U,l.length,y),U=0;U<_;U++)me*=y;this.imuln(me),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P)}this._strip()},a.prototype.copy=function(l){l.words=new Array(this.length);for(var y=0;y<this.length;y++)l.words[y]=this.words[y];l.length=this.length,l.negative=this.negative,l.red=this.red},a.prototype._move=function(l){I(l,this)},a.prototype.clone=function(){var l=new a(null);return this.copy(l),l},a.prototype._expand=function(l){for(;this.length<l;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=E}catch{a.prototype.inspect=E}else a.prototype.inspect=E;function E(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var L=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],T=[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],N=[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(u,l,y){y.negative=l.negative^u.negative;var D=u.length+l.length|0;y.length=D,D=D-1|0;var k=0|u.words[0],b=0|l.words[0],n=k*b,W=n/67108864|0;y.words[0]=67108863&n;for(var P=1;P<D;P++){for(var U=W>>>26,me=67108863&W,nt=Math.min(P,l.length-1),Pe=Math.max(0,P-u.length+1);Pe<=nt;Pe++)U+=(n=(k=0|u.words[P-Pe|0])*(b=0|l.words[Pe])+me)/67108864|0,me=67108863&n;y.words[P]=0|me,W=0|U}return 0!==W?y.words[P]=0|W:y.length--,y._strip()}a.prototype.toString=function(l,y){var D;if(y=0|y||1,16===(l=l||10)||"hex"===l){D="";for(var k=0,b=0,n=0;n<this.length;n++){var _=this.words[n],W=(16777215&(_<<k|b)).toString(16);b=_>>>24-k&16777215,(k+=2)>=26&&(k-=26,n--),D=0!==b||n!==this.length-1?L[6-W.length]+W+D:W+D}for(0!==b&&(D=b.toString(16)+D);D.length%y!=0;)D="0"+D;return 0!==this.negative&&(D="-"+D),D}if(l===(0|l)&&l>=2&&l<=36){var P=T[l],U=N[l];D="";var me=this.clone();for(me.negative=0;!me.isZero();){var nt=me.modrn(U).toString(l);D=(me=me.idivn(U)).isZero()?nt+D:L[P-nt.length]+nt+D}for(this.isZero()&&(D="0"+D);D.length%y!=0;)D="0"+D;return 0!==this.negative&&(D="-"+D),D}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var l=this.words[0];return 2===this.length?l+=67108864*this.words[1]:3===this.length&&1===this.words[2]?l+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-l:l},a.prototype.toJSON=function(){return this.toString(16,2)},M&&(a.prototype.toBuffer=function(l,y){return this.toArrayLike(M,l,y)}),a.prototype.toArray=function(l,y){return this.toArrayLike(Array,l,y)},a.prototype.toArrayLike=function(l,y,D){this._strip();var k=this.byteLength(),b=D||Math.max(1,k);f(k<=b,"byte array longer than desired length"),f(b>0,"Requested array length <= 0");var n=function(l,y){return l.allocUnsafe?l.allocUnsafe(y):new l(y)}(l,b);return this["_toArrayLike"+("le"===y?"LE":"BE")](n,k),n},a.prototype._toArrayLikeLE=function(l,y){for(var D=0,k=0,b=0,n=0;b<this.length;b++){var _=this.words[b]<<n|k;l[D++]=255&_,D<l.length&&(l[D++]=_>>8&255),D<l.length&&(l[D++]=_>>16&255),6===n?(D<l.length&&(l[D++]=_>>24&255),k=0,n=0):(k=_>>>24,n+=2)}if(D<l.length)for(l[D++]=k;D<l.length;)l[D++]=0},a.prototype._toArrayLikeBE=function(l,y){for(var D=l.length-1,k=0,b=0,n=0;b<this.length;b++){var _=this.words[b]<<n|k;l[D--]=255&_,D>=0&&(l[D--]=_>>8&255),D>=0&&(l[D--]=_>>16&255),6===n?(D>=0&&(l[D--]=_>>24&255),k=0,n=0):(k=_>>>24,n+=2)}if(D>=0)for(l[D--]=k;D>=0;)l[D--]=0},a.prototype._countBits=Math.clz32?function(l){return 32-Math.clz32(l)}:function(l){var y=l,D=0;return y>=4096&&(D+=13,y>>>=13),y>=64&&(D+=7,y>>>=7),y>=8&&(D+=4,y>>>=4),y>=2&&(D+=2,y>>>=2),D+y},a.prototype._zeroBits=function(l){if(0===l)return 26;var y=l,D=0;return 0==(8191&y)&&(D+=13,y>>>=13),0==(127&y)&&(D+=7,y>>>=7),0==(15&y)&&(D+=4,y>>>=4),0==(3&y)&&(D+=2,y>>>=2),0==(1&y)&&D++,D},a.prototype.bitLength=function(){var y=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+y},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,y=0;y<this.length;y++){var D=this._zeroBits(this.words[y]);if(l+=D,26!==D)break}return l},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(l){return 0!==this.negative?this.abs().inotn(l).iaddn(1):this.clone()},a.prototype.fromTwos=function(l){return this.testn(l-1)?this.notn(l).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(l){for(;this.length<l.length;)this.words[this.length++]=0;for(var y=0;y<l.length;y++)this.words[y]=this.words[y]|l.words[y];return this._strip()},a.prototype.ior=function(l){return f(0==(this.negative|l.negative)),this.iuor(l)},a.prototype.or=function(l){return this.length>l.length?this.clone().ior(l):l.clone().ior(this)},a.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)},a.prototype.iuand=function(l){var y;y=this.length>l.length?l:this;for(var D=0;D<y.length;D++)this.words[D]=this.words[D]&l.words[D];return this.length=y.length,this._strip()},a.prototype.iand=function(l){return f(0==(this.negative|l.negative)),this.iuand(l)},a.prototype.and=function(l){return this.length>l.length?this.clone().iand(l):l.clone().iand(this)},a.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)},a.prototype.iuxor=function(l){var y,D;this.length>l.length?(y=this,D=l):(y=l,D=this);for(var k=0;k<D.length;k++)this.words[k]=y.words[k]^D.words[k];if(this!==y)for(;k<y.length;k++)this.words[k]=y.words[k];return this.length=y.length,this._strip()},a.prototype.ixor=function(l){return f(0==(this.negative|l.negative)),this.iuxor(l)},a.prototype.xor=function(l){return this.length>l.length?this.clone().ixor(l):l.clone().ixor(this)},a.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)},a.prototype.inotn=function(l){f("number"==typeof l&&l>=0);var y=0|Math.ceil(l/26),D=l%26;this._expand(y),D>0&&y--;for(var k=0;k<y;k++)this.words[k]=67108863&~this.words[k];return D>0&&(this.words[k]=~this.words[k]&67108863>>26-D),this._strip()},a.prototype.notn=function(l){return this.clone().inotn(l)},a.prototype.setn=function(l,y){f("number"==typeof l&&l>=0);var D=l/26|0,k=l%26;return this._expand(D+1),this.words[D]=y?this.words[D]|1<<k:this.words[D]&~(1<<k),this._strip()},a.prototype.iadd=function(l){var y,D,k;if(0!==this.negative&&0===l.negative)return this.negative=0,y=this.isub(l),this.negative^=1,this._normSign();if(0===this.negative&&0!==l.negative)return l.negative=0,y=this.isub(l),l.negative=1,y._normSign();this.length>l.length?(D=this,k=l):(D=l,k=this);for(var b=0,n=0;n<k.length;n++)this.words[n]=67108863&(y=(0|D.words[n])+(0|k.words[n])+b),b=y>>>26;for(;0!==b&&n<D.length;n++)this.words[n]=67108863&(y=(0|D.words[n])+b),b=y>>>26;if(this.length=D.length,0!==b)this.words[this.length]=b,this.length++;else if(D!==this)for(;n<D.length;n++)this.words[n]=D.words[n];return this},a.prototype.add=function(l){var y;return 0!==l.negative&&0===this.negative?(l.negative=0,y=this.sub(l),l.negative^=1,y):0===l.negative&&0!==this.negative?(this.negative=0,y=l.sub(this),this.negative=1,y):this.length>l.length?this.clone().iadd(l):l.clone().iadd(this)},a.prototype.isub=function(l){if(0!==l.negative){l.negative=0;var y=this.iadd(l);return l.negative=1,y._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();var k,b,D=this.cmp(l);if(0===D)return this.negative=0,this.length=1,this.words[0]=0,this;D>0?(k=this,b=l):(k=l,b=this);for(var n=0,_=0;_<b.length;_++)n=(y=(0|k.words[_])-(0|b.words[_])+n)>>26,this.words[_]=67108863&y;for(;0!==n&&_<k.length;_++)n=(y=(0|k.words[_])+n)>>26,this.words[_]=67108863&y;if(0===n&&_<k.length&&k!==this)for(;_<k.length;_++)this.words[_]=k.words[_];return this.length=Math.max(this.length,_),k!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(l){return this.clone().isub(l)};var Q=function(l,y,D){var W,P,U,k=l.words,b=y.words,n=D.words,_=0,me=0|k[0],nt=8191&me,Pe=me>>>13,Oe=0|k[1],De=8191&Oe,ue=Oe>>>13,ve=0|k[2],Ie=8191&ve,$=ve>>>13,Ge=0|k[3],ut=8191&Ge,Ee=Ge>>>13,ye=0|k[4],he=8191&ye,de=ye>>>13,we=0|k[5],Y=8191&we,j=we>>>13,Ce=0|k[6],Se=8191&Ce,X=Ce>>>13,Ye=0|k[7],Le=8191&Ye,gt=Ye>>>13,Wt=0|k[8],Rt=8191&Wt,jt=Wt>>>13,hi=0|k[9],yt=8191&hi,Pt=hi>>>13,pt=0|b[0],vt=8191&pt,Ct=pt>>>13,At=0|b[1],dt=8191&At,ze=At>>>13,Ve=0|b[2],Fe=8191&Ve,be=Ve>>>13,xt=0|b[3],ct=8191&xt,Nt=xt>>>13,et=0|b[4],Ae=8191&et,rt=et>>>13,Qe=0|b[5],Ke=8191&Qe,mt=Qe>>>13,$t=0|b[6],Gt=8191&$t,zt=$t>>>13,Et=0|b[7],ht=8191&Et,at=Et>>>13,ei=0|b[8],Ut=8191&ei,qt=ei>>>13,Pi=0|b[9],Ii=8191&Pi,Ei=Pi>>>13;D.negative=l.negative^y.negative,D.length=19;var Vi=(_+(W=Math.imul(nt,vt))|0)+((8191&(P=(P=Math.imul(nt,Ct))+Math.imul(Pe,vt)|0))<<13)|0;_=((U=Math.imul(Pe,Ct))+(P>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,W=Math.imul(De,vt),P=(P=Math.imul(De,Ct))+Math.imul(ue,vt)|0,U=Math.imul(ue,Ct);var Be=(_+(W=W+Math.imul(nt,dt)|0)|0)+((8191&(P=(P=P+Math.imul(nt,ze)|0)+Math.imul(Pe,dt)|0))<<13)|0;_=((U=U+Math.imul(Pe,ze)|0)+(P>>>13)|0)+(Be>>>26)|0,Be&=67108863,W=Math.imul(Ie,vt),P=(P=Math.imul(Ie,Ct))+Math.imul($,vt)|0,U=Math.imul($,Ct),W=W+Math.imul(De,dt)|0,P=(P=P+Math.imul(De,ze)|0)+Math.imul(ue,dt)|0,U=U+Math.imul(ue,ze)|0;var kt=(_+(W=W+Math.imul(nt,Fe)|0)|0)+((8191&(P=(P=P+Math.imul(nt,be)|0)+Math.imul(Pe,Fe)|0))<<13)|0;_=((U=U+Math.imul(Pe,be)|0)+(P>>>13)|0)+(kt>>>26)|0,kt&=67108863,W=Math.imul(ut,vt),P=(P=Math.imul(ut,Ct))+Math.imul(Ee,vt)|0,U=Math.imul(Ee,Ct),W=W+Math.imul(Ie,dt)|0,P=(P=P+Math.imul(Ie,ze)|0)+Math.imul($,dt)|0,U=U+Math.imul($,ze)|0,W=W+Math.imul(De,Fe)|0,P=(P=P+Math.imul(De,be)|0)+Math.imul(ue,Fe)|0,U=U+Math.imul(ue,be)|0;var _e=(_+(W=W+Math.imul(nt,ct)|0)|0)+((8191&(P=(P=P+Math.imul(nt,Nt)|0)+Math.imul(Pe,ct)|0))<<13)|0;_=((U=U+Math.imul(Pe,Nt)|0)+(P>>>13)|0)+(_e>>>26)|0,_e&=67108863,W=Math.imul(he,vt),P=(P=Math.imul(he,Ct))+Math.imul(de,vt)|0,U=Math.imul(de,Ct),W=W+Math.imul(ut,dt)|0,P=(P=P+Math.imul(ut,ze)|0)+Math.imul(Ee,dt)|0,U=U+Math.imul(Ee,ze)|0,W=W+Math.imul(Ie,Fe)|0,P=(P=P+Math.imul(Ie,be)|0)+Math.imul($,Fe)|0,U=U+Math.imul($,be)|0,W=W+Math.imul(De,ct)|0,P=(P=P+Math.imul(De,Nt)|0)+Math.imul(ue,ct)|0,U=U+Math.imul(ue,Nt)|0;var Je=(_+(W=W+Math.imul(nt,Ae)|0)|0)+((8191&(P=(P=P+Math.imul(nt,rt)|0)+Math.imul(Pe,Ae)|0))<<13)|0;_=((U=U+Math.imul(Pe,rt)|0)+(P>>>13)|0)+(Je>>>26)|0,Je&=67108863,W=Math.imul(Y,vt),P=(P=Math.imul(Y,Ct))+Math.imul(j,vt)|0,U=Math.imul(j,Ct),W=W+Math.imul(he,dt)|0,P=(P=P+Math.imul(he,ze)|0)+Math.imul(de,dt)|0,U=U+Math.imul(de,ze)|0,W=W+Math.imul(ut,Fe)|0,P=(P=P+Math.imul(ut,be)|0)+Math.imul(Ee,Fe)|0,U=U+Math.imul(Ee,be)|0,W=W+Math.imul(Ie,ct)|0,P=(P=P+Math.imul(Ie,Nt)|0)+Math.imul($,ct)|0,U=U+Math.imul($,Nt)|0,W=W+Math.imul(De,Ae)|0,P=(P=P+Math.imul(De,rt)|0)+Math.imul(ue,Ae)|0,U=U+Math.imul(ue,rt)|0;var _t=(_+(W=W+Math.imul(nt,Ke)|0)|0)+((8191&(P=(P=P+Math.imul(nt,mt)|0)+Math.imul(Pe,Ke)|0))<<13)|0;_=((U=U+Math.imul(Pe,mt)|0)+(P>>>13)|0)+(_t>>>26)|0,_t&=67108863,W=Math.imul(Se,vt),P=(P=Math.imul(Se,Ct))+Math.imul(X,vt)|0,U=Math.imul(X,Ct),W=W+Math.imul(Y,dt)|0,P=(P=P+Math.imul(Y,ze)|0)+Math.imul(j,dt)|0,U=U+Math.imul(j,ze)|0,W=W+Math.imul(he,Fe)|0,P=(P=P+Math.imul(he,be)|0)+Math.imul(de,Fe)|0,U=U+Math.imul(de,be)|0,W=W+Math.imul(ut,ct)|0,P=(P=P+Math.imul(ut,Nt)|0)+Math.imul(Ee,ct)|0,U=U+Math.imul(Ee,Nt)|0,W=W+Math.imul(Ie,Ae)|0,P=(P=P+Math.imul(Ie,rt)|0)+Math.imul($,Ae)|0,U=U+Math.imul($,rt)|0,W=W+Math.imul(De,Ke)|0,P=(P=P+Math.imul(De,mt)|0)+Math.imul(ue,Ke)|0,U=U+Math.imul(ue,mt)|0;var se=(_+(W=W+Math.imul(nt,Gt)|0)|0)+((8191&(P=(P=P+Math.imul(nt,zt)|0)+Math.imul(Pe,Gt)|0))<<13)|0;_=((U=U+Math.imul(Pe,zt)|0)+(P>>>13)|0)+(se>>>26)|0,se&=67108863,W=Math.imul(Le,vt),P=(P=Math.imul(Le,Ct))+Math.imul(gt,vt)|0,U=Math.imul(gt,Ct),W=W+Math.imul(Se,dt)|0,P=(P=P+Math.imul(Se,ze)|0)+Math.imul(X,dt)|0,U=U+Math.imul(X,ze)|0,W=W+Math.imul(Y,Fe)|0,P=(P=P+Math.imul(Y,be)|0)+Math.imul(j,Fe)|0,U=U+Math.imul(j,be)|0,W=W+Math.imul(he,ct)|0,P=(P=P+Math.imul(he,Nt)|0)+Math.imul(de,ct)|0,U=U+Math.imul(de,Nt)|0,W=W+Math.imul(ut,Ae)|0,P=(P=P+Math.imul(ut,rt)|0)+Math.imul(Ee,Ae)|0,U=U+Math.imul(Ee,rt)|0,W=W+Math.imul(Ie,Ke)|0,P=(P=P+Math.imul(Ie,mt)|0)+Math.imul($,Ke)|0,U=U+Math.imul($,mt)|0,W=W+Math.imul(De,Gt)|0,P=(P=P+Math.imul(De,zt)|0)+Math.imul(ue,Gt)|0,U=U+Math.imul(ue,zt)|0;var Xe=(_+(W=W+Math.imul(nt,ht)|0)|0)+((8191&(P=(P=P+Math.imul(nt,at)|0)+Math.imul(Pe,ht)|0))<<13)|0;_=((U=U+Math.imul(Pe,at)|0)+(P>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,W=Math.imul(Rt,vt),P=(P=Math.imul(Rt,Ct))+Math.imul(jt,vt)|0,U=Math.imul(jt,Ct),W=W+Math.imul(Le,dt)|0,P=(P=P+Math.imul(Le,ze)|0)+Math.imul(gt,dt)|0,U=U+Math.imul(gt,ze)|0,W=W+Math.imul(Se,Fe)|0,P=(P=P+Math.imul(Se,be)|0)+Math.imul(X,Fe)|0,U=U+Math.imul(X,be)|0,W=W+Math.imul(Y,ct)|0,P=(P=P+Math.imul(Y,Nt)|0)+Math.imul(j,ct)|0,U=U+Math.imul(j,Nt)|0,W=W+Math.imul(he,Ae)|0,P=(P=P+Math.imul(he,rt)|0)+Math.imul(de,Ae)|0,U=U+Math.imul(de,rt)|0,W=W+Math.imul(ut,Ke)|0,P=(P=P+Math.imul(ut,mt)|0)+Math.imul(Ee,Ke)|0,U=U+Math.imul(Ee,mt)|0,W=W+Math.imul(Ie,Gt)|0,P=(P=P+Math.imul(Ie,zt)|0)+Math.imul($,Gt)|0,U=U+Math.imul($,zt)|0,W=W+Math.imul(De,ht)|0,P=(P=P+Math.imul(De,at)|0)+Math.imul(ue,ht)|0,U=U+Math.imul(ue,at)|0;var bt=(_+(W=W+Math.imul(nt,Ut)|0)|0)+((8191&(P=(P=P+Math.imul(nt,qt)|0)+Math.imul(Pe,Ut)|0))<<13)|0;_=((U=U+Math.imul(Pe,qt)|0)+(P>>>13)|0)+(bt>>>26)|0,bt&=67108863,W=Math.imul(yt,vt),P=(P=Math.imul(yt,Ct))+Math.imul(Pt,vt)|0,U=Math.imul(Pt,Ct),W=W+Math.imul(Rt,dt)|0,P=(P=P+Math.imul(Rt,ze)|0)+Math.imul(jt,dt)|0,U=U+Math.imul(jt,ze)|0,W=W+Math.imul(Le,Fe)|0,P=(P=P+Math.imul(Le,be)|0)+Math.imul(gt,Fe)|0,U=U+Math.imul(gt,be)|0,W=W+Math.imul(Se,ct)|0,P=(P=P+Math.imul(Se,Nt)|0)+Math.imul(X,ct)|0,U=U+Math.imul(X,Nt)|0,W=W+Math.imul(Y,Ae)|0,P=(P=P+Math.imul(Y,rt)|0)+Math.imul(j,Ae)|0,U=U+Math.imul(j,rt)|0,W=W+Math.imul(he,Ke)|0,P=(P=P+Math.imul(he,mt)|0)+Math.imul(de,Ke)|0,U=U+Math.imul(de,mt)|0,W=W+Math.imul(ut,Gt)|0,P=(P=P+Math.imul(ut,zt)|0)+Math.imul(Ee,Gt)|0,U=U+Math.imul(Ee,zt)|0,W=W+Math.imul(Ie,ht)|0,P=(P=P+Math.imul(Ie,at)|0)+Math.imul($,ht)|0,U=U+Math.imul($,at)|0,W=W+Math.imul(De,Ut)|0,P=(P=P+Math.imul(De,qt)|0)+Math.imul(ue,Ut)|0,U=U+Math.imul(ue,qt)|0;var Vt=(_+(W=W+Math.imul(nt,Ii)|0)|0)+((8191&(P=(P=P+Math.imul(nt,Ei)|0)+Math.imul(Pe,Ii)|0))<<13)|0;_=((U=U+Math.imul(Pe,Ei)|0)+(P>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,W=Math.imul(yt,dt),P=(P=Math.imul(yt,ze))+Math.imul(Pt,dt)|0,U=Math.imul(Pt,ze),W=W+Math.imul(Rt,Fe)|0,P=(P=P+Math.imul(Rt,be)|0)+Math.imul(jt,Fe)|0,U=U+Math.imul(jt,be)|0,W=W+Math.imul(Le,ct)|0,P=(P=P+Math.imul(Le,Nt)|0)+Math.imul(gt,ct)|0,U=U+Math.imul(gt,Nt)|0,W=W+Math.imul(Se,Ae)|0,P=(P=P+Math.imul(Se,rt)|0)+Math.imul(X,Ae)|0,U=U+Math.imul(X,rt)|0,W=W+Math.imul(Y,Ke)|0,P=(P=P+Math.imul(Y,mt)|0)+Math.imul(j,Ke)|0,U=U+Math.imul(j,mt)|0,W=W+Math.imul(he,Gt)|0,P=(P=P+Math.imul(he,zt)|0)+Math.imul(de,Gt)|0,U=U+Math.imul(de,zt)|0,W=W+Math.imul(ut,ht)|0,P=(P=P+Math.imul(ut,at)|0)+Math.imul(Ee,ht)|0,U=U+Math.imul(Ee,at)|0,W=W+Math.imul(Ie,Ut)|0,P=(P=P+Math.imul(Ie,qt)|0)+Math.imul($,Ut)|0,U=U+Math.imul($,qt)|0;var mi=(_+(W=W+Math.imul(De,Ii)|0)|0)+((8191&(P=(P=P+Math.imul(De,Ei)|0)+Math.imul(ue,Ii)|0))<<13)|0;_=((U=U+Math.imul(ue,Ei)|0)+(P>>>13)|0)+(mi>>>26)|0,mi&=67108863,W=Math.imul(yt,Fe),P=(P=Math.imul(yt,be))+Math.imul(Pt,Fe)|0,U=Math.imul(Pt,be),W=W+Math.imul(Rt,ct)|0,P=(P=P+Math.imul(Rt,Nt)|0)+Math.imul(jt,ct)|0,U=U+Math.imul(jt,Nt)|0,W=W+Math.imul(Le,Ae)|0,P=(P=P+Math.imul(Le,rt)|0)+Math.imul(gt,Ae)|0,U=U+Math.imul(gt,rt)|0,W=W+Math.imul(Se,Ke)|0,P=(P=P+Math.imul(Se,mt)|0)+Math.imul(X,Ke)|0,U=U+Math.imul(X,mt)|0,W=W+Math.imul(Y,Gt)|0,P=(P=P+Math.imul(Y,zt)|0)+Math.imul(j,Gt)|0,U=U+Math.imul(j,zt)|0,W=W+Math.imul(he,ht)|0,P=(P=P+Math.imul(he,at)|0)+Math.imul(de,ht)|0,U=U+Math.imul(de,at)|0,W=W+Math.imul(ut,Ut)|0,P=(P=P+Math.imul(ut,qt)|0)+Math.imul(Ee,Ut)|0,U=U+Math.imul(Ee,qt)|0;var Hi=(_+(W=W+Math.imul(Ie,Ii)|0)|0)+((8191&(P=(P=P+Math.imul(Ie,Ei)|0)+Math.imul($,Ii)|0))<<13)|0;_=((U=U+Math.imul($,Ei)|0)+(P>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,W=Math.imul(yt,ct),P=(P=Math.imul(yt,Nt))+Math.imul(Pt,ct)|0,U=Math.imul(Pt,Nt),W=W+Math.imul(Rt,Ae)|0,P=(P=P+Math.imul(Rt,rt)|0)+Math.imul(jt,Ae)|0,U=U+Math.imul(jt,rt)|0,W=W+Math.imul(Le,Ke)|0,P=(P=P+Math.imul(Le,mt)|0)+Math.imul(gt,Ke)|0,U=U+Math.imul(gt,mt)|0,W=W+Math.imul(Se,Gt)|0,P=(P=P+Math.imul(Se,zt)|0)+Math.imul(X,Gt)|0,U=U+Math.imul(X,zt)|0,W=W+Math.imul(Y,ht)|0,P=(P=P+Math.imul(Y,at)|0)+Math.imul(j,ht)|0,U=U+Math.imul(j,at)|0,W=W+Math.imul(he,Ut)|0,P=(P=P+Math.imul(he,qt)|0)+Math.imul(de,Ut)|0,U=U+Math.imul(de,qt)|0;var Ui=(_+(W=W+Math.imul(ut,Ii)|0)|0)+((8191&(P=(P=P+Math.imul(ut,Ei)|0)+Math.imul(Ee,Ii)|0))<<13)|0;_=((U=U+Math.imul(Ee,Ei)|0)+(P>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,W=Math.imul(yt,Ae),P=(P=Math.imul(yt,rt))+Math.imul(Pt,Ae)|0,U=Math.imul(Pt,rt),W=W+Math.imul(Rt,Ke)|0,P=(P=P+Math.imul(Rt,mt)|0)+Math.imul(jt,Ke)|0,U=U+Math.imul(jt,mt)|0,W=W+Math.imul(Le,Gt)|0,P=(P=P+Math.imul(Le,zt)|0)+Math.imul(gt,Gt)|0,U=U+Math.imul(gt,zt)|0,W=W+Math.imul(Se,ht)|0,P=(P=P+Math.imul(Se,at)|0)+Math.imul(X,ht)|0,U=U+Math.imul(X,at)|0,W=W+Math.imul(Y,Ut)|0,P=(P=P+Math.imul(Y,qt)|0)+Math.imul(j,Ut)|0,U=U+Math.imul(j,qt)|0;var Ji=(_+(W=W+Math.imul(he,Ii)|0)|0)+((8191&(P=(P=P+Math.imul(he,Ei)|0)+Math.imul(de,Ii)|0))<<13)|0;_=((U=U+Math.imul(de,Ei)|0)+(P>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,W=Math.imul(yt,Ke),P=(P=Math.imul(yt,mt))+Math.imul(Pt,Ke)|0,U=Math.imul(Pt,mt),W=W+Math.imul(Rt,Gt)|0,P=(P=P+Math.imul(Rt,zt)|0)+Math.imul(jt,Gt)|0,U=U+Math.imul(jt,zt)|0,W=W+Math.imul(Le,ht)|0,P=(P=P+Math.imul(Le,at)|0)+Math.imul(gt,ht)|0,U=U+Math.imul(gt,at)|0,W=W+Math.imul(Se,Ut)|0,P=(P=P+Math.imul(Se,qt)|0)+Math.imul(X,Ut)|0,U=U+Math.imul(X,qt)|0;var an=(_+(W=W+Math.imul(Y,Ii)|0)|0)+((8191&(P=(P=P+Math.imul(Y,Ei)|0)+Math.imul(j,Ii)|0))<<13)|0;_=((U=U+Math.imul(j,Ei)|0)+(P>>>13)|0)+(an>>>26)|0,an&=67108863,W=Math.imul(yt,Gt),P=(P=Math.imul(yt,zt))+Math.imul(Pt,Gt)|0,U=Math.imul(Pt,zt),W=W+Math.imul(Rt,ht)|0,P=(P=P+Math.imul(Rt,at)|0)+Math.imul(jt,ht)|0,U=U+Math.imul(jt,at)|0,W=W+Math.imul(Le,Ut)|0,P=(P=P+Math.imul(Le,qt)|0)+Math.imul(gt,Ut)|0,U=U+Math.imul(gt,qt)|0;var _n=(_+(W=W+Math.imul(Se,Ii)|0)|0)+((8191&(P=(P=P+Math.imul(Se,Ei)|0)+Math.imul(X,Ii)|0))<<13)|0;_=((U=U+Math.imul(X,Ei)|0)+(P>>>13)|0)+(_n>>>26)|0,_n&=67108863,W=Math.imul(yt,ht),P=(P=Math.imul(yt,at))+Math.imul(Pt,ht)|0,U=Math.imul(Pt,at),W=W+Math.imul(Rt,Ut)|0,P=(P=P+Math.imul(Rt,qt)|0)+Math.imul(jt,Ut)|0,U=U+Math.imul(jt,qt)|0;var si=(_+(W=W+Math.imul(Le,Ii)|0)|0)+((8191&(P=(P=P+Math.imul(Le,Ei)|0)+Math.imul(gt,Ii)|0))<<13)|0;_=((U=U+Math.imul(gt,Ei)|0)+(P>>>13)|0)+(si>>>26)|0,si&=67108863,W=Math.imul(yt,Ut),P=(P=Math.imul(yt,qt))+Math.imul(Pt,Ut)|0,U=Math.imul(Pt,qt);var Ti=(_+(W=W+Math.imul(Rt,Ii)|0)|0)+((8191&(P=(P=P+Math.imul(Rt,Ei)|0)+Math.imul(jt,Ii)|0))<<13)|0;_=((U=U+Math.imul(jt,Ei)|0)+(P>>>13)|0)+(Ti>>>26)|0,Ti&=67108863;var ot=(_+(W=Math.imul(yt,Ii))|0)+((8191&(P=(P=Math.imul(yt,Ei))+Math.imul(Pt,Ii)|0))<<13)|0;return _=((U=Math.imul(Pt,Ei))+(P>>>13)|0)+(ot>>>26)|0,ot&=67108863,n[0]=Vi,n[1]=Be,n[2]=kt,n[3]=_e,n[4]=Je,n[5]=_t,n[6]=se,n[7]=Xe,n[8]=bt,n[9]=Vt,n[10]=mi,n[11]=Hi,n[12]=Ui,n[13]=Ji,n[14]=an,n[15]=_n,n[16]=si,n[17]=Ti,n[18]=ot,0!==_&&(n[19]=_,D.length++),D};function re(u,l,y){y.negative=l.negative^u.negative,y.length=u.length+l.length;for(var D=0,k=0,b=0;b<y.length-1;b++){var n=k;k=0;for(var _=67108863&D,W=Math.min(b,l.length-1),P=Math.max(0,b-u.length+1);P<=W;P++){var Pe=(0|u.words[b-P])*(0|l.words[P]),Oe=67108863&Pe;_=67108863&(Oe=Oe+_|0),k+=(n=(n=n+(Pe/67108864|0)|0)+(Oe>>>26)|0)>>>26,n&=67108863}y.words[b]=_,D=n,n=k}return 0!==D?y.words[b]=D:y.length--,y._strip()}function ie(u,l,y){return re(u,l,y)}function ce(u,l){this.x=u,this.y=l}Math.imul||(Q=K),a.prototype.mulTo=function(l,y){var k=this.length+l.length;return 10===this.length&&10===l.length?Q(this,l,y):k<63?K(this,l,y):k<1024?re(this,l,y):ie(this,l,y)},ce.prototype.makeRBT=function(l){for(var y=new Array(l),D=a.prototype._countBits(l)-1,k=0;k<l;k++)y[k]=this.revBin(k,D,l);return y},ce.prototype.revBin=function(l,y,D){if(0===l||l===D-1)return l;for(var k=0,b=0;b<y;b++)k|=(1&l)<<y-b-1,l>>=1;return k},ce.prototype.permute=function(l,y,D,k,b,n){for(var _=0;_<n;_++)k[_]=y[l[_]],b[_]=D[l[_]]},ce.prototype.transform=function(l,y,D,k,b,n){this.permute(n,l,y,D,k,b);for(var _=1;_<b;_<<=1)for(var W=_<<1,P=Math.cos(2*Math.PI/W),U=Math.sin(2*Math.PI/W),me=0;me<b;me+=W)for(var nt=P,Pe=U,Oe=0;Oe<_;Oe++){var De=D[me+Oe],ue=k[me+Oe],ve=D[me+Oe+_],Ie=k[me+Oe+_],$=nt*ve-Pe*Ie;Ie=nt*Ie+Pe*ve,D[me+Oe]=De+(ve=$),k[me+Oe]=ue+Ie,D[me+Oe+_]=De-ve,k[me+Oe+_]=ue-Ie,Oe!==W&&($=P*nt-U*Pe,Pe=P*Pe+U*nt,nt=$)}},ce.prototype.guessLen13b=function(l,y){var D=1|Math.max(y,l),k=1&D,b=0;for(D=D/2|0;D;D>>>=1)b++;return 1<<b+1+k},ce.prototype.conjugate=function(l,y,D){if(!(D<=1))for(var k=0;k<D/2;k++){var b=l[k];l[k]=l[D-k-1],l[D-k-1]=b,b=y[k],y[k]=-y[D-k-1],y[D-k-1]=-b}},ce.prototype.normalize13b=function(l,y){for(var D=0,k=0;k<y/2;k++){var b=8192*Math.round(l[2*k+1]/y)+Math.round(l[2*k]/y)+D;l[k]=67108863&b,D=b<67108864?0:b/67108864|0}return l},ce.prototype.convert13b=function(l,y,D,k){for(var b=0,n=0;n<y;n++)D[2*n]=8191&(b+=0|l[n]),D[2*n+1]=8191&(b>>>=13),b>>>=13;for(n=2*y;n<k;++n)D[n]=0;f(0===b),f(0==(-8192&b))},ce.prototype.stub=function(l){for(var y=new Array(l),D=0;D<l;D++)y[D]=0;return y},ce.prototype.mulp=function(l,y,D){var k=2*this.guessLen13b(l.length,y.length),b=this.makeRBT(k),n=this.stub(k),_=new Array(k),W=new Array(k),P=new Array(k),U=new Array(k),me=new Array(k),nt=new Array(k),Pe=D.words;Pe.length=k,this.convert13b(l.words,l.length,_,k),this.convert13b(y.words,y.length,U,k),this.transform(_,n,W,P,k,b),this.transform(U,n,me,nt,k,b);for(var Oe=0;Oe<k;Oe++){var De=W[Oe]*me[Oe]-P[Oe]*nt[Oe];P[Oe]=W[Oe]*nt[Oe]+P[Oe]*me[Oe],W[Oe]=De}return this.conjugate(W,P,k),this.transform(W,P,Pe,n,k,b),this.conjugate(Pe,n,k),this.normalize13b(Pe,k),D.negative=l.negative^y.negative,D.length=l.length+y.length,D._strip()},a.prototype.mul=function(l){var y=new a(null);return y.words=new Array(this.length+l.length),this.mulTo(l,y)},a.prototype.mulf=function(l){var y=new a(null);return y.words=new Array(this.length+l.length),ie(this,l,y)},a.prototype.imul=function(l){return this.clone().mulTo(l,this)},a.prototype.imuln=function(l){var y=l<0;y&&(l=-l),f("number"==typeof l),f(l<67108864);for(var D=0,k=0;k<this.length;k++){var b=(0|this.words[k])*l,n=(67108863&b)+(67108863&D);D>>=26,D+=b/67108864|0,D+=n>>>26,this.words[k]=67108863&n}return 0!==D&&(this.words[k]=D,this.length++),y?this.ineg():this},a.prototype.muln=function(l){return this.clone().imuln(l)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(l){var y=function G(u){for(var l=new Array(u.bitLength()),y=0;y<l.length;y++)l[y]=u.words[y/26|0]>>>y%26&1;return l}(l);if(0===y.length)return new a(1);for(var D=this,k=0;k<y.length&&0===y[k];k++,D=D.sqr());if(++k<y.length)for(var b=D.sqr();k<y.length;k++,b=b.sqr())0!==y[k]&&(D=D.mul(b));return D},a.prototype.iushln=function(l){f("number"==typeof l&&l>=0);var b,y=l%26,D=(l-y)/26,k=67108863>>>26-y<<26-y;if(0!==y){var n=0;for(b=0;b<this.length;b++){var _=this.words[b]&k;this.words[b]=(0|this.words[b])-_<<y|n,n=_>>>26-y}n&&(this.words[b]=n,this.length++)}if(0!==D){for(b=this.length-1;b>=0;b--)this.words[b+D]=this.words[b];for(b=0;b<D;b++)this.words[b]=0;this.length+=D}return this._strip()},a.prototype.ishln=function(l){return f(0===this.negative),this.iushln(l)},a.prototype.iushrn=function(l,y,D){var k;f("number"==typeof l&&l>=0),k=y?(y-y%26)/26:0;var b=l%26,n=Math.min((l-b)/26,this.length),_=67108863^67108863>>>b<<b,W=D;if(k-=n,k=Math.max(0,k),W){for(var P=0;P<n;P++)W.words[P]=this.words[P];W.length=n}if(0!==n)if(this.length>n)for(this.length-=n,P=0;P<this.length;P++)this.words[P]=this.words[P+n];else this.words[0]=0,this.length=1;var U=0;for(P=this.length-1;P>=0&&(0!==U||P>=k);P--){var me=0|this.words[P];this.words[P]=U<<26-b|me>>>b,U=me&_}return W&&0!==U&&(W.words[W.length++]=U),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(l,y,D){return f(0===this.negative),this.iushrn(l,y,D)},a.prototype.shln=function(l){return this.clone().ishln(l)},a.prototype.ushln=function(l){return this.clone().iushln(l)},a.prototype.shrn=function(l){return this.clone().ishrn(l)},a.prototype.ushrn=function(l){return this.clone().iushrn(l)},a.prototype.testn=function(l){f("number"==typeof l&&l>=0);var y=l%26,D=(l-y)/26;return!(this.length<=D||!(this.words[D]&1<<y))},a.prototype.imaskn=function(l){f("number"==typeof l&&l>=0);var y=l%26,D=(l-y)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=D?this:(0!==y&&D++,this.length=Math.min(D,this.length),0!==y&&(this.words[this.length-1]&=67108863^67108863>>>y<<y),this._strip())},a.prototype.maskn=function(l){return this.clone().imaskn(l)},a.prototype.iaddn=function(l){return f("number"==typeof l),f(l<67108864),l<0?this.isubn(-l):0!==this.negative?1===this.length&&(0|this.words[0])<=l?(this.words[0]=l-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(l),this.negative=1,this):this._iaddn(l)},a.prototype._iaddn=function(l){this.words[0]+=l;for(var y=0;y<this.length&&this.words[y]>=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},a.prototype.isubn=function(l){if(f("number"==typeof l),f(l<67108864),l<0)return this.iaddn(-l);if(0!==this.negative)return this.negative=0,this.iaddn(l),this.negative=1,this;if(this.words[0]-=l,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y<this.length&&this.words[y]<0;y++)this.words[y]+=67108864,this.words[y+1]-=1;return this._strip()},a.prototype.addn=function(l){return this.clone().iaddn(l)},a.prototype.subn=function(l){return this.clone().isubn(l)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(l,y,D){var b;this._expand(l.length+D);var n,_=0;for(b=0;b<l.length;b++){n=(0|this.words[b+D])+_;var W=(0|l.words[b])*y;_=((n-=67108863&W)>>26)-(W/67108864|0),this.words[b+D]=67108863&n}for(;b<this.length-D;b++)_=(n=(0|this.words[b+D])+_)>>26,this.words[b+D]=67108863&n;if(0===_)return this._strip();for(f(-1===_),_=0,b=0;b<this.length;b++)_=(n=-(0|this.words[b])+_)>>26,this.words[b]=67108863&n;return this.negative=1,this._strip()},a.prototype._wordDiv=function(l,y){var D,k=this.clone(),b=l,n=0|b.words[b.length-1];0!=(D=26-this._countBits(n))&&(b=b.ushln(D),k.iushln(D),n=0|b.words[b.length-1]);var P,W=k.length-b.length;if("mod"!==y){(P=new a(null)).length=W+1,P.words=new Array(P.length);for(var U=0;U<P.length;U++)P.words[U]=0}var me=k.clone()._ishlnsubmul(b,1,W);0===me.negative&&(k=me,P&&(P.words[W]=1));for(var nt=W-1;nt>=0;nt--){var Pe=67108864*(0|k.words[b.length+nt])+(0|k.words[b.length+nt-1]);for(Pe=Math.min(Pe/n|0,67108863),k._ishlnsubmul(b,Pe,nt);0!==k.negative;)Pe--,k.negative=0,k._ishlnsubmul(b,1,nt),k.isZero()||(k.negative^=1);P&&(P.words[nt]=Pe)}return P&&P._strip(),k._strip(),"div"!==y&&0!==D&&k.iushrn(D),{div:P||null,mod:k}},a.prototype.divmod=function(l,y,D){return f(!l.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===l.negative?(n=this.neg().divmod(l,y),"mod"!==y&&(k=n.div.neg()),"div"!==y&&(b=n.mod.neg(),D&&0!==b.negative&&b.iadd(l)),{div:k,mod:b}):0===this.negative&&0!==l.negative?(n=this.divmod(l.neg(),y),"mod"!==y&&(k=n.div.neg()),{div:k,mod:n.mod}):0!=(this.negative&l.negative)?(n=this.neg().divmod(l.neg(),y),"div"!==y&&(b=n.mod.neg(),D&&0!==b.negative&&b.isub(l)),{div:n.div,mod:b}):l.length>this.length||this.cmp(l)<0?{div:new a(0),mod:this}:1===l.length?"div"===y?{div:this.divn(l.words[0]),mod:null}:"mod"===y?{div:null,mod:new a(this.modrn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new a(this.modrn(l.words[0]))}:this._wordDiv(l,y);var k,b,n},a.prototype.div=function(l){return this.divmod(l,"div",!1).div},a.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},a.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},a.prototype.divRound=function(l){var y=this.divmod(l);if(y.mod.isZero())return y.div;var D=0!==y.div.negative?y.mod.isub(l):y.mod,k=l.ushrn(1),b=l.andln(1),n=D.cmp(k);return n<0||1===b&&0===n?y.div:0!==y.div.negative?y.div.isubn(1):y.div.iaddn(1)},a.prototype.modrn=function(l){var y=l<0;y&&(l=-l),f(l<=67108863);for(var D=(1<<26)%l,k=0,b=this.length-1;b>=0;b--)k=(D*k+(0|this.words[b]))%l;return y?-k:k},a.prototype.modn=function(l){return this.modrn(l)},a.prototype.idivn=function(l){var y=l<0;y&&(l=-l),f(l<=67108863);for(var D=0,k=this.length-1;k>=0;k--){var b=(0|this.words[k])+67108864*D;this.words[k]=b/l|0,D=b%l}return this._strip(),y?this.ineg():this},a.prototype.divn=function(l){return this.clone().idivn(l)},a.prototype.egcd=function(l){f(0===l.negative),f(!l.isZero());var y=this,D=l.clone();y=0!==y.negative?y.umod(l):y.clone();for(var k=new a(1),b=new a(0),n=new a(0),_=new a(1),W=0;y.isEven()&&D.isEven();)y.iushrn(1),D.iushrn(1),++W;for(var P=D.clone(),U=y.clone();!y.isZero();){for(var me=0,nt=1;0==(y.words[0]&nt)&&me<26;++me,nt<<=1);if(me>0)for(y.iushrn(me);me-- >0;)(k.isOdd()||b.isOdd())&&(k.iadd(P),b.isub(U)),k.iushrn(1),b.iushrn(1);for(var Pe=0,Oe=1;0==(D.words[0]&Oe)&&Pe<26;++Pe,Oe<<=1);if(Pe>0)for(D.iushrn(Pe);Pe-- >0;)(n.isOdd()||_.isOdd())&&(n.iadd(P),_.isub(U)),n.iushrn(1),_.iushrn(1);y.cmp(D)>=0?(y.isub(D),k.isub(n),b.isub(_)):(D.isub(y),n.isub(k),_.isub(b))}return{a:n,b:_,gcd:D.iushln(W)}},a.prototype._invmp=function(l){f(0===l.negative),f(!l.isZero());var me,y=this,D=l.clone();y=0!==y.negative?y.umod(l):y.clone();for(var k=new a(1),b=new a(0),n=D.clone();y.cmpn(1)>0&&D.cmpn(1)>0;){for(var _=0,W=1;0==(y.words[0]&W)&&_<26;++_,W<<=1);if(_>0)for(y.iushrn(_);_-- >0;)k.isOdd()&&k.iadd(n),k.iushrn(1);for(var P=0,U=1;0==(D.words[0]&U)&&P<26;++P,U<<=1);if(P>0)for(D.iushrn(P);P-- >0;)b.isOdd()&&b.iadd(n),b.iushrn(1);y.cmp(D)>=0?(y.isub(D),k.isub(b)):(D.isub(y),b.isub(k))}return(me=0===y.cmpn(1)?k:b).cmpn(0)<0&&me.iadd(l),me},a.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var y=this.clone(),D=l.clone();y.negative=0,D.negative=0;for(var k=0;y.isEven()&&D.isEven();k++)y.iushrn(1),D.iushrn(1);for(;;){for(;y.isEven();)y.iushrn(1);for(;D.isEven();)D.iushrn(1);var b=y.cmp(D);if(b<0){var n=y;y=D,D=n}else if(0===b||0===D.cmpn(1))break;y.isub(D)}return D.iushln(k)},a.prototype.invm=function(l){return this.egcd(l).a.umod(l)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(l){return this.words[0]&l},a.prototype.bincn=function(l){f("number"==typeof l);var y=l%26,D=(l-y)/26,k=1<<y;if(this.length<=D)return this._expand(D+1),this.words[D]|=k,this;for(var b=k,n=D;0!==b&&n<this.length;n++){var _=0|this.words[n];b=(_+=b)>>>26,this.words[n]=_&=67108863}return 0!==b&&(this.words[n]=b,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(l){var D,y=l<0;if(0!==this.negative&&!y)return-1;if(0===this.negative&&y)return 1;if(this._strip(),this.length>1)D=1;else{y&&(l=-l),f(l<=67108863,"Number is too big");var k=0|this.words[0];D=k===l?0:k<l?-1:1}return 0!==this.negative?0|-D:D},a.prototype.cmp=function(l){if(0!==this.negative&&0===l.negative)return-1;if(0===this.negative&&0!==l.negative)return 1;var y=this.ucmp(l);return 0!==this.negative?0|-y:y},a.prototype.ucmp=function(l){if(this.length>l.length)return 1;if(this.length<l.length)return-1;for(var y=0,D=this.length-1;D>=0;D--){var k=0|this.words[D],b=0|l.words[D];if(k!==b){k<b?y=-1:k>b&&(y=1);break}}return y},a.prototype.gtn=function(l){return 1===this.cmpn(l)},a.prototype.gt=function(l){return 1===this.cmp(l)},a.prototype.gten=function(l){return this.cmpn(l)>=0},a.prototype.gte=function(l){return this.cmp(l)>=0},a.prototype.ltn=function(l){return-1===this.cmpn(l)},a.prototype.lt=function(l){return-1===this.cmp(l)},a.prototype.lten=function(l){return this.cmpn(l)<=0},a.prototype.lte=function(l){return this.cmp(l)<=0},a.prototype.eqn=function(l){return 0===this.cmpn(l)},a.prototype.eq=function(l){return 0===this.cmp(l)},a.red=function(l){return new i(l)},a.prototype.toRed=function(l){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),l.convertTo(this)._forceRed(l)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(l){return this.red=l,this},a.prototype.forceRed=function(l){return f(!this.red,"Already a number in reduction context"),this._forceRed(l)},a.prototype.redAdd=function(l){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,l)},a.prototype.redIAdd=function(l){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,l)},a.prototype.redSub=function(l){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,l)},a.prototype.redISub=function(l){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,l)},a.prototype.redShl=function(l){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,l)},a.prototype.redMul=function(l){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.mul(this,l)},a.prototype.redIMul=function(l){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.imul(this,l)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(l){return f(this.red&&!l.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,l)};var ae={k256:null,p224:null,p192:null,p25519:null};function ne(u,l){this.name=u,this.p=new a(l,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){ne.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ee(){ne.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function pe(){ne.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){ne.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(u){if("string"==typeof u){var l=a._prime(u);this.m=l.p,this.prime=l}else f(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}function r(u){i.call(this,u),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ne.prototype._tmp=function(){var l=new a(null);return l.words=new Array(Math.ceil(this.n/13)),l},ne.prototype.ireduce=function(l){var D,y=l;do{this.split(y,this.tmp),D=(y=(y=this.imulK(y)).iadd(this.tmp)).bitLength()}while(D>this.n);var k=D<this.n?-1:y.ucmp(this.p);return 0===k?(y.words[0]=0,y.length=1):k>0?y.isub(this.p):void 0!==y.strip?y.strip():y._strip(),y},ne.prototype.split=function(l,y){l.iushrn(this.n,0,y)},ne.prototype.imulK=function(l){return l.imul(this.k)},C(le,ne),le.prototype.split=function(l,y){for(var D=4194303,k=Math.min(l.length,9),b=0;b<k;b++)y.words[b]=l.words[b];if(y.length=k,l.length<=9)return l.words[0]=0,void(l.length=1);var n=l.words[9];for(y.words[y.length++]=n&D,b=10;b<l.length;b++){var _=0|l.words[b];l.words[b-10]=(_&D)<<4|n>>>22,n=_}l.words[b-10]=n>>>=22,l.length-=0===n&&l.length>10?10:9},le.prototype.imulK=function(l){l.words[l.length]=0,l.words[l.length+1]=0,l.length+=2;for(var y=0,D=0;D<l.length;D++){var k=0|l.words[D];l.words[D]=67108863&(y+=977*k),y=64*k+(y/67108864|0)}return 0===l.words[l.length-1]&&(l.length--,0===l.words[l.length-1]&&l.length--),l},C(ee,ne),C(pe,ne),C(S,ne),S.prototype.imulK=function(l){for(var y=0,D=0;D<l.length;D++){var k=19*(0|l.words[D])+y,b=67108863&k;k>>>=26,l.words[D]=b,y=k}return 0!==y&&(l.words[l.length++]=y),l},a._prime=function(l){if(ae[l])return ae[l];var y;if("k256"===l)y=new le;else if("p224"===l)y=new ee;else if("p192"===l)y=new pe;else{if("p25519"!==l)throw new Error("Unknown prime "+l);y=new S}return ae[l]=y,y},i.prototype._verify1=function(l){f(0===l.negative,"red works only with positives"),f(l.red,"red works only with red numbers")},i.prototype._verify2=function(l,y){f(0==(l.negative|y.negative),"red works only with positives"),f(l.red&&l.red===y.red,"red works only with red numbers")},i.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):(I(l,l.umod(this.m)._forceRed(this)),l)},i.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},i.prototype.add=function(l,y){this._verify2(l,y);var D=l.add(y);return D.cmp(this.m)>=0&&D.isub(this.m),D._forceRed(this)},i.prototype.iadd=function(l,y){this._verify2(l,y);var D=l.iadd(y);return D.cmp(this.m)>=0&&D.isub(this.m),D},i.prototype.sub=function(l,y){this._verify2(l,y);var D=l.sub(y);return D.cmpn(0)<0&&D.iadd(this.m),D._forceRed(this)},i.prototype.isub=function(l,y){this._verify2(l,y);var D=l.isub(y);return D.cmpn(0)<0&&D.iadd(this.m),D},i.prototype.shl=function(l,y){return this._verify1(l),this.imod(l.ushln(y))},i.prototype.imul=function(l,y){return this._verify2(l,y),this.imod(l.imul(y))},i.prototype.mul=function(l,y){return this._verify2(l,y),this.imod(l.mul(y))},i.prototype.isqr=function(l){return this.imul(l,l.clone())},i.prototype.sqr=function(l){return this.mul(l,l)},i.prototype.sqrt=function(l){if(l.isZero())return l.clone();var y=this.m.andln(3);if(f(y%2==1),3===y){var D=this.m.add(new a(1)).iushrn(2);return this.pow(l,D)}for(var k=this.m.subn(1),b=0;!k.isZero()&&0===k.andln(1);)b++,k.iushrn(1);f(!k.isZero());var n=new a(1).toRed(this),_=n.redNeg(),W=this.m.subn(1).iushrn(1),P=this.m.bitLength();for(P=new a(2*P*P).toRed(this);0!==this.pow(P,W).cmp(_);)P.redIAdd(_);for(var U=this.pow(P,k),me=this.pow(l,k.addn(1).iushrn(1)),nt=this.pow(l,k),Pe=b;0!==nt.cmp(n);){for(var Oe=nt,De=0;0!==Oe.cmp(n);De++)Oe=Oe.redSqr();f(De<Pe);var ue=this.pow(U,new a(1).iushln(Pe-De-1));me=me.redMul(ue),U=ue.redSqr(),nt=nt.redMul(U),Pe=De}return me},i.prototype.invm=function(l){var y=l._invmp(this.m);return 0!==y.negative?(y.negative=0,this.imod(y).redNeg()):this.imod(y)},i.prototype.pow=function(l,y){if(y.isZero())return new a(1).toRed(this);if(0===y.cmpn(1))return l.clone();var k=new Array(16);k[0]=new a(1).toRed(this),k[1]=l;for(var b=2;b<k.length;b++)k[b]=this.mul(k[b-1],l);var n=k[0],_=0,W=0,P=y.bitLength()%26;for(0===P&&(P=26),b=y.length-1;b>=0;b--){for(var U=y.words[b],me=P-1;me>=0;me--){var nt=U>>me&1;n!==k[0]&&(n=this.sqr(n)),0!==nt||0!==_?(_<<=1,_|=nt,(4==++W||0===b&&0===me)&&(n=this.mul(n,k[_]),W=0,_=0)):W=0}P=26}return n},i.prototype.convertTo=function(l){var y=l.umod(this.m);return y===l?y.clone():y},i.prototype.convertFrom=function(l){var y=l.clone();return y.red=null,y},a.mont=function(l){return new r(l)},C(r,i),r.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},r.prototype.convertFrom=function(l){var y=this.imod(l.mul(this.rinv));return y.red=null,y},r.prototype.imul=function(l,y){if(l.isZero()||y.isZero())return l.words[0]=0,l.length=1,l;var D=l.imul(y),k=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),b=D.isub(k).iushrn(this.shift),n=b;return b.cmp(this.m)>=0?n=b.isub(this.m):b.cmpn(0)<0&&(n=b.iadd(this.m)),n._forceRed(this)},r.prototype.mul=function(l,y){if(l.isZero()||y.isZero())return new a(0)._forceRed(this);var D=l.mul(y),k=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),b=D.isub(k).iushrn(this.shift),n=b;return b.cmp(this.m)>=0?n=b.isub(this.m):b.cmpn(0)<0&&(n=b.iadd(this.m)),n._forceRed(this)},r.prototype.invm=function(l){return this.imod(l._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=p.nmd(ke),this)},7950:(ke,J,p)=>{var t;function e(C){this.rand=C}if(ke.exports=function(a){return t||(t=new e(null)),t.generate(a)},ke.exports.Rand=e,e.prototype.generate=function(a){return this._rand(a)},e.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var M=new Uint8Array(a),d=0;d<M.length;d++)M[d]=this.rand.getByte();return M},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?e.prototype._rand=function(a){var M=new Uint8Array(a);return self.crypto.getRandomValues(M),M}:self.msCrypto&&self.msCrypto.getRandomValues?e.prototype._rand=function(a){var M=new Uint8Array(a);return self.msCrypto.getRandomValues(M),M}:"object"==typeof window&&(e.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var f=p(1348);if("function"!=typeof f.randomBytes)throw new Error("Not supported");e.prototype._rand=function(a){return f.randomBytes(a)}}catch{}},1899:(ke,J,p)=>{var t=p(3502).Buffer;function e(R){t.isBuffer(R)||(R=t.from(R));for(var h=R.length/4|0,I=new Array(h),E=0;E<h;E++)I[E]=R.readUInt32BE(4*E);return I}function f(R){for(;0<R.length;R++)R[0]=0}function C(R,h,I,E,L){for(var ce,ae,ne,le,T=I[0],N=I[1],w=I[2],G=I[3],K=R[0]^h[0],Q=R[1]^h[1],re=R[2]^h[2],ie=R[3]^h[3],ee=4,pe=1;pe<L;pe++)ce=T[K>>>24]^N[Q>>>16&255]^w[re>>>8&255]^G[255&ie]^h[ee++],ae=T[Q>>>24]^N[re>>>16&255]^w[ie>>>8&255]^G[255&K]^h[ee++],ne=T[re>>>24]^N[ie>>>16&255]^w[K>>>8&255]^G[255&Q]^h[ee++],le=T[ie>>>24]^N[K>>>16&255]^w[Q>>>8&255]^G[255&re]^h[ee++],K=ce,Q=ae,re=ne,ie=le;return ce=(E[K>>>24]<<24|E[Q>>>16&255]<<16|E[re>>>8&255]<<8|E[255&ie])^h[ee++],ae=(E[Q>>>24]<<24|E[re>>>16&255]<<16|E[ie>>>8&255]<<8|E[255&K])^h[ee++],ne=(E[re>>>24]<<24|E[ie>>>16&255]<<16|E[K>>>8&255]<<8|E[255&Q])^h[ee++],le=(E[ie>>>24]<<24|E[K>>>16&255]<<16|E[Q>>>8&255]<<8|E[255&re])^h[ee++],[ce>>>=0,ae>>>=0,ne>>>=0,le>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],M=function(){for(var R=new Array(256),h=0;h<256;h++)R[h]=h<128?h<<1:h<<1^283;for(var I=[],E=[],L=[[],[],[],[]],T=[[],[],[],[]],N=0,w=0,G=0;G<256;++G){var K=w^w<<1^w<<2^w<<3^w<<4;I[N]=K=K>>>8^255&K^99,E[K]=N;var Q=R[N],re=R[Q],ie=R[re],ce=257*R[K]^16843008*K;L[0][N]=ce<<24|ce>>>8,L[1][N]=ce<<16|ce>>>16,L[2][N]=ce<<8|ce>>>24,L[3][N]=ce,T[0][K]=(ce=16843009*ie^65537*re^257*Q^16843008*N)<<24|ce>>>8,T[1][K]=ce<<16|ce>>>16,T[2][K]=ce<<8|ce>>>24,T[3][K]=ce,0===N?N=w=1:(N=Q^R[R[R[ie^Q]]],w^=R[R[w]])}return{SBOX:I,INV_SBOX:E,SUB_MIX:L,INV_SUB_MIX:T}}();function d(R){this._key=e(R),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var R=this._key,h=R.length,I=h+6,E=4*(I+1),L=[],T=0;T<h;T++)L[T]=R[T];for(T=h;T<E;T++){var N=L[T-1];T%h==0?(N=M.SBOX[(N=N<<8|N>>>24)>>>24]<<24|M.SBOX[N>>>16&255]<<16|M.SBOX[N>>>8&255]<<8|M.SBOX[255&N],N^=a[T/h|0]<<24):h>6&&T%h==4&&(N=M.SBOX[N>>>24]<<24|M.SBOX[N>>>16&255]<<16|M.SBOX[N>>>8&255]<<8|M.SBOX[255&N]),L[T]=L[T-h]^N}for(var w=[],G=0;G<E;G++){var K=E-G,Q=L[K-(G%4?0:4)];w[G]=G<4||K<=4?Q:M.INV_SUB_MIX[0][M.SBOX[Q>>>24]]^M.INV_SUB_MIX[1][M.SBOX[Q>>>16&255]]^M.INV_SUB_MIX[2][M.SBOX[Q>>>8&255]]^M.INV_SUB_MIX[3][M.SBOX[255&Q]]}this._nRounds=I,this._keySchedule=L,this._invKeySchedule=w},d.prototype.encryptBlockRaw=function(R){return C(R=e(R),this._keySchedule,M.SUB_MIX,M.SBOX,this._nRounds)},d.prototype.encryptBlock=function(R){var h=this.encryptBlockRaw(R),I=t.allocUnsafe(16);return I.writeUInt32BE(h[0],0),I.writeUInt32BE(h[1],4),I.writeUInt32BE(h[2],8),I.writeUInt32BE(h[3],12),I},d.prototype.decryptBlock=function(R){var h=(R=e(R))[1];R[1]=R[3],R[3]=h;var I=C(R,this._invKeySchedule,M.INV_SUB_MIX,M.INV_SBOX,this._nRounds),E=t.allocUnsafe(16);return E.writeUInt32BE(I[0],0),E.writeUInt32BE(I[3],4),E.writeUInt32BE(I[2],8),E.writeUInt32BE(I[1],12),E},d.prototype.scrub=function(){f(this._keySchedule),f(this._invKeySchedule),f(this._key)},ke.exports.AES=d},9382:(ke,J,p)=>{var t=p(1899),e=p(3502).Buffer,f=p(1052),C=p(3894),a=p(8857),M=p(8789),d=p(7968);function I(E,L,T,N){f.call(this);var w=e.alloc(4,0);this._cipher=new t.AES(L);var G=this._cipher.encryptBlock(w);this._ghash=new a(G),T=function h(E,L,T){if(12===L.length)return E._finID=e.concat([L,e.from([0,0,0,1])]),e.concat([L,e.from([0,0,0,2])]);var N=new a(T),w=L.length,G=w%16;N.update(L),G&&N.update(e.alloc(G=16-G,0)),N.update(e.alloc(8,0));var K=8*w,Q=e.alloc(8);Q.writeUIntBE(K,0,8),N.update(Q),E._finID=N.state;var re=e.from(E._finID);return d(re),re}(this,T,G),this._prev=e.from(T),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=N,this._alen=0,this._len=0,this._mode=E,this._authTag=null,this._called=!1}C(I,f),I.prototype._update=function(E){if(!this._called&&this._alen){var L=16-this._alen%16;L<16&&(L=e.alloc(L,0),this._ghash.update(L))}this._called=!0;var T=this._mode.encrypt(this,E);return this._ghash.update(this._decrypt?E:T),this._len+=E.length,T},I.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var E=M(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function R(E,L){var T=0;E.length!==L.length&&T++;for(var N=Math.min(E.length,L.length),w=0;w<N;++w)T+=E[w]^L[w];return T}(E,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=E,this._cipher.scrub()},I.prototype.getAuthTag=function(){if(this._decrypt||!e.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},I.prototype.setAuthTag=function(L){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=L},I.prototype.setAAD=function(L){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(L),this._alen+=L.length},ke.exports=I},4330:(ke,J,p)=>{var t=p(6900),e=p(856),f=p(4946);J.createCipher=J.Cipher=t.createCipher,J.createCipheriv=J.Cipheriv=t.createCipheriv,J.createDecipher=J.Decipher=e.createDecipher,J.createDecipheriv=J.Decipheriv=e.createDecipheriv,J.listCiphers=J.getCiphers=function C(){return Object.keys(f)}},856:(ke,J,p)=>{var t=p(9382),e=p(3502).Buffer,f=p(9171),C=p(8441),a=p(1052),M=p(1899),d=p(347);function h(N,w,G){a.call(this),this._cache=new I,this._last=void 0,this._cipher=new M.AES(w),this._prev=e.from(G),this._mode=N,this._autopadding=!0}function I(){this.cache=e.allocUnsafe(0)}function L(N,w,G){var K=f[N.toLowerCase()];if(!K)throw new TypeError("invalid suite type");if("string"==typeof G&&(G=e.from(G)),"GCM"!==K.mode&&G.length!==K.iv)throw new TypeError("invalid iv length "+G.length);if("string"==typeof w&&(w=e.from(w)),w.length!==K.key/8)throw new TypeError("invalid key length "+w.length);return"stream"===K.type?new C(K.module,w,G,!0):"auth"===K.type?new t(K.module,w,G,!0):new h(K.module,w,G)}p(3894)(h,a),h.prototype._update=function(N){this._cache.add(N);for(var w,G,K=[];w=this._cache.get(this._autopadding);)G=this._mode.decrypt(this,w),K.push(G);return e.concat(K)},h.prototype._final=function(){var N=this._cache.flush();if(this._autopadding)return function E(N){var w=N[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var G=-1;++G<w;)if(N[G+(16-w)]!==w)throw new Error("unable to decrypt data");if(16!==w)return N.slice(0,16-w)}(this._mode.decrypt(this,N));if(N)throw new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(N){return this._autopadding=!!N,this},I.prototype.add=function(N){this.cache=e.concat([this.cache,N])},I.prototype.get=function(N){var w;if(N){if(this.cache.length>16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w}else if(this.cache.length>=16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w;return null},I.prototype.flush=function(){if(this.cache.length)return this.cache},J.createDecipher=function T(N,w){var G=f[N.toLowerCase()];if(!G)throw new TypeError("invalid suite type");var K=d(w,!1,G.key,G.iv);return L(N,K.key,K.iv)},J.createDecipheriv=L},6900:(ke,J,p)=>{var t=p(9171),e=p(9382),f=p(3502).Buffer,C=p(8441),a=p(1052),M=p(1899),d=p(347);function h(N,w,G){a.call(this),this._cache=new E,this._cipher=new M.AES(w),this._prev=f.from(G),this._mode=N,this._autopadding=!0}p(3894)(h,a),h.prototype._update=function(N){this._cache.add(N);for(var w,G,K=[];w=this._cache.get();)G=this._mode.encrypt(this,w),K.push(G);return f.concat(K)};var I=f.alloc(16,16);function E(){this.cache=f.allocUnsafe(0)}function L(N,w,G){var K=t[N.toLowerCase()];if(!K)throw new TypeError("invalid suite type");if("string"==typeof w&&(w=f.from(w)),w.length!==K.key/8)throw new TypeError("invalid key length "+w.length);if("string"==typeof G&&(G=f.from(G)),"GCM"!==K.mode&&G.length!==K.iv)throw new TypeError("invalid iv length "+G.length);return"stream"===K.type?new C(K.module,w,G):"auth"===K.type?new e(K.module,w,G):new h(K.module,w,G)}h.prototype._final=function(){var N=this._cache.flush();if(this._autopadding)return N=this._mode.encrypt(this,N),this._cipher.scrub(),N;if(!N.equals(I))throw this._cipher.scrub(),new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(N){return this._autopadding=!!N,this},E.prototype.add=function(N){this.cache=f.concat([this.cache,N])},E.prototype.get=function(){if(this.cache.length>15){var N=this.cache.slice(0,16);return this.cache=this.cache.slice(16),N}return null},E.prototype.flush=function(){for(var N=16-this.cache.length,w=f.allocUnsafe(N),G=-1;++G<N;)w.writeUInt8(N,G);return f.concat([this.cache,w])},J.createCipheriv=L,J.createCipher=function T(N,w){var G=t[N.toLowerCase()];if(!G)throw new TypeError("invalid suite type");var K=d(w,!1,G.key,G.iv);return L(N,K.key,K.iv)}},8857:(ke,J,p)=>{var t=p(3502).Buffer,e=t.alloc(16,0);function C(M){var d=t.allocUnsafe(16);return d.writeUInt32BE(M[0]>>>0,0),d.writeUInt32BE(M[1]>>>0,4),d.writeUInt32BE(M[2]>>>0,8),d.writeUInt32BE(M[3]>>>0,12),d}function a(M){this.h=M,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}a.prototype.ghash=function(M){for(var d=-1;++d<M.length;)this.state[d]^=M[d];this._multiply()},a.prototype._multiply=function(){for(var R,I,M=function f(M){return[M.readUInt32BE(0),M.readUInt32BE(4),M.readUInt32BE(8),M.readUInt32BE(12)]}(this.h),d=[0,0,0,0],E=-1;++E<128;){for(0!=(this.state[~~(E/8)]&1<<7-E%8)&&(d[0]^=M[0],d[1]^=M[1],d[2]^=M[2],d[3]^=M[3]),I=0!=(1&M[3]),R=3;R>0;R--)M[R]=M[R]>>>1|(1&M[R-1])<<31;M[0]=M[0]>>>1,I&&(M[0]=M[0]^225<<24)}this.state=C(d)},a.prototype.update=function(M){this.cache=t.concat([this.cache,M]);for(var d;this.cache.length>=16;)d=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(d)},a.prototype.final=function(M,d){return this.cache.length&&this.ghash(t.concat([this.cache,e],16)),this.ghash(C([0,M,0,d])),this.state},ke.exports=a},7968:ke=>{ke.exports=function J(p){for(var e,t=p.length;t--;){if(255!==(e=p.readUInt8(t))){e++,p.writeUInt8(e,t);break}p.writeUInt8(0,t)}}},4903:(ke,J,p)=>{var t=p(8789);J.encrypt=function(e,f){var C=t(f,e._prev);return e._prev=e._cipher.encryptBlock(C),e._prev},J.decrypt=function(e,f){var C=e._prev;e._prev=f;var a=e._cipher.decryptBlock(f);return t(a,C)}},9885:(ke,J,p)=>{var t=p(3502).Buffer,e=p(8789);function f(C,a,M){var d=a.length,R=e(a,C._cache);return C._cache=C._cache.slice(d),C._prev=t.concat([C._prev,M?a:R]),R}J.encrypt=function(C,a,M){for(var R,d=t.allocUnsafe(0);a.length;){if(0===C._cache.length&&(C._cache=C._cipher.encryptBlock(C._prev),C._prev=t.allocUnsafe(0)),!(C._cache.length<=a.length)){d=t.concat([d,f(C,a,M)]);break}d=t.concat([d,f(C,a.slice(0,R=C._cache.length),M)]),a=a.slice(R)}return d}},6531:(ke,J,p)=>{var t=p(3502).Buffer;function e(C,a,M){for(var E,L,R=-1,I=0;++R<8;)I+=(128&(L=C._cipher.encryptBlock(C._prev)[0]^(E=a&1<<7-R?128:0)))>>R%8,C._prev=f(C._prev,M?E:L);return I}function f(C,a){var M=C.length,d=-1,R=t.allocUnsafe(C.length);for(C=t.concat([C,t.from([a])]);++d<M;)R[d]=C[d]<<1|C[d+1]>>7;return R}J.encrypt=function(C,a,M){for(var d=a.length,R=t.allocUnsafe(d),h=-1;++h<d;)R[h]=e(C,a[h],M);return R}},1641:(ke,J,p)=>{var t=p(3502).Buffer;function e(f,C,a){var d=f._cipher.encryptBlock(f._prev)[0]^C;return f._prev=t.concat([f._prev.slice(1),t.from([a?C:d])]),d}J.encrypt=function(f,C,a){for(var M=C.length,d=t.allocUnsafe(M),R=-1;++R<M;)d[R]=e(f,C[R],a);return d}},1150:(ke,J,p)=>{var t=p(8789),e=p(3502).Buffer,f=p(7968);function C(M){var d=M._cipher.encryptBlockRaw(M._prev);return f(M._prev),d}J.encrypt=function(M,d){var R=Math.ceil(d.length/16),h=M._cache.length;M._cache=e.concat([M._cache,e.allocUnsafe(16*R)]);for(var I=0;I<R;I++){var E=C(M),L=h+16*I;M._cache.writeUInt32BE(E[0],L+0),M._cache.writeUInt32BE(E[1],L+4),M._cache.writeUInt32BE(E[2],L+8),M._cache.writeUInt32BE(E[3],L+12)}var T=M._cache.slice(0,d.length);return M._cache=M._cache.slice(d.length),t(d,T)}},1704:(ke,J)=>{J.encrypt=function(p,t){return p._cipher.encryptBlock(t)},J.decrypt=function(p,t){return p._cipher.decryptBlock(t)}},9171:(ke,J,p)=>{var t={ECB:p(1704),CBC:p(4903),CFB:p(9885),CFB8:p(1641),CFB1:p(6531),OFB:p(6816),CTR:p(1150),GCM:p(1150)},e=p(4946);for(var f in e)e[f].module=t[e[f].mode];ke.exports=e},6816:(ke,J,p)=>{var t=p(8789);function e(f){return f._prev=f._cipher.encryptBlock(f._prev),f._prev}J.encrypt=function(f,C){for(;f._cache.length<C.length;)f._cache=Buffer.concat([f._cache,e(f)]);var a=f._cache.slice(0,C.length);return f._cache=f._cache.slice(C.length),t(C,a)}},8441:(ke,J,p)=>{var t=p(1899),e=p(3502).Buffer,f=p(1052);function a(M,d,R,h){f.call(this),this._cipher=new t.AES(d),this._prev=e.from(R),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=h,this._mode=M}p(3894)(a,f),a.prototype._update=function(M){return this._mode.encrypt(this,M,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},ke.exports=a},5255:(ke,J,p)=>{var t=p(9004),e=p(4330),f=p(9171),C=p(1115),a=p(347);function R(E,L,T){if(E=E.toLowerCase(),f[E])return e.createCipheriv(E,L,T);if(C[E])return new t({key:L,iv:T,mode:E});throw new TypeError("invalid suite type")}function h(E,L,T){if(E=E.toLowerCase(),f[E])return e.createDecipheriv(E,L,T);if(C[E])return new t({key:L,iv:T,mode:E,decrypt:!0});throw new TypeError("invalid suite type")}J.createCipher=J.Cipher=function M(E,L){var T,N;if(E=E.toLowerCase(),f[E])T=f[E].key,N=f[E].iv;else{if(!C[E])throw new TypeError("invalid suite type");T=8*C[E].key,N=C[E].iv}var w=a(L,!1,T,N);return R(E,w.key,w.iv)},J.createCipheriv=J.Cipheriv=R,J.createDecipher=J.Decipher=function d(E,L){var T,N;if(E=E.toLowerCase(),f[E])T=f[E].key,N=f[E].iv;else{if(!C[E])throw new TypeError("invalid suite type");T=8*C[E].key,N=C[E].iv}var w=a(L,!1,T,N);return h(E,w.key,w.iv)},J.createDecipheriv=J.Decipheriv=h,J.listCiphers=J.getCiphers=function I(){return Object.keys(C).concat(e.getCiphers())}},9004:(ke,J,p)=>{var t=p(1052),e=p(3684),f=p(3894),C=p(3502).Buffer,a={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};function M(d){t.call(this);var I,R=d.mode.toLowerCase(),h=a[R];I=d.decrypt?"decrypt":"encrypt";var E=d.key;C.isBuffer(E)||(E=C.from(E)),("des-ede"===R||"des-ede-cbc"===R)&&(E=C.concat([E,E.slice(0,8)]));var L=d.iv;C.isBuffer(L)||(L=C.from(L)),this._des=h.create({key:E,iv:L,type:I})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],ke.exports=M,f(M,t),M.prototype._update=function(d){return C.from(this._des.update(d))},M.prototype._final=function(){return C.from(this._des.final())}},1115:(ke,J)=>{J["des-ecb"]={key:8,iv:0},J["des-cbc"]=J.des={key:8,iv:8},J["des-ede3-cbc"]=J.des3={key:24,iv:8},J["des-ede3"]={key:24,iv:0},J["des-ede-cbc"]={key:16,iv:8},J["des-ede"]={key:16,iv:0}},8466:(ke,J,p)=>{var t=p(8538),e=p(3753);function C(M){var R,d=M.modulus.byteLength();do{R=new t(e(d))}while(R.cmp(M.modulus)>=0||!R.umod(M.prime1)||!R.umod(M.prime2));return R}function a(M,d){var R=function f(M){var d=C(M);return{blinder:d.toRed(t.mont(M.modulus)).redPow(new t(M.publicExponent)).fromRed(),unblinder:d.invm(M.modulus)}}(d),h=d.modulus.byteLength(),I=new t(M).mul(R.blinder).umod(d.modulus),E=I.toRed(t.mont(d.prime1)),L=I.toRed(t.mont(d.prime2)),T=d.coefficient,N=d.prime1,w=d.prime2,G=E.redPow(d.exponent1).fromRed(),K=L.redPow(d.exponent2).fromRed(),Q=G.isub(K).imul(T).umod(N).imul(w);return K.iadd(Q).imul(R.unblinder).umod(d.modulus).toArrayLike(Buffer,"be",h)}a.getr=C,ke.exports=a},7793:(ke,J,p)=>{ke.exports=p(5207)},3923:(ke,J,p)=>{var t=p(3502).Buffer,e=p(6386),f=p(5685),C=p(3894),a=p(9947),M=p(3946),d=p(5207);function R(L){f.Writable.call(this);var T=d[L];if(!T)throw new Error("Unknown message digest");this._hashType=T.hash,this._hash=e(T.hash),this._tag=T.id,this._signType=T.sign}function h(L){f.Writable.call(this);var T=d[L];if(!T)throw new Error("Unknown message digest");this._hash=e(T.hash),this._tag=T.id,this._signType=T.sign}function I(L){return new R(L)}function E(L){return new h(L)}Object.keys(d).forEach(function(L){d[L].id=t.from(d[L].id,"hex"),d[L.toLowerCase()]=d[L]}),C(R,f.Writable),R.prototype._write=function(T,N,w){this._hash.update(T),w()},R.prototype.update=function(T,N){return"string"==typeof T&&(T=t.from(T,N)),this._hash.update(T),this},R.prototype.sign=function(T,N){this.end();var w=this._hash.digest(),G=a(w,T,this._hashType,this._signType,this._tag);return N?G.toString(N):G},C(h,f.Writable),h.prototype._write=function(T,N,w){this._hash.update(T),w()},h.prototype.update=function(T,N){return"string"==typeof T&&(T=t.from(T,N)),this._hash.update(T),this},h.prototype.verify=function(T,N,w){"string"==typeof N&&(N=t.from(N,w)),this.end();var G=this._hash.digest();return M(N,G,T,this._signType,this._tag)},ke.exports={Sign:I,Verify:E,createSign:I,createVerify:E}},9947:(ke,J,p)=>{var t=p(3502).Buffer,e=p(4529),f=p(8466),C=p(7715).ec,a=p(8538),M=p(2772),d=p(1308);function L(K,Q,re,ie){if((K=t.from(K.toArray())).length<Q.byteLength()){var ce=t.alloc(Q.byteLength()-K.length);K=t.concat([ce,K])}var ae=re.length,ne=function N(K,Q){K=(K=T(K,Q)).mod(Q);var re=t.from(K.toArray());if(re.length<Q.byteLength()){var ie=t.alloc(Q.byteLength()-re.length);re=t.concat([ie,re])}return re}(re,Q),le=t.alloc(ae);le.fill(1);var ee=t.alloc(ae);return ee=e(ie,ee).update(le).update(t.from([0])).update(K).update(ne).digest(),le=e(ie,ee).update(le).digest(),{k:ee=e(ie,ee).update(le).update(t.from([1])).update(K).update(ne).digest(),v:le=e(ie,ee).update(le).digest()}}function T(K,Q){var re=new a(K),ie=(K.length<<3)-Q.bitLength();return ie>0&&re.ishrn(ie),re}function w(K,Q,re){var ie,ce;do{for(ie=t.alloc(0);8*ie.length<K.bitLength();)Q.v=e(re,Q.k).update(Q.v).digest(),ie=t.concat([ie,Q.v]);ce=T(ie,K),Q.k=e(re,Q.k).update(Q.v).update(t.from([0])).digest(),Q.v=e(re,Q.k).update(Q.v).digest()}while(-1!==ce.cmp(K));return ce}function G(K,Q,re,ie){return K.toRed(a.mont(re)).redPow(Q).fromRed().mod(ie)}ke.exports=function R(K,Q,re,ie,ce){var ae=M(Q);if(ae.curve){if("ecdsa"!==ie&&"ecdsa/rsa"!==ie)throw new Error("wrong private key type");return function h(K,Q){var re=d[Q.curve.join(".")];if(!re)throw new Error("unknown curve "+Q.curve.join("."));var ae=new C(re).keyFromPrivate(Q.privateKey).sign(K);return t.from(ae.toDER())}(K,ae)}if("dsa"===ae.type){if("dsa"!==ie)throw new Error("wrong private key type");return function I(K,Q,re){for(var ee,ie=Q.params.priv_key,ce=Q.params.p,ae=Q.params.q,ne=Q.params.g,le=new a(0),pe=T(K,ae).mod(ae),S=!1,i=L(ie,ae,K,re);!1===S;)le=G(ne,ee=w(ae,i,re),ce,ae),0===(S=ee.invm(ae).imul(pe.add(ie.mul(le))).mod(ae)).cmpn(0)&&(S=!1,le=new a(0));return function E(K,Q){K=K.toArray(),Q=Q.toArray(),128&K[0]&&(K=[0].concat(K)),128&Q[0]&&(Q=[0].concat(Q));var ie=[48,K.length+Q.length+4,2,K.length];return ie=ie.concat(K,[2,Q.length],Q),t.from(ie)}(le,S)}(K,ae,re)}if("rsa"!==ie&&"ecdsa/rsa"!==ie)throw new Error("wrong private key type");K=t.concat([ce,K]);for(var ne=ae.modulus.byteLength(),le=[0,1];K.length+le.length+1<ne;)le.push(255);le.push(0);for(var ee=-1;++ee<K.length;)le.push(K[ee]);return f(le,ae)},ke.exports.getKey=L,ke.exports.makeKey=w},3946:(ke,J,p)=>{var t=p(3502).Buffer,e=p(8538),f=p(7715).ec,C=p(2772),a=p(1308);function h(I,E){if(I.cmpn(0)<=0)throw new Error("invalid sig");if(I.cmp(E)>=E)throw new Error("invalid sig")}ke.exports=function M(I,E,L,T,N){var w=C(L);if("ec"===w.type){if("ecdsa"!==T&&"ecdsa/rsa"!==T)throw new Error("wrong public key type");return function d(I,E,L){var T=a[L.data.algorithm.curve.join(".")];if(!T)throw new Error("unknown curve "+L.data.algorithm.curve.join("."));return new f(T).verify(E,I,L.data.subjectPrivateKey.data)}(I,E,w)}if("dsa"===w.type){if("dsa"!==T)throw new Error("wrong public key type");return function R(I,E,L){var T=L.data.p,N=L.data.q,w=L.data.g,G=L.data.pub_key,K=C.signature.decode(I,"der"),Q=K.s,re=K.r;h(Q,N),h(re,N);var ie=e.mont(T),ce=Q.invm(N);return 0===w.toRed(ie).redPow(new e(E).mul(ce).mod(N)).fromRed().mul(G.toRed(ie).redPow(re.mul(ce).mod(N)).fromRed()).mod(T).mod(N).cmp(re)}(I,E,w)}if("rsa"!==T&&"ecdsa/rsa"!==T)throw new Error("wrong public key type");E=t.concat([N,E]);for(var G=w.modulus.byteLength(),K=[1],Q=0;E.length+K.length+2<G;)K.push(255),Q++;K.push(0);for(var re=-1;++re<E.length;)K.push(E[re]);K=t.from(K);var ie=e.mont(w.modulus);I=(I=new e(I).toRed(ie)).redPow(new e(w.publicExponent)),I=t.from(I.fromRed().toArray());var ce=Q<8?1:0;for(G=Math.min(I.length,K.length),I.length!==K.length&&(ce=1),re=-1;++re<G;)ce|=I[re]^K[re];return 0===ce}},8789:ke=>{ke.exports=function(p,t){for(var e=Math.min(p.length,t.length),f=new Buffer(e),C=0;C<e;++C)f[C]=p[C]^t[C];return f}},3172:(ke,J,p)=>{"use strict";var t=p(5343),e=p(8461),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;J.Buffer=d,J.SlowBuffer=function Q(Ee){return+Ee!=Ee&&(Ee=0),d.alloc(+Ee)},J.INSPECT_MAX_BYTES=50;var C=2147483647;function M(Ee){if(Ee>C)throw new RangeError('The value "'+Ee+'" is invalid for option "size"');var ye=new Uint8Array(Ee);return Object.setPrototypeOf(ye,d.prototype),ye}function d(Ee,ye,he){if("number"==typeof Ee){if("string"==typeof ye)throw new TypeError('The "string" argument must be of type string. Received type number');return E(Ee)}return R(Ee,ye,he)}function R(Ee,ye,he){if("string"==typeof Ee)return function L(Ee,ye){if(("string"!=typeof ye||""===ye)&&(ye="utf8"),!d.isEncoding(ye))throw new TypeError("Unknown encoding: "+ye);var he=0|re(Ee,ye),de=M(he),we=de.write(Ee,ye);return we!==he&&(de=de.slice(0,we)),de}(Ee,ye);if(ArrayBuffer.isView(Ee))return function N(Ee){if($(Ee,Uint8Array)){var ye=new Uint8Array(Ee);return w(ye.buffer,ye.byteOffset,ye.byteLength)}return T(Ee)}(Ee);if(null==Ee)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ee);if($(Ee,ArrayBuffer)||Ee&&$(Ee.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&($(Ee,SharedArrayBuffer)||Ee&&$(Ee.buffer,SharedArrayBuffer)))return w(Ee,ye,he);if("number"==typeof Ee)throw new TypeError('The "value" argument must not be of type number. Received type number');var de=Ee.valueOf&&Ee.valueOf();if(null!=de&&de!==Ee)return d.from(de,ye,he);var we=function G(Ee){if(d.isBuffer(Ee)){var ye=0|K(Ee.length),he=M(ye);return 0===he.length||Ee.copy(he,0,0,ye),he}return void 0!==Ee.length?"number"!=typeof Ee.length||Ge(Ee.length)?M(0):T(Ee):"Buffer"===Ee.type&&Array.isArray(Ee.data)?T(Ee.data):void 0}(Ee);if(we)return we;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Ee[Symbol.toPrimitive])return d.from(Ee[Symbol.toPrimitive]("string"),ye,he);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ee)}function h(Ee){if("number"!=typeof Ee)throw new TypeError('"size" argument must be of type number');if(Ee<0)throw new RangeError('The value "'+Ee+'" is invalid for option "size"')}function E(Ee){return h(Ee),M(Ee<0?0:0|K(Ee))}function T(Ee){for(var ye=Ee.length<0?0:0|K(Ee.length),he=M(ye),de=0;de<ye;de+=1)he[de]=255&Ee[de];return he}function w(Ee,ye,he){if(ye<0||Ee.byteLength<ye)throw new RangeError('"offset" is outside of buffer bounds');if(Ee.byteLength<ye+(he||0))throw new RangeError('"length" is outside of buffer bounds');var de;return de=void 0===ye&&void 0===he?new Uint8Array(Ee):void 0===he?new Uint8Array(Ee,ye):new Uint8Array(Ee,ye,he),Object.setPrototypeOf(de,d.prototype),de}function K(Ee){if(Ee>=C)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C.toString(16)+" bytes");return 0|Ee}function re(Ee,ye){if(d.isBuffer(Ee))return Ee.length;if(ArrayBuffer.isView(Ee)||$(Ee,ArrayBuffer))return Ee.byteLength;if("string"!=typeof Ee)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ee);var he=Ee.length,de=arguments.length>2&&!0===arguments[2];if(!de&&0===he)return 0;for(var we=!1;;)switch(ye){case"ascii":case"latin1":case"binary":return he;case"utf8":case"utf-8":return Oe(Ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*he;case"hex":return he>>>1;case"base64":return ve(Ee).length;default:if(we)return de?-1:Oe(Ee).length;ye=(""+ye).toLowerCase(),we=!0}}function ie(Ee,ye,he){var de=!1;if((void 0===ye||ye<0)&&(ye=0),ye>this.length||((void 0===he||he>this.length)&&(he=this.length),he<=0)||(he>>>=0)<=(ye>>>=0))return"";for(Ee||(Ee="utf8");;)switch(Ee){case"hex":return b(this,ye,he);case"utf8":case"utf-8":return u(this,ye,he);case"ascii":return D(this,ye,he);case"latin1":case"binary":return k(this,ye,he);case"base64":return r(this,ye,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,ye,he);default:if(de)throw new TypeError("Unknown encoding: "+Ee);Ee=(Ee+"").toLowerCase(),de=!0}}function ce(Ee,ye,he){var de=Ee[ye];Ee[ye]=Ee[he],Ee[he]=de}function ae(Ee,ye,he,de,we){if(0===Ee.length)return-1;if("string"==typeof he?(de=he,he=0):he>2147483647?he=2147483647:he<-2147483648&&(he=-2147483648),Ge(he=+he)&&(he=we?0:Ee.length-1),he<0&&(he=Ee.length+he),he>=Ee.length){if(we)return-1;he=Ee.length-1}else if(he<0){if(!we)return-1;he=0}if("string"==typeof ye&&(ye=d.from(ye,de)),d.isBuffer(ye))return 0===ye.length?-1:ne(Ee,ye,he,de,we);if("number"==typeof ye)return ye&=255,"function"==typeof Uint8Array.prototype.indexOf?we?Uint8Array.prototype.indexOf.call(Ee,ye,he):Uint8Array.prototype.lastIndexOf.call(Ee,ye,he):ne(Ee,[ye],he,de,we);throw new TypeError("val must be string, number or Buffer")}function ne(Ee,ye,he,de,we){var X,Y=1,j=Ee.length,Ce=ye.length;if(void 0!==de&&("ucs2"===(de=String(de).toLowerCase())||"ucs-2"===de||"utf16le"===de||"utf-16le"===de)){if(Ee.length<2||ye.length<2)return-1;Y=2,j/=2,Ce/=2,he/=2}function Se(Wt,Rt){return 1===Y?Wt[Rt]:Wt.readUInt16BE(Rt*Y)}if(we){var Ye=-1;for(X=he;X<j;X++)if(Se(Ee,X)===Se(ye,-1===Ye?0:X-Ye)){if(-1===Ye&&(Ye=X),X-Ye+1===Ce)return Ye*Y}else-1!==Ye&&(X-=X-Ye),Ye=-1}else for(he+Ce>j&&(he=j-Ce),X=he;X>=0;X--){for(var Le=!0,gt=0;gt<Ce;gt++)if(Se(Ee,X+gt)!==Se(ye,gt)){Le=!1;break}if(Le)return X}return-1}function le(Ee,ye,he,de){he=Number(he)||0;var we=Ee.length-he;de?(de=Number(de))>we&&(de=we):de=we;var Y=ye.length;de>Y/2&&(de=Y/2);for(var j=0;j<de;++j){var Ce=parseInt(ye.substr(2*j,2),16);if(Ge(Ce))return j;Ee[he+j]=Ce}return j}function ee(Ee,ye,he,de){return Ie(Oe(ye,Ee.length-he),Ee,he,de)}function pe(Ee,ye,he,de){return Ie(function De(Ee){for(var ye=[],he=0;he<Ee.length;++he)ye.push(255&Ee.charCodeAt(he));return ye}(ye),Ee,he,de)}function S(Ee,ye,he,de){return Ie(ve(ye),Ee,he,de)}function i(Ee,ye,he,de){return Ie(function ue(Ee,ye){for(var he,de,Y=[],j=0;j<Ee.length&&!((ye-=2)<0);++j)de=(he=Ee.charCodeAt(j))>>8,Y.push(he%256),Y.push(de);return Y}(ye,Ee.length-he),Ee,he,de)}function r(Ee,ye,he){return t.fromByteArray(0===ye&&he===Ee.length?Ee:Ee.slice(ye,he))}function u(Ee,ye,he){he=Math.min(Ee.length,he);for(var de=[],we=ye;we<he;){var Se,X,Ye,Le,Y=Ee[we],j=null,Ce=Y>239?4:Y>223?3:Y>191?2:1;if(we+Ce<=he)switch(Ce){case 1:Y<128&&(j=Y);break;case 2:128==(192&(Se=Ee[we+1]))&&(Le=(31&Y)<<6|63&Se)>127&&(j=Le);break;case 3:X=Ee[we+2],128==(192&(Se=Ee[we+1]))&&128==(192&X)&&(Le=(15&Y)<<12|(63&Se)<<6|63&X)>2047&&(Le<55296||Le>57343)&&(j=Le);break;case 4:X=Ee[we+2],Ye=Ee[we+3],128==(192&(Se=Ee[we+1]))&&128==(192&X)&&128==(192&Ye)&&(Le=(15&Y)<<18|(63&Se)<<12|(63&X)<<6|63&Ye)>65535&&Le<1114112&&(j=Le)}null===j?(j=65533,Ce=1):j>65535&&(de.push((j-=65536)>>>10&1023|55296),j=56320|1023&j),de.push(j),we+=Ce}return function y(Ee){var ye=Ee.length;if(ye<=l)return String.fromCharCode.apply(String,Ee);for(var he="",de=0;de<ye;)he+=String.fromCharCode.apply(String,Ee.slice(de,de+=l));return he}(de)}J.kMaxLength=C,!(d.TYPED_ARRAY_SUPPORT=function a(){try{var Ee=new Uint8Array(1),ye={foo:function(){return 42}};return Object.setPrototypeOf(ye,Uint8Array.prototype),Object.setPrototypeOf(Ee,ye),42===Ee.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),d.poolSize=8192,d.from=function(Ee,ye,he){return R(Ee,ye,he)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array),d.alloc=function(Ee,ye,he){return function I(Ee,ye,he){return h(Ee),Ee<=0?M(Ee):void 0!==ye?"string"==typeof he?M(Ee).fill(ye,he):M(Ee).fill(ye):M(Ee)}(Ee,ye,he)},d.allocUnsafe=function(Ee){return E(Ee)},d.allocUnsafeSlow=function(Ee){return E(Ee)},d.isBuffer=function(ye){return null!=ye&&!0===ye._isBuffer&&ye!==d.prototype},d.compare=function(ye,he){if($(ye,Uint8Array)&&(ye=d.from(ye,ye.offset,ye.byteLength)),$(he,Uint8Array)&&(he=d.from(he,he.offset,he.byteLength)),!d.isBuffer(ye)||!d.isBuffer(he))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ye===he)return 0;for(var de=ye.length,we=he.length,Y=0,j=Math.min(de,we);Y<j;++Y)if(ye[Y]!==he[Y]){de=ye[Y],we=he[Y];break}return de<we?-1:we<de?1:0},d.isEncoding=function(ye){switch(String(ye).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(ye,he){if(!Array.isArray(ye))throw new TypeError('"list" argument must be an Array of Buffers');if(0===ye.length)return d.alloc(0);var de;if(void 0===he)for(he=0,de=0;de<ye.length;++de)he+=ye[de].length;var we=d.allocUnsafe(he),Y=0;for(de=0;de<ye.length;++de){var j=ye[de];if($(j,Uint8Array))Y+j.length>we.length?d.from(j).copy(we,Y):Uint8Array.prototype.set.call(we,j,Y);else{if(!d.isBuffer(j))throw new TypeError('"list" argument must be an Array of Buffers');j.copy(we,Y)}Y+=j.length}return we},d.byteLength=re,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var ye=this.length;if(ye%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var he=0;he<ye;he+=2)ce(this,he,he+1);return this},d.prototype.swap32=function(){var ye=this.length;if(ye%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var he=0;he<ye;he+=4)ce(this,he,he+3),ce(this,he+1,he+2);return this},d.prototype.swap64=function(){var ye=this.length;if(ye%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var he=0;he<ye;he+=8)ce(this,he,he+7),ce(this,he+1,he+6),ce(this,he+2,he+5),ce(this,he+3,he+4);return this},d.prototype.toLocaleString=d.prototype.toString=function(){var ye=this.length;return 0===ye?"":0===arguments.length?u(this,0,ye):ie.apply(this,arguments)},d.prototype.equals=function(ye){if(!d.isBuffer(ye))throw new TypeError("Argument must be a Buffer");return this===ye||0===d.compare(this,ye)},d.prototype.inspect=function(){var ye="",he=J.INSPECT_MAX_BYTES;return ye=this.toString("hex",0,he).replace(/(.{2})/g,"$1 ").trim(),this.length>he&&(ye+=" ... "),"<Buffer "+ye+">"},f&&(d.prototype[f]=d.prototype.inspect),d.prototype.compare=function(ye,he,de,we,Y){if($(ye,Uint8Array)&&(ye=d.from(ye,ye.offset,ye.byteLength)),!d.isBuffer(ye))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ye);if(void 0===he&&(he=0),void 0===de&&(de=ye?ye.length:0),void 0===we&&(we=0),void 0===Y&&(Y=this.length),he<0||de>ye.length||we<0||Y>this.length)throw new RangeError("out of range index");if(we>=Y&&he>=de)return 0;if(we>=Y)return-1;if(he>=de)return 1;if(this===ye)return 0;for(var j=(Y>>>=0)-(we>>>=0),Ce=(de>>>=0)-(he>>>=0),Se=Math.min(j,Ce),X=this.slice(we,Y),Ye=ye.slice(he,de),Le=0;Le<Se;++Le)if(X[Le]!==Ye[Le]){j=X[Le],Ce=Ye[Le];break}return j<Ce?-1:Ce<j?1:0},d.prototype.includes=function(ye,he,de){return-1!==this.indexOf(ye,he,de)},d.prototype.indexOf=function(ye,he,de){return ae(this,ye,he,de,!0)},d.prototype.lastIndexOf=function(ye,he,de){return ae(this,ye,he,de,!1)},d.prototype.write=function(ye,he,de,we){if(void 0===he)we="utf8",de=this.length,he=0;else if(void 0===de&&"string"==typeof he)we=he,de=this.length,he=0;else{if(!isFinite(he))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");he>>>=0,isFinite(de)?(de>>>=0,void 0===we&&(we="utf8")):(we=de,de=void 0)}var Y=this.length-he;if((void 0===de||de>Y)&&(de=Y),ye.length>0&&(de<0||he<0)||he>this.length)throw new RangeError("Attempt to write outside buffer bounds");we||(we="utf8");for(var j=!1;;)switch(we){case"hex":return le(this,ye,he,de);case"utf8":case"utf-8":return ee(this,ye,he,de);case"ascii":case"latin1":case"binary":return pe(this,ye,he,de);case"base64":return S(this,ye,he,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,ye,he,de);default:if(j)throw new TypeError("Unknown encoding: "+we);we=(""+we).toLowerCase(),j=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var l=4096;function D(Ee,ye,he){var de="";he=Math.min(Ee.length,he);for(var we=ye;we<he;++we)de+=String.fromCharCode(127&Ee[we]);return de}function k(Ee,ye,he){var de="";he=Math.min(Ee.length,he);for(var we=ye;we<he;++we)de+=String.fromCharCode(Ee[we]);return de}function b(Ee,ye,he){var de=Ee.length;(!ye||ye<0)&&(ye=0),(!he||he<0||he>de)&&(he=de);for(var we="",Y=ye;Y<he;++Y)we+=ut[Ee[Y]];return we}function n(Ee,ye,he){for(var de=Ee.slice(ye,he),we="",Y=0;Y<de.length-1;Y+=2)we+=String.fromCharCode(de[Y]+256*de[Y+1]);return we}function _(Ee,ye,he){if(Ee%1!=0||Ee<0)throw new RangeError("offset is not uint");if(Ee+ye>he)throw new RangeError("Trying to access beyond buffer length")}function W(Ee,ye,he,de,we,Y){if(!d.isBuffer(Ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(ye>we||ye<Y)throw new RangeError('"value" argument is out of bounds');if(he+de>Ee.length)throw new RangeError("Index out of range")}function P(Ee,ye,he,de,we,Y){if(he+de>Ee.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("Index out of range")}function U(Ee,ye,he,de,we){return ye=+ye,he>>>=0,we||P(Ee,0,he,4),e.write(Ee,ye,he,de,23,4),he+4}function me(Ee,ye,he,de,we){return ye=+ye,he>>>=0,we||P(Ee,0,he,8),e.write(Ee,ye,he,de,52,8),he+8}d.prototype.slice=function(ye,he){var de=this.length;(ye=~~ye)<0?(ye+=de)<0&&(ye=0):ye>de&&(ye=de),(he=void 0===he?de:~~he)<0?(he+=de)<0&&(he=0):he>de&&(he=de),he<ye&&(he=ye);var we=this.subarray(ye,he);return Object.setPrototypeOf(we,d.prototype),we},d.prototype.readUintLE=d.prototype.readUIntLE=function(ye,he,de){ye>>>=0,he>>>=0,de||_(ye,he,this.length);for(var we=this[ye],Y=1,j=0;++j<he&&(Y*=256);)we+=this[ye+j]*Y;return we},d.prototype.readUintBE=d.prototype.readUIntBE=function(ye,he,de){ye>>>=0,he>>>=0,de||_(ye,he,this.length);for(var we=this[ye+--he],Y=1;he>0&&(Y*=256);)we+=this[ye+--he]*Y;return we},d.prototype.readUint8=d.prototype.readUInt8=function(ye,he){return ye>>>=0,he||_(ye,1,this.length),this[ye]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(ye,he){return ye>>>=0,he||_(ye,2,this.length),this[ye]|this[ye+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(ye,he){return ye>>>=0,he||_(ye,2,this.length),this[ye]<<8|this[ye+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(ye,he){return ye>>>=0,he||_(ye,4,this.length),(this[ye]|this[ye+1]<<8|this[ye+2]<<16)+16777216*this[ye+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(ye,he){return ye>>>=0,he||_(ye,4,this.length),16777216*this[ye]+(this[ye+1]<<16|this[ye+2]<<8|this[ye+3])},d.prototype.readIntLE=function(ye,he,de){ye>>>=0,he>>>=0,de||_(ye,he,this.length);for(var we=this[ye],Y=1,j=0;++j<he&&(Y*=256);)we+=this[ye+j]*Y;return we>=(Y*=128)&&(we-=Math.pow(2,8*he)),we},d.prototype.readIntBE=function(ye,he,de){ye>>>=0,he>>>=0,de||_(ye,he,this.length);for(var we=he,Y=1,j=this[ye+--we];we>0&&(Y*=256);)j+=this[ye+--we]*Y;return j>=(Y*=128)&&(j-=Math.pow(2,8*he)),j},d.prototype.readInt8=function(ye,he){return ye>>>=0,he||_(ye,1,this.length),128&this[ye]?-1*(255-this[ye]+1):this[ye]},d.prototype.readInt16LE=function(ye,he){ye>>>=0,he||_(ye,2,this.length);var de=this[ye]|this[ye+1]<<8;return 32768&de?4294901760|de:de},d.prototype.readInt16BE=function(ye,he){ye>>>=0,he||_(ye,2,this.length);var de=this[ye+1]|this[ye]<<8;return 32768&de?4294901760|de:de},d.prototype.readInt32LE=function(ye,he){return ye>>>=0,he||_(ye,4,this.length),this[ye]|this[ye+1]<<8|this[ye+2]<<16|this[ye+3]<<24},d.prototype.readInt32BE=function(ye,he){return ye>>>=0,he||_(ye,4,this.length),this[ye]<<24|this[ye+1]<<16|this[ye+2]<<8|this[ye+3]},d.prototype.readFloatLE=function(ye,he){return ye>>>=0,he||_(ye,4,this.length),e.read(this,ye,!0,23,4)},d.prototype.readFloatBE=function(ye,he){return ye>>>=0,he||_(ye,4,this.length),e.read(this,ye,!1,23,4)},d.prototype.readDoubleLE=function(ye,he){return ye>>>=0,he||_(ye,8,this.length),e.read(this,ye,!0,52,8)},d.prototype.readDoubleBE=function(ye,he){return ye>>>=0,he||_(ye,8,this.length),e.read(this,ye,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(ye,he,de,we){ye=+ye,he>>>=0,de>>>=0,we||W(this,ye,he,de,Math.pow(2,8*de)-1,0);var j=1,Ce=0;for(this[he]=255&ye;++Ce<de&&(j*=256);)this[he+Ce]=ye/j&255;return he+de},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(ye,he,de,we){ye=+ye,he>>>=0,de>>>=0,we||W(this,ye,he,de,Math.pow(2,8*de)-1,0);var j=de-1,Ce=1;for(this[he+j]=255&ye;--j>=0&&(Ce*=256);)this[he+j]=ye/Ce&255;return he+de},d.prototype.writeUint8=d.prototype.writeUInt8=function(ye,he,de){return ye=+ye,he>>>=0,de||W(this,ye,he,1,255,0),this[he]=255&ye,he+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(ye,he,de){return ye=+ye,he>>>=0,de||W(this,ye,he,2,65535,0),this[he]=255&ye,this[he+1]=ye>>>8,he+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(ye,he,de){return ye=+ye,he>>>=0,de||W(this,ye,he,2,65535,0),this[he]=ye>>>8,this[he+1]=255&ye,he+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(ye,he,de){return ye=+ye,he>>>=0,de||W(this,ye,he,4,4294967295,0),this[he+3]=ye>>>24,this[he+2]=ye>>>16,this[he+1]=ye>>>8,this[he]=255&ye,he+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(ye,he,de){return ye=+ye,he>>>=0,de||W(this,ye,he,4,4294967295,0),this[he]=ye>>>24,this[he+1]=ye>>>16,this[he+2]=ye>>>8,this[he+3]=255&ye,he+4},d.prototype.writeIntLE=function(ye,he,de,we){if(ye=+ye,he>>>=0,!we){var Y=Math.pow(2,8*de-1);W(this,ye,he,de,Y-1,-Y)}var j=0,Ce=1,Se=0;for(this[he]=255&ye;++j<de&&(Ce*=256);)ye<0&&0===Se&&0!==this[he+j-1]&&(Se=1),this[he+j]=(ye/Ce>>0)-Se&255;return he+de},d.prototype.writeIntBE=function(ye,he,de,we){if(ye=+ye,he>>>=0,!we){var Y=Math.pow(2,8*de-1);W(this,ye,he,de,Y-1,-Y)}var j=de-1,Ce=1,Se=0;for(this[he+j]=255&ye;--j>=0&&(Ce*=256);)ye<0&&0===Se&&0!==this[he+j+1]&&(Se=1),this[he+j]=(ye/Ce>>0)-Se&255;return he+de},d.prototype.writeInt8=function(ye,he,de){return ye=+ye,he>>>=0,de||W(this,ye,he,1,127,-128),ye<0&&(ye=255+ye+1),this[he]=255&ye,he+1},d.prototype.writeInt16LE=function(ye,he,de){return ye=+ye,he>>>=0,de||W(this,ye,he,2,32767,-32768),this[he]=255&ye,this[he+1]=ye>>>8,he+2},d.prototype.writeInt16BE=function(ye,he,de){return ye=+ye,he>>>=0,de||W(this,ye,he,2,32767,-32768),this[he]=ye>>>8,this[he+1]=255&ye,he+2},d.prototype.writeInt32LE=function(ye,he,de){return ye=+ye,he>>>=0,de||W(this,ye,he,4,2147483647,-2147483648),this[he]=255&ye,this[he+1]=ye>>>8,this[he+2]=ye>>>16,this[he+3]=ye>>>24,he+4},d.prototype.writeInt32BE=function(ye,he,de){return ye=+ye,he>>>=0,de||W(this,ye,he,4,2147483647,-2147483648),ye<0&&(ye=4294967295+ye+1),this[he]=ye>>>24,this[he+1]=ye>>>16,this[he+2]=ye>>>8,this[he+3]=255&ye,he+4},d.prototype.writeFloatLE=function(ye,he,de){return U(this,ye,he,!0,de)},d.prototype.writeFloatBE=function(ye,he,de){return U(this,ye,he,!1,de)},d.prototype.writeDoubleLE=function(ye,he,de){return me(this,ye,he,!0,de)},d.prototype.writeDoubleBE=function(ye,he,de){return me(this,ye,he,!1,de)},d.prototype.copy=function(ye,he,de,we){if(!d.isBuffer(ye))throw new TypeError("argument should be a Buffer");if(de||(de=0),!we&&0!==we&&(we=this.length),he>=ye.length&&(he=ye.length),he||(he=0),we>0&&we<de&&(we=de),we===de||0===ye.length||0===this.length)return 0;if(he<0)throw new RangeError("targetStart out of bounds");if(de<0||de>=this.length)throw new RangeError("Index out of range");if(we<0)throw new RangeError("sourceEnd out of bounds");we>this.length&&(we=this.length),ye.length-he<we-de&&(we=ye.length-he+de);var Y=we-de;return this===ye&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(he,de,we):Uint8Array.prototype.set.call(ye,this.subarray(de,we),he),Y},d.prototype.fill=function(ye,he,de,we){if("string"==typeof ye){if("string"==typeof he?(we=he,he=0,de=this.length):"string"==typeof de&&(we=de,de=this.length),void 0!==we&&"string"!=typeof we)throw new TypeError("encoding must be a string");if("string"==typeof we&&!d.isEncoding(we))throw new TypeError("Unknown encoding: "+we);if(1===ye.length){var Y=ye.charCodeAt(0);("utf8"===we&&Y<128||"latin1"===we)&&(ye=Y)}}else"number"==typeof ye?ye&=255:"boolean"==typeof ye&&(ye=Number(ye));if(he<0||this.length<he||this.length<de)throw new RangeError("Out of range index");if(de<=he)return this;var j;if(he>>>=0,de=void 0===de?this.length:de>>>0,ye||(ye=0),"number"==typeof ye)for(j=he;j<de;++j)this[j]=ye;else{var Ce=d.isBuffer(ye)?ye:d.from(ye,we),Se=Ce.length;if(0===Se)throw new TypeError('The value "'+ye+'" is invalid for argument "value"');for(j=0;j<de-he;++j)this[j+he]=Ce[j%Se]}return this};var nt=/[^+/0-9A-Za-z-_]/g;function Oe(Ee,ye){ye=ye||1/0;for(var he,de=Ee.length,we=null,Y=[],j=0;j<de;++j){if((he=Ee.charCodeAt(j))>55295&&he<57344){if(!we){if(he>56319){(ye-=3)>-1&&Y.push(239,191,189);continue}if(j+1===de){(ye-=3)>-1&&Y.push(239,191,189);continue}we=he;continue}if(he<56320){(ye-=3)>-1&&Y.push(239,191,189),we=he;continue}he=65536+(we-55296<<10|he-56320)}else we&&(ye-=3)>-1&&Y.push(239,191,189);if(we=null,he<128){if((ye-=1)<0)break;Y.push(he)}else if(he<2048){if((ye-=2)<0)break;Y.push(he>>6|192,63&he|128)}else if(he<65536){if((ye-=3)<0)break;Y.push(he>>12|224,he>>6&63|128,63&he|128)}else{if(!(he<1114112))throw new Error("Invalid code point");if((ye-=4)<0)break;Y.push(he>>18|240,he>>12&63|128,he>>6&63|128,63&he|128)}}return Y}function ve(Ee){return t.toByteArray(function Pe(Ee){if((Ee=(Ee=Ee.split("=")[0]).trim().replace(nt,"")).length<2)return"";for(;Ee.length%4!=0;)Ee+="=";return Ee}(Ee))}function Ie(Ee,ye,he,de){for(var we=0;we<de&&!(we+he>=ye.length||we>=Ee.length);++we)ye[we+he]=Ee[we];return we}function $(Ee,ye){return Ee instanceof ye||null!=Ee&&null!=Ee.constructor&&null!=Ee.constructor.name&&Ee.constructor.name===ye.name}function Ge(Ee){return Ee!=Ee}var ut=function(){for(var Ee="0123456789abcdef",ye=new Array(256),he=0;he<16;++he)for(var de=16*he,we=0;we<16;++we)ye[de+we]=Ee[he]+Ee[we];return ye}()},1052:(ke,J,p)=>{var t=p(3502).Buffer,e=p(295).Transform,f=p(3054).s;function a(M){e.call(this),this.hashMode="string"==typeof M,this.hashMode?this[M]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}p(3894)(a,e),a.prototype.update=function(M,d,R){"string"==typeof M&&(M=t.from(M,d));var h=this._update(M);return this.hashMode?this:(R&&(h=this._toString(h,R)),h)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(M,d,R){var h;try{this.hashMode?this._update(M):this.push(this._update(M))}catch(I){h=I}finally{R(h)}},a.prototype._flush=function(M){var d;try{this.push(this.__final())}catch(R){d=R}M(d)},a.prototype._finalOrDigest=function(M){var d=this.__final()||t.alloc(0);return M&&(d=this._toString(d,M,!0)),d},a.prototype._toString=function(M,d,R){if(this._decoder||(this._decoder=new f(d),this._encoding=d),this._encoding!==d)throw new Error("can't switch encodings");var h=this._decoder.write(M);return R&&(h+=this._decoder.end()),h},ke.exports=a},6087:(ke,J,p)=>{"use strict";const t=p(4315),e=p(2872),f=p(717);ke.exports=function C(d,R){switch(e(d)){case"object":return function a(d,R){if("function"==typeof R)return R(d);if(R||f(d)){const h=new d.constructor;for(let I in d)h[I]=C(d[I],R);return h}return d}(d,R);case"array":return function M(d,R){const h=new d.constructor(d.length);for(let I=0;I<d.length;I++)h[I]=C(d[I],R);return h}(d,R);default:return t(d)}}},6128:function(ke){!function(J){"use strict";var p={bytesToHex:function(f){return function t(f){return f.map(function(C){return function e(f,C){return f.length>C?f:Array(C-f.length+1).join("0")+f}(C.toString(16),2)}).join("")}(f)},hexToBytes:function(f){if(f.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===f.indexOf("0x")&&(f=f.slice(2)),f.match(/../g).map(function(C){return parseInt(C,16)})}};ke.exports?ke.exports=p:J.convertHex=p}(this)},5612:function(ke){!function(J){"use strict";var p={bytesToString:function(t){return t.map(function(e){return String.fromCharCode(e)}).join("")},stringToBytes:function(t){return t.split("").map(function(e){return e.charCodeAt(0)})}};p.UTF8={bytesToString:function(t){return decodeURIComponent(escape(p.bytesToString(t)))},stringToBytes:function(t){return p.stringToBytes(unescape(encodeURIComponent(t)))}},ke.exports?ke.exports=p:J.convertString=p}(this)},4746:(ke,J,p)=>{var t=p(7715),e=p(6422);ke.exports=function(d){return new C(d)};var f={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function C(M){this.curveType=f[M],this.curveType||(this.curveType={name:M}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function a(M,d,R){Array.isArray(M)||(M=M.toArray());var h=new Buffer(M);if(R&&h.length<R){var I=new Buffer(R-h.length);I.fill(0),h=Buffer.concat([I,h])}return d?h.toString(d):h}f.p224=f.secp224r1,f.p256=f.secp256r1=f.prime256v1,f.p192=f.secp192r1=f.prime192v1,f.p384=f.secp384r1,f.p521=f.secp521r1,C.prototype.generateKeys=function(M,d){return this.keys=this.curve.genKeyPair(),this.getPublicKey(M,d)},C.prototype.computeSecret=function(M,d,R){return d=d||"utf8",Buffer.isBuffer(M)||(M=new Buffer(M,d)),a(this.curve.keyFromPublic(M).getPublic().mul(this.keys.getPrivate()).getX(),R,this.curveType.byteLength)},C.prototype.getPublicKey=function(M,d){var R=this.keys.getPublic("compressed"===d,!0);return"hybrid"===d&&(R[0]=R[R.length-1]%2?7:6),a(R,M)},C.prototype.getPrivateKey=function(M){return a(this.keys.getPrivate(),M)},C.prototype.setPublicKey=function(M,d){return d=d||"utf8",Buffer.isBuffer(M)||(M=new Buffer(M,d)),this.keys._importPublic(M),this},C.prototype.setPrivateKey=function(M,d){d=d||"utf8",Buffer.isBuffer(M)||(M=new Buffer(M,d));var R=new e(M);return R=R.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(R),this}},6422:function(ke,J,p){!function(t,e){"use strict";function f(S,i){if(!S)throw new Error(i||"Assertion failed")}function C(S,i){S.super_=i;var r=function(){};r.prototype=i.prototype,S.prototype=new r,S.prototype.constructor=S}function a(S,i,r){if(a.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,null!==S&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(S||0,i||10,r||"be"))}var M;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{M=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:p(8623).Buffer}catch{}function d(S,i){var r=S.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(S,i,r){var u=d(S,r);return r-1>=i&&(u|=d(S,r-1)<<4),u}function h(S,i,r,u){for(var l=0,y=Math.min(S.length,r),D=i;D<y;D++){var k=S.charCodeAt(D)-48;l*=u,l+=k>=49?k-49+10:k>=17?k-17+10:k}return l}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===r?this._parseHex(i,l,u):(this._parseBase(i,r,l),"le"===u&&this._initArray(this.toArray(),r,u)))},a.prototype._initNumber=function(i,r,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(f(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),r,u)},a.prototype._initArray=function(i,r,u){if(f("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var y,D,k=0;if("be"===u)for(l=i.length-1,y=0;l>=0;l-=3)this.words[y]|=(D=i[l]|i[l-1]<<8|i[l-2]<<16)<<k&67108863,this.words[y+1]=D>>>26-k&67108863,(k+=24)>=26&&(k-=26,y++);else if("le"===u)for(l=0,y=0;l<i.length;l+=3)this.words[y]|=(D=i[l]|i[l+1]<<8|i[l+2]<<16)<<k&67108863,this.words[y+1]=D>>>26-k&67108863,(k+=24)>=26&&(k-=26,y++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var k,y=0,D=0;if("be"===u)for(l=i.length-1;l>=r;l-=2)k=R(i,r,l)<<y,this.words[D]|=67108863&k,y>=18?(y-=18,this.words[D+=1]|=k>>>26):y+=8;else for(l=(i.length-r)%2==0?r+1:r;l<i.length;l+=2)k=R(i,r,l)<<y,this.words[D]|=67108863&k,y>=18?(y-=18,this.words[D+=1]|=k>>>26):y+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=r)l++;l--,y=y/r|0;for(var D=i.length-u,k=D%l,b=Math.min(D,D-k)+u,n=0,_=u;_<b;_+=l)n=h(i,_,_+l,r),this.imuln(y),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==k){var W=1;for(n=h(i,_,i.length,r),_=0;_<k;_++)W*=r;this.imuln(W),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},a.prototype.copy=function(i){i.words=new Array(this.length);for(var r=0;r<this.length;r++)i.words[r]=this.words[r];i.length=this.length,i.negative=this.negative,i.red=this.red},a.prototype.clone=function(){var i=new a(null);return this.copy(i),i},a.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var I=["","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"],E=[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],L=[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 N(S,i,r){r.negative=i.negative^S.negative;var u=S.length+i.length|0;r.length=u,u=u-1|0;var l=0|S.words[0],y=0|i.words[0],D=l*y,b=D/67108864|0;r.words[0]=67108863&D;for(var n=1;n<u;n++){for(var _=b>>>26,W=67108863&b,P=Math.min(n,i.length-1),U=Math.max(0,n-S.length+1);U<=P;U++)_+=(D=(l=0|S.words[n-U|0])*(y=0|i.words[U])+W)/67108864|0,W=67108863&D;r.words[n]=0|W,b=0|_}return 0!==b?r.words[n]=0|b:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,y=0,D=0;D<this.length;D++){var k=this.words[D],b=(16777215&(k<<l|y)).toString(16);u=0!=(y=k>>>24-l&16777215)||D!==this.length-1?I[6-b.length]+b+u:b+u,(l+=2)>=26&&(l-=26,D--)}for(0!==y&&(u=y.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=E[i],_=L[i];u="";var W=this.clone();for(W.negative=0;!W.isZero();){var P=W.modn(_).toString(i);u=(W=W.idivn(_)).isZero()?P+u:I[n-P.length]+P+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(typeof M<"u"),this.toArrayLike(M,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var l=this.byteLength(),y=u||Math.max(1,l);f(l<=y,"byte array longer than desired length"),f(y>0,"Requested array length <= 0"),this.strip();var b,n,D="le"===r,k=new i(y),_=this.clone();if(D){for(n=0;!_.isZero();n++)b=_.andln(255),_.iushrn(8),k[n]=b;for(;n<y;n++)k[n]=0}else{for(n=0;n<y-l;n++)k[n]=0;for(n=0;!_.isZero();n++)b=_.andln(255),_.iushrn(8),k[y-n-1]=b}return k},a.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;r<this.length;r++){var u=this._zeroBits(this.words[r]);if(i+=u,26!==u)break}return i},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},a.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var r=0;r<i.length;r++)this.words[r]=this.words[r]|i.words[r];return this.strip()},a.prototype.ior=function(i){return f(0==(this.negative|i.negative)),this.iuor(i)},a.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;u<r.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=r.length,this.strip()},a.prototype.iand=function(i){return f(0==(this.negative|i.negative)),this.iuand(i)},a.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=r.words[l]^u.words[l];if(this!==r)for(;l<r.length;l++)this.words[l]=r.words[l];return this.length=r.length,this.strip()},a.prototype.ixor=function(i){return f(0==(this.negative|i.negative)),this.iuxor(i)},a.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var l=0;l<r;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},a.prototype.iadd=function(i){var r,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,r=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,r=this.isub(i),i.negative=1,r._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var y=0,D=0;D<l.length;D++)this.words[D]=67108863&(r=(0|u.words[D])+(0|l.words[D])+y),y=r>>>26;for(;0!==y&&D<u.length;D++)this.words[D]=67108863&(r=(0|u.words[D])+y),y=r>>>26;if(this.length=u.length,0!==y)this.words[this.length]=y,this.length++;else if(u!==this)for(;D<u.length;D++)this.words[D]=u.words[D];return this},a.prototype.add=function(i){var r;return 0!==i.negative&&0===this.negative?(i.negative=0,r=this.sub(i),i.negative^=1,r):0===i.negative&&0!==this.negative?(this.negative=0,r=i.sub(this),this.negative=1,r):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var l,y,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,y=i):(l=i,y=this);for(var D=0,k=0;k<y.length;k++)D=(r=(0|l.words[k])-(0|y.words[k])+D)>>26,this.words[k]=67108863&r;for(;0!==D&&k<l.length;k++)D=(r=(0|l.words[k])+D)>>26,this.words[k]=67108863&r;if(0===D&&k<l.length&&l!==this)for(;k<l.length;k++)this.words[k]=l.words[k];return this.length=Math.max(this.length,k),l!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,r,u){var b,n,_,l=i.words,y=r.words,D=u.words,k=0,W=0|l[0],P=8191&W,U=W>>>13,me=0|l[1],nt=8191&me,Pe=me>>>13,Oe=0|l[2],De=8191&Oe,ue=Oe>>>13,ve=0|l[3],Ie=8191&ve,$=ve>>>13,Ge=0|l[4],ut=8191&Ge,Ee=Ge>>>13,ye=0|l[5],he=8191&ye,de=ye>>>13,we=0|l[6],Y=8191&we,j=we>>>13,Ce=0|l[7],Se=8191&Ce,X=Ce>>>13,Ye=0|l[8],Le=8191&Ye,gt=Ye>>>13,Wt=0|l[9],Rt=8191&Wt,jt=Wt>>>13,hi=0|y[0],yt=8191&hi,Pt=hi>>>13,pt=0|y[1],vt=8191&pt,Ct=pt>>>13,At=0|y[2],dt=8191&At,ze=At>>>13,Ve=0|y[3],Fe=8191&Ve,be=Ve>>>13,xt=0|y[4],ct=8191&xt,Nt=xt>>>13,et=0|y[5],Ae=8191&et,rt=et>>>13,Qe=0|y[6],Ke=8191&Qe,mt=Qe>>>13,$t=0|y[7],Gt=8191&$t,zt=$t>>>13,Et=0|y[8],ht=8191&Et,at=Et>>>13,ei=0|y[9],Ut=8191&ei,qt=ei>>>13;u.negative=i.negative^r.negative,u.length=19;var Pi=(k+(b=Math.imul(P,yt))|0)+((8191&(n=(n=Math.imul(P,Pt))+Math.imul(U,yt)|0))<<13)|0;k=((_=Math.imul(U,Pt))+(n>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,b=Math.imul(nt,yt),n=(n=Math.imul(nt,Pt))+Math.imul(Pe,yt)|0,_=Math.imul(Pe,Pt);var Ii=(k+(b=b+Math.imul(P,vt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ct)|0)+Math.imul(U,vt)|0))<<13)|0;k=((_=_+Math.imul(U,Ct)|0)+(n>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,b=Math.imul(De,yt),n=(n=Math.imul(De,Pt))+Math.imul(ue,yt)|0,_=Math.imul(ue,Pt),b=b+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,Ct)|0)+Math.imul(Pe,vt)|0,_=_+Math.imul(Pe,Ct)|0;var Ei=(k+(b=b+Math.imul(P,dt)|0)|0)+((8191&(n=(n=n+Math.imul(P,ze)|0)+Math.imul(U,dt)|0))<<13)|0;k=((_=_+Math.imul(U,ze)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,b=Math.imul(Ie,yt),n=(n=Math.imul(Ie,Pt))+Math.imul($,yt)|0,_=Math.imul($,Pt),b=b+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,Ct)|0)+Math.imul(ue,vt)|0,_=_+Math.imul(ue,Ct)|0,b=b+Math.imul(nt,dt)|0,n=(n=n+Math.imul(nt,ze)|0)+Math.imul(Pe,dt)|0,_=_+Math.imul(Pe,ze)|0;var Vi=(k+(b=b+Math.imul(P,Fe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(U,Fe)|0))<<13)|0;k=((_=_+Math.imul(U,be)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,b=Math.imul(ut,yt),n=(n=Math.imul(ut,Pt))+Math.imul(Ee,yt)|0,_=Math.imul(Ee,Pt),b=b+Math.imul(Ie,vt)|0,n=(n=n+Math.imul(Ie,Ct)|0)+Math.imul($,vt)|0,_=_+Math.imul($,Ct)|0,b=b+Math.imul(De,dt)|0,n=(n=n+Math.imul(De,ze)|0)+Math.imul(ue,dt)|0,_=_+Math.imul(ue,ze)|0,b=b+Math.imul(nt,Fe)|0,n=(n=n+Math.imul(nt,be)|0)+Math.imul(Pe,Fe)|0,_=_+Math.imul(Pe,be)|0;var Be=(k+(b=b+Math.imul(P,ct)|0)|0)+((8191&(n=(n=n+Math.imul(P,Nt)|0)+Math.imul(U,ct)|0))<<13)|0;k=((_=_+Math.imul(U,Nt)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,b=Math.imul(he,yt),n=(n=Math.imul(he,Pt))+Math.imul(de,yt)|0,_=Math.imul(de,Pt),b=b+Math.imul(ut,vt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Ee,vt)|0,_=_+Math.imul(Ee,Ct)|0,b=b+Math.imul(Ie,dt)|0,n=(n=n+Math.imul(Ie,ze)|0)+Math.imul($,dt)|0,_=_+Math.imul($,ze)|0,b=b+Math.imul(De,Fe)|0,n=(n=n+Math.imul(De,be)|0)+Math.imul(ue,Fe)|0,_=_+Math.imul(ue,be)|0,b=b+Math.imul(nt,ct)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Pe,ct)|0,_=_+Math.imul(Pe,Nt)|0;var kt=(k+(b=b+Math.imul(P,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(P,rt)|0)+Math.imul(U,Ae)|0))<<13)|0;k=((_=_+Math.imul(U,rt)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,b=Math.imul(Y,yt),n=(n=Math.imul(Y,Pt))+Math.imul(j,yt)|0,_=Math.imul(j,Pt),b=b+Math.imul(he,vt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(de,vt)|0,_=_+Math.imul(de,Ct)|0,b=b+Math.imul(ut,dt)|0,n=(n=n+Math.imul(ut,ze)|0)+Math.imul(Ee,dt)|0,_=_+Math.imul(Ee,ze)|0,b=b+Math.imul(Ie,Fe)|0,n=(n=n+Math.imul(Ie,be)|0)+Math.imul($,Fe)|0,_=_+Math.imul($,be)|0,b=b+Math.imul(De,ct)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(ue,ct)|0,_=_+Math.imul(ue,Nt)|0,b=b+Math.imul(nt,Ae)|0,n=(n=n+Math.imul(nt,rt)|0)+Math.imul(Pe,Ae)|0,_=_+Math.imul(Pe,rt)|0;var _e=(k+(b=b+Math.imul(P,Ke)|0)|0)+((8191&(n=(n=n+Math.imul(P,mt)|0)+Math.imul(U,Ke)|0))<<13)|0;k=((_=_+Math.imul(U,mt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,b=Math.imul(Se,yt),n=(n=Math.imul(Se,Pt))+Math.imul(X,yt)|0,_=Math.imul(X,Pt),b=b+Math.imul(Y,vt)|0,n=(n=n+Math.imul(Y,Ct)|0)+Math.imul(j,vt)|0,_=_+Math.imul(j,Ct)|0,b=b+Math.imul(he,dt)|0,n=(n=n+Math.imul(he,ze)|0)+Math.imul(de,dt)|0,_=_+Math.imul(de,ze)|0,b=b+Math.imul(ut,Fe)|0,n=(n=n+Math.imul(ut,be)|0)+Math.imul(Ee,Fe)|0,_=_+Math.imul(Ee,be)|0,b=b+Math.imul(Ie,ct)|0,n=(n=n+Math.imul(Ie,Nt)|0)+Math.imul($,ct)|0,_=_+Math.imul($,Nt)|0,b=b+Math.imul(De,Ae)|0,n=(n=n+Math.imul(De,rt)|0)+Math.imul(ue,Ae)|0,_=_+Math.imul(ue,rt)|0,b=b+Math.imul(nt,Ke)|0,n=(n=n+Math.imul(nt,mt)|0)+Math.imul(Pe,Ke)|0,_=_+Math.imul(Pe,mt)|0;var Je=(k+(b=b+Math.imul(P,Gt)|0)|0)+((8191&(n=(n=n+Math.imul(P,zt)|0)+Math.imul(U,Gt)|0))<<13)|0;k=((_=_+Math.imul(U,zt)|0)+(n>>>13)|0)+(Je>>>26)|0,Je&=67108863,b=Math.imul(Le,yt),n=(n=Math.imul(Le,Pt))+Math.imul(gt,yt)|0,_=Math.imul(gt,Pt),b=b+Math.imul(Se,vt)|0,n=(n=n+Math.imul(Se,Ct)|0)+Math.imul(X,vt)|0,_=_+Math.imul(X,Ct)|0,b=b+Math.imul(Y,dt)|0,n=(n=n+Math.imul(Y,ze)|0)+Math.imul(j,dt)|0,_=_+Math.imul(j,ze)|0,b=b+Math.imul(he,Fe)|0,n=(n=n+Math.imul(he,be)|0)+Math.imul(de,Fe)|0,_=_+Math.imul(de,be)|0,b=b+Math.imul(ut,ct)|0,n=(n=n+Math.imul(ut,Nt)|0)+Math.imul(Ee,ct)|0,_=_+Math.imul(Ee,Nt)|0,b=b+Math.imul(Ie,Ae)|0,n=(n=n+Math.imul(Ie,rt)|0)+Math.imul($,Ae)|0,_=_+Math.imul($,rt)|0,b=b+Math.imul(De,Ke)|0,n=(n=n+Math.imul(De,mt)|0)+Math.imul(ue,Ke)|0,_=_+Math.imul(ue,mt)|0,b=b+Math.imul(nt,Gt)|0,n=(n=n+Math.imul(nt,zt)|0)+Math.imul(Pe,Gt)|0,_=_+Math.imul(Pe,zt)|0;var _t=(k+(b=b+Math.imul(P,ht)|0)|0)+((8191&(n=(n=n+Math.imul(P,at)|0)+Math.imul(U,ht)|0))<<13)|0;k=((_=_+Math.imul(U,at)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,b=Math.imul(Rt,yt),n=(n=Math.imul(Rt,Pt))+Math.imul(jt,yt)|0,_=Math.imul(jt,Pt),b=b+Math.imul(Le,vt)|0,n=(n=n+Math.imul(Le,Ct)|0)+Math.imul(gt,vt)|0,_=_+Math.imul(gt,Ct)|0,b=b+Math.imul(Se,dt)|0,n=(n=n+Math.imul(Se,ze)|0)+Math.imul(X,dt)|0,_=_+Math.imul(X,ze)|0,b=b+Math.imul(Y,Fe)|0,n=(n=n+Math.imul(Y,be)|0)+Math.imul(j,Fe)|0,_=_+Math.imul(j,be)|0,b=b+Math.imul(he,ct)|0,n=(n=n+Math.imul(he,Nt)|0)+Math.imul(de,ct)|0,_=_+Math.imul(de,Nt)|0,b=b+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Ee,Ae)|0,_=_+Math.imul(Ee,rt)|0,b=b+Math.imul(Ie,Ke)|0,n=(n=n+Math.imul(Ie,mt)|0)+Math.imul($,Ke)|0,_=_+Math.imul($,mt)|0,b=b+Math.imul(De,Gt)|0,n=(n=n+Math.imul(De,zt)|0)+Math.imul(ue,Gt)|0,_=_+Math.imul(ue,zt)|0,b=b+Math.imul(nt,ht)|0,n=(n=n+Math.imul(nt,at)|0)+Math.imul(Pe,ht)|0,_=_+Math.imul(Pe,at)|0;var se=(k+(b=b+Math.imul(P,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(P,qt)|0)+Math.imul(U,Ut)|0))<<13)|0;k=((_=_+Math.imul(U,qt)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,b=Math.imul(Rt,vt),n=(n=Math.imul(Rt,Ct))+Math.imul(jt,vt)|0,_=Math.imul(jt,Ct),b=b+Math.imul(Le,dt)|0,n=(n=n+Math.imul(Le,ze)|0)+Math.imul(gt,dt)|0,_=_+Math.imul(gt,ze)|0,b=b+Math.imul(Se,Fe)|0,n=(n=n+Math.imul(Se,be)|0)+Math.imul(X,Fe)|0,_=_+Math.imul(X,be)|0,b=b+Math.imul(Y,ct)|0,n=(n=n+Math.imul(Y,Nt)|0)+Math.imul(j,ct)|0,_=_+Math.imul(j,Nt)|0,b=b+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(de,Ae)|0,_=_+Math.imul(de,rt)|0,b=b+Math.imul(ut,Ke)|0,n=(n=n+Math.imul(ut,mt)|0)+Math.imul(Ee,Ke)|0,_=_+Math.imul(Ee,mt)|0,b=b+Math.imul(Ie,Gt)|0,n=(n=n+Math.imul(Ie,zt)|0)+Math.imul($,Gt)|0,_=_+Math.imul($,zt)|0,b=b+Math.imul(De,ht)|0,n=(n=n+Math.imul(De,at)|0)+Math.imul(ue,ht)|0,_=_+Math.imul(ue,at)|0;var Xe=(k+(b=b+Math.imul(nt,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(nt,qt)|0)+Math.imul(Pe,Ut)|0))<<13)|0;k=((_=_+Math.imul(Pe,qt)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,b=Math.imul(Rt,dt),n=(n=Math.imul(Rt,ze))+Math.imul(jt,dt)|0,_=Math.imul(jt,ze),b=b+Math.imul(Le,Fe)|0,n=(n=n+Math.imul(Le,be)|0)+Math.imul(gt,Fe)|0,_=_+Math.imul(gt,be)|0,b=b+Math.imul(Se,ct)|0,n=(n=n+Math.imul(Se,Nt)|0)+Math.imul(X,ct)|0,_=_+Math.imul(X,Nt)|0,b=b+Math.imul(Y,Ae)|0,n=(n=n+Math.imul(Y,rt)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,rt)|0,b=b+Math.imul(he,Ke)|0,n=(n=n+Math.imul(he,mt)|0)+Math.imul(de,Ke)|0,_=_+Math.imul(de,mt)|0,b=b+Math.imul(ut,Gt)|0,n=(n=n+Math.imul(ut,zt)|0)+Math.imul(Ee,Gt)|0,_=_+Math.imul(Ee,zt)|0,b=b+Math.imul(Ie,ht)|0,n=(n=n+Math.imul(Ie,at)|0)+Math.imul($,ht)|0,_=_+Math.imul($,at)|0;var bt=(k+(b=b+Math.imul(De,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(De,qt)|0)+Math.imul(ue,Ut)|0))<<13)|0;k=((_=_+Math.imul(ue,qt)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,b=Math.imul(Rt,Fe),n=(n=Math.imul(Rt,be))+Math.imul(jt,Fe)|0,_=Math.imul(jt,be),b=b+Math.imul(Le,ct)|0,n=(n=n+Math.imul(Le,Nt)|0)+Math.imul(gt,ct)|0,_=_+Math.imul(gt,Nt)|0,b=b+Math.imul(Se,Ae)|0,n=(n=n+Math.imul(Se,rt)|0)+Math.imul(X,Ae)|0,_=_+Math.imul(X,rt)|0,b=b+Math.imul(Y,Ke)|0,n=(n=n+Math.imul(Y,mt)|0)+Math.imul(j,Ke)|0,_=_+Math.imul(j,mt)|0,b=b+Math.imul(he,Gt)|0,n=(n=n+Math.imul(he,zt)|0)+Math.imul(de,Gt)|0,_=_+Math.imul(de,zt)|0,b=b+Math.imul(ut,ht)|0,n=(n=n+Math.imul(ut,at)|0)+Math.imul(Ee,ht)|0,_=_+Math.imul(Ee,at)|0;var Vt=(k+(b=b+Math.imul(Ie,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Ie,qt)|0)+Math.imul($,Ut)|0))<<13)|0;k=((_=_+Math.imul($,qt)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,b=Math.imul(Rt,ct),n=(n=Math.imul(Rt,Nt))+Math.imul(jt,ct)|0,_=Math.imul(jt,Nt),b=b+Math.imul(Le,Ae)|0,n=(n=n+Math.imul(Le,rt)|0)+Math.imul(gt,Ae)|0,_=_+Math.imul(gt,rt)|0,b=b+Math.imul(Se,Ke)|0,n=(n=n+Math.imul(Se,mt)|0)+Math.imul(X,Ke)|0,_=_+Math.imul(X,mt)|0,b=b+Math.imul(Y,Gt)|0,n=(n=n+Math.imul(Y,zt)|0)+Math.imul(j,Gt)|0,_=_+Math.imul(j,zt)|0,b=b+Math.imul(he,ht)|0,n=(n=n+Math.imul(he,at)|0)+Math.imul(de,ht)|0,_=_+Math.imul(de,at)|0;var mi=(k+(b=b+Math.imul(ut,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(ut,qt)|0)+Math.imul(Ee,Ut)|0))<<13)|0;k=((_=_+Math.imul(Ee,qt)|0)+(n>>>13)|0)+(mi>>>26)|0,mi&=67108863,b=Math.imul(Rt,Ae),n=(n=Math.imul(Rt,rt))+Math.imul(jt,Ae)|0,_=Math.imul(jt,rt),b=b+Math.imul(Le,Ke)|0,n=(n=n+Math.imul(Le,mt)|0)+Math.imul(gt,Ke)|0,_=_+Math.imul(gt,mt)|0,b=b+Math.imul(Se,Gt)|0,n=(n=n+Math.imul(Se,zt)|0)+Math.imul(X,Gt)|0,_=_+Math.imul(X,zt)|0,b=b+Math.imul(Y,ht)|0,n=(n=n+Math.imul(Y,at)|0)+Math.imul(j,ht)|0,_=_+Math.imul(j,at)|0;var Hi=(k+(b=b+Math.imul(he,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(he,qt)|0)+Math.imul(de,Ut)|0))<<13)|0;k=((_=_+Math.imul(de,qt)|0)+(n>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,b=Math.imul(Rt,Ke),n=(n=Math.imul(Rt,mt))+Math.imul(jt,Ke)|0,_=Math.imul(jt,mt),b=b+Math.imul(Le,Gt)|0,n=(n=n+Math.imul(Le,zt)|0)+Math.imul(gt,Gt)|0,_=_+Math.imul(gt,zt)|0,b=b+Math.imul(Se,ht)|0,n=(n=n+Math.imul(Se,at)|0)+Math.imul(X,ht)|0,_=_+Math.imul(X,at)|0;var Ui=(k+(b=b+Math.imul(Y,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Y,qt)|0)+Math.imul(j,Ut)|0))<<13)|0;k=((_=_+Math.imul(j,qt)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,b=Math.imul(Rt,Gt),n=(n=Math.imul(Rt,zt))+Math.imul(jt,Gt)|0,_=Math.imul(jt,zt),b=b+Math.imul(Le,ht)|0,n=(n=n+Math.imul(Le,at)|0)+Math.imul(gt,ht)|0,_=_+Math.imul(gt,at)|0;var Ji=(k+(b=b+Math.imul(Se,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Se,qt)|0)+Math.imul(X,Ut)|0))<<13)|0;k=((_=_+Math.imul(X,qt)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,b=Math.imul(Rt,ht),n=(n=Math.imul(Rt,at))+Math.imul(jt,ht)|0,_=Math.imul(jt,at);var an=(k+(b=b+Math.imul(Le,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Le,qt)|0)+Math.imul(gt,Ut)|0))<<13)|0;k=((_=_+Math.imul(gt,qt)|0)+(n>>>13)|0)+(an>>>26)|0,an&=67108863;var _n=(k+(b=Math.imul(Rt,Ut))|0)+((8191&(n=(n=Math.imul(Rt,qt))+Math.imul(jt,Ut)|0))<<13)|0;return k=((_=Math.imul(jt,qt))+(n>>>13)|0)+(_n>>>26)|0,_n&=67108863,D[0]=Pi,D[1]=Ii,D[2]=Ei,D[3]=Vi,D[4]=Be,D[5]=kt,D[6]=_e,D[7]=Je,D[8]=_t,D[9]=se,D[10]=Xe,D[11]=bt,D[12]=Vt,D[13]=mi,D[14]=Hi,D[15]=Ui,D[16]=Ji,D[17]=an,D[18]=_n,0!==k&&(D[19]=k,u.length++),u};function K(S,i,r){return(new Q).mulp(S,i,r)}function Q(S,i){this.x=S,this.y=i}Math.imul||(w=N),a.prototype.mulTo=function(i,r){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?w(this,i,r):l<63?N(this,i,r):l<1024?function G(S,i,r){r.negative=i.negative^S.negative,r.length=S.length+i.length;for(var u=0,l=0,y=0;y<r.length-1;y++){var D=l;l=0;for(var k=67108863&u,b=Math.min(y,i.length-1),n=Math.max(0,y-S.length+1);n<=b;n++){var U=(0|S.words[y-n])*(0|i.words[n]),me=67108863&U;k=67108863&(me=me+k|0),l+=(D=(D=D+(U/67108864|0)|0)+(me>>>26)|0)>>>26,D&=67108863}r.words[y]=k,u=D,D=l}return 0!==u?r.words[y]=u:r.length--,r.strip()}(this,i,r):K(this,i,r),u},Q.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,l=0;l<i;l++)r[l]=this.revBin(l,u,i);return r},Q.prototype.revBin=function(i,r,u){if(0===i||i===u-1)return i;for(var l=0,y=0;y<r;y++)l|=(1&i)<<r-y-1,i>>=1;return l},Q.prototype.permute=function(i,r,u,l,y,D){for(var k=0;k<D;k++)l[k]=r[i[k]],y[k]=u[i[k]]},Q.prototype.transform=function(i,r,u,l,y,D){this.permute(D,i,r,u,l,y);for(var k=1;k<y;k<<=1)for(var b=k<<1,n=Math.cos(2*Math.PI/b),_=Math.sin(2*Math.PI/b),W=0;W<y;W+=b)for(var P=n,U=_,me=0;me<k;me++){var nt=u[W+me],Pe=l[W+me],Oe=u[W+me+k],De=l[W+me+k],ue=P*Oe-U*De;De=P*De+U*Oe,u[W+me]=nt+(Oe=ue),l[W+me]=Pe+De,u[W+me+k]=nt-Oe,l[W+me+k]=Pe-De,me!==b&&(ue=n*P-_*U,U=n*U+_*P,P=ue)}},Q.prototype.guessLen13b=function(i,r){var u=1|Math.max(r,i),l=1&u,y=0;for(u=u/2|0;u;u>>>=1)y++;return 1<<y+1+l},Q.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var l=0;l<u/2;l++){var y=i[l];i[l]=i[u-l-1],i[u-l-1]=y,y=r[l],r[l]=-r[u-l-1],r[u-l-1]=-y}},Q.prototype.normalize13b=function(i,r){for(var u=0,l=0;l<r/2;l++){var y=8192*Math.round(i[2*l+1]/r)+Math.round(i[2*l]/r)+u;i[l]=67108863&y,u=y<67108864?0:y/67108864|0}return i},Q.prototype.convert13b=function(i,r,u,l){for(var y=0,D=0;D<r;D++)u[2*D]=8191&(y+=0|i[D]),u[2*D+1]=8191&(y>>>=13),y>>>=13;for(D=2*r;D<l;++D)u[D]=0;f(0===y),f(0==(-8192&y))},Q.prototype.stub=function(i){for(var r=new Array(i),u=0;u<i;u++)r[u]=0;return r},Q.prototype.mulp=function(i,r,u){var l=2*this.guessLen13b(i.length,r.length),y=this.makeRBT(l),D=this.stub(l),k=new Array(l),b=new Array(l),n=new Array(l),_=new Array(l),W=new Array(l),P=new Array(l),U=u.words;U.length=l,this.convert13b(i.words,i.length,k,l),this.convert13b(r.words,r.length,_,l),this.transform(k,D,b,n,l,y),this.transform(_,D,W,P,l,y);for(var me=0;me<l;me++){var nt=b[me]*W[me]-n[me]*P[me];n[me]=b[me]*P[me]+n[me]*W[me],b[me]=nt}return this.conjugate(b,n,l),this.transform(b,n,U,D,l,y),this.conjugate(U,D,l),this.normalize13b(U,l),u.negative=i.negative^r.negative,u.length=i.length+r.length,u.strip()},a.prototype.mul=function(i){var r=new a(null);return r.words=new Array(this.length+i.length),this.mulTo(i,r)},a.prototype.mulf=function(i){var r=new a(null);return r.words=new Array(this.length+i.length),K(this,i,r)},a.prototype.imul=function(i){return this.clone().mulTo(i,this)},a.prototype.imuln=function(i){f("number"==typeof i),f(i<67108864);for(var r=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,y=(67108863&l)+(67108863&r);r>>=26,r+=l/67108864|0,r+=y>>>26,this.words[u]=67108863&y}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function T(S){for(var i=new Array(S.bitLength()),r=0;r<i.length;r++){var l=r%26;i[r]=(S.words[r/26|0]&1<<l)>>>l}return i}(i);if(0===r.length)return new a(1);for(var u=this,l=0;l<r.length&&0===r[l];l++,u=u.sqr());if(++l<r.length)for(var y=u.sqr();l<r.length;l++,y=y.sqr())0!==r[l]&&(u=u.mul(y));return u},a.prototype.iushln=function(i){f("number"==typeof i&&i>=0);var y,r=i%26,u=(i-r)/26,l=67108863>>>26-r<<26-r;if(0!==r){var D=0;for(y=0;y<this.length;y++){var k=this.words[y]&l;this.words[y]=(0|this.words[y])-k<<r|D,D=k>>>26-r}D&&(this.words[y]=D,this.length++)}if(0!==u){for(y=this.length-1;y>=0;y--)this.words[y+u]=this.words[y];for(y=0;y<u;y++)this.words[y]=0;this.length+=u}return this.strip()},a.prototype.ishln=function(i){return f(0===this.negative),this.iushln(i)},a.prototype.iushrn=function(i,r,u){var l;f("number"==typeof i&&i>=0),l=r?(r-r%26)/26:0;var y=i%26,D=Math.min((i-y)/26,this.length),k=67108863^67108863>>>y<<y,b=u;if(l-=D,l=Math.max(0,l),b){for(var n=0;n<D;n++)b.words[n]=this.words[n];b.length=D}if(0!==D)if(this.length>D)for(this.length-=D,n=0;n<this.length;n++)this.words[n]=this.words[n+D];else this.words[0]=0,this.length=1;var _=0;for(n=this.length-1;n>=0&&(0!==_||n>=l);n--){var W=0|this.words[n];this.words[n]=_<<26-y|W>>>y,_=W&k}return b&&0!==_&&(b.words[b.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<<r))},a.prototype.imaskn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},a.prototype.maskn=function(i){return this.clone().imaskn(i)},a.prototype.iaddn=function(i){return f("number"==typeof i),f(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},a.prototype._iaddn=function(i){this.words[0]+=i;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(i){return this.clone().iaddn(i)},a.prototype.subn=function(i){return this.clone().isubn(i)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(i,r,u){var y;this._expand(i.length+u);var D,k=0;for(y=0;y<i.length;y++){D=(0|this.words[y+u])+k;var b=(0|i.words[y])*r;k=((D-=67108863&b)>>26)-(b/67108864|0),this.words[y+u]=67108863&D}for(;y<this.length-u;y++)k=(D=(0|this.words[y+u])+k)>>26,this.words[y+u]=67108863&D;if(0===k)return this.strip();for(f(-1===k),k=0,y=0;y<this.length;y++)k=(D=-(0|this.words[y])+k)>>26,this.words[y]=67108863&D;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,l=this.clone(),y=i,D=0|y.words[y.length-1];0!=(u=26-this._countBits(D))&&(y=y.ushln(u),l.iushln(u),D=0|y.words[y.length-1]);var n,b=l.length-y.length;if("mod"!==r){(n=new a(null)).length=b+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var W=l.clone()._ishlnsubmul(y,1,b);0===W.negative&&(l=W,n&&(n.words[b]=1));for(var P=b-1;P>=0;P--){var U=67108864*(0|l.words[y.length+P])+(0|l.words[y.length+P-1]);for(U=Math.min(U/D|0,67108863),l._ishlnsubmul(y,U,P);0!==l.negative;)U--,l.negative=0,l._ishlnsubmul(y,1,P),l.isZero()||(l.negative^=1);n&&(n.words[P]=U)}return n&&n.strip(),l.strip(),"div"!==r&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,r),"mod"!==r&&(l=D.div.neg()),"div"!==r&&(y=D.mod.neg(),u&&0!==y.negative&&y.iadd(i)),{div:l,mod:y}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),r),"mod"!==r&&(l=D.div.neg()),{div:l,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),r),"div"!==r&&(y=D.mod.neg(),u&&0!==y.negative&&y.isub(i)),{div:D.div,mod:y}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var l,y,D},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,l=i.ushrn(1),y=i.andln(1),D=u.cmp(l);return D<0||1===y&&0===D?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(r*u+(0|this.words[l]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*r;this.words[u]=l/i|0,r=l%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var l=new a(1),y=new a(0),D=new a(0),k=new a(1),b=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++b;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var W=0,P=1;0==(r.words[0]&P)&&W<26;++W,P<<=1);if(W>0)for(r.iushrn(W);W-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(n),y.isub(_)),l.iushrn(1),y.iushrn(1);for(var U=0,me=1;0==(u.words[0]&me)&&U<26;++U,me<<=1);if(U>0)for(u.iushrn(U);U-- >0;)(D.isOdd()||k.isOdd())&&(D.iadd(n),k.isub(_)),D.iushrn(1),k.iushrn(1);r.cmp(u)>=0?(r.isub(u),l.isub(D),y.isub(k)):(u.isub(r),D.isub(l),k.isub(y))}return{a:D,b:k,gcd:u.iushln(b)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var W,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var l=new a(1),y=new a(0),D=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var k=0,b=1;0==(r.words[0]&b)&&k<26;++k,b<<=1);if(k>0)for(r.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(D),l.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)y.isOdd()&&y.iadd(D),y.iushrn(1);r.cmp(u)>=0?(r.isub(u),l.isub(y)):(u.isub(r),y.isub(l))}return(W=0===r.cmpn(1)?l:y).cmpn(0)<0&&W.iadd(i),W},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var l=0;r.isEven()&&u.isEven();l++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var y=r.cmp(u);if(y<0){var D=r;r=u,u=D}else if(0===y||0===u.cmpn(1))break;r.isub(u)}return u.iushln(l)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,l=1<<r;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var y=l,D=u;0!==y&&D<this.length;D++){var k=0|this.words[D];y=(k+=y)>>>26,this.words[D]=k&=67108863}return 0!==y&&(this.words[D]=y,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},a.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var r=this.ucmp(i);return 0!==this.negative?0|-r:r},a.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var r=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],y=0|i.words[u];if(l!==y){l<y?r=-1:l>y&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new ee(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var re={k256:null,p224:null,p192:null,p25519:null};function ie(S,i){this.name=S,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ce(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ae(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ne(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(S){if("string"==typeof S){var i=a._prime(S);this.m=i.p,this.prime=i}else f(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function pe(S){ee.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ie.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:r.ucmp(this.p);return 0===l?(r.words[0]=0,r.length=1):l>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ie.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ie.prototype.imulK=function(i){return i.imul(this.k)},C(ce,ie),ce.prototype.split=function(i,r){for(var u=4194303,l=Math.min(i.length,9),y=0;y<l;y++)r.words[y]=i.words[y];if(r.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var D=i.words[9];for(r.words[r.length++]=D&u,y=10;y<i.length;y++){var k=0|i.words[y];i.words[y-10]=(k&u)<<4|D>>>22,D=k}i.words[y-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ce.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(r+=977*l),r=64*l+(r/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ae,ie),C(ne,ie),C(le,ie),le.prototype.imulK=function(i){for(var r=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+r,y=67108863&l;l>>>=26,i.words[u]=y,r=l}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(re[i])return re[i];var r;if("k256"===i)r=new ce;else if("p224"===i)r=new ae;else if("p192"===i)r=new ne;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new le}return re[i]=r,r},ee.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},ee.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},ee.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ee.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ee.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},ee.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},ee.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},ee.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},ee.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},ee.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},ee.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},ee.prototype.isqr=function(i){return this.imul(i,i.clone())},ee.prototype.sqr=function(i){return this.mul(i,i)},ee.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),y=0;!l.isZero()&&0===l.andln(1);)y++,l.iushrn(1);f(!l.isZero());var D=new a(1).toRed(this),k=D.redNeg(),b=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,b).cmp(k);)n.redIAdd(k);for(var _=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),P=this.pow(i,l),U=y;0!==P.cmp(D);){for(var me=P,nt=0;0!==me.cmp(D);nt++)me=me.redSqr();f(nt<U);var Pe=this.pow(_,new a(1).iushln(U-nt-1));W=W.redMul(Pe),_=Pe.redSqr(),P=P.redMul(_),U=nt}return W},ee.prototype.invm=function(i){var r=i._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},ee.prototype.pow=function(i,r){if(r.isZero())return new a(1).toRed(this);if(0===r.cmpn(1))return i.clone();var l=new Array(16);l[0]=new a(1).toRed(this),l[1]=i;for(var y=2;y<l.length;y++)l[y]=this.mul(l[y-1],i);var D=l[0],k=0,b=0,n=r.bitLength()%26;for(0===n&&(n=26),y=r.length-1;y>=0;y--){for(var _=r.words[y],W=n-1;W>=0;W--){var P=_>>W&1;D!==l[0]&&(D=this.sqr(D)),0!==P||0!==k?(k<<=1,k|=P,(4==++b||0===y&&0===W)&&(D=this.mul(D,l[k]),b=0,k=0)):b=0}n=26}return D},ee.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},ee.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new pe(i)},C(pe,ee),pe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},pe.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},pe.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),D=y;return y.cmp(this.m)>=0?D=y.isub(this.m):y.cmpn(0)<0&&(D=y.iadd(this.m)),D._forceRed(this)},pe.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),D=y;return y.cmp(this.m)>=0?D=y.isub(this.m):y.cmpn(0)<0&&(D=y.iadd(this.m)),D._forceRed(this)},pe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=p.nmd(ke),this)},6386:(ke,J,p)=>{"use strict";var t=p(3894),e=p(8095),f=p(5634),C=p(5244),a=p(1052);function M(d){a.call(this,"digest"),this._hash=d}t(M,a),M.prototype._update=function(d){this._hash.update(d)},M.prototype._final=function(){return this._hash.digest()},ke.exports=function(R){return"md5"===(R=R.toLowerCase())?new e:"rmd160"===R||"ripemd160"===R?new f:new M(C(R))}},5640:(ke,J,p)=>{var t=p(8095);ke.exports=function(e){return(new t).update(e).digest()}},4529:(ke,J,p)=>{"use strict";var t=p(3894),e=p(7309),f=p(1052),C=p(3502).Buffer,a=p(5640),M=p(5634),d=p(5244),R=C.alloc(128);function h(I,E){f.call(this,"digest"),"string"==typeof E&&(E=C.from(E));var L="sha512"===I||"sha384"===I?128:64;this._alg=I,this._key=E,E.length>L?E=("rmd160"===I?new M:d(I)).update(E).digest():E.length<L&&(E=C.concat([E,R],L));for(var N=this._ipad=C.allocUnsafe(L),w=this._opad=C.allocUnsafe(L),G=0;G<L;G++)N[G]=54^E[G],w[G]=92^E[G];this._hash="rmd160"===I?new M:d(I),this._hash.update(N)}t(h,f),h.prototype._update=function(I){this._hash.update(I)},h.prototype._final=function(){var I=this._hash.digest();return("rmd160"===this._alg?new M:d(this._alg)).update(this._opad).update(I).digest()},ke.exports=function(E,L){return"rmd160"===(E=E.toLowerCase())||"ripemd160"===E?new h("rmd160",L):"md5"===E?new e(a,L):new h(E,L)}},7309:(ke,J,p)=>{"use strict";var t=p(3894),e=p(3502).Buffer,f=p(1052),C=e.alloc(128),a=64;function M(d,R){f.call(this,"digest"),"string"==typeof R&&(R=e.from(R)),this._alg=d,this._key=R,R.length>a?R=d(R):R.length<a&&(R=e.concat([R,C],a));for(var h=this._ipad=e.allocUnsafe(a),I=this._opad=e.allocUnsafe(a),E=0;E<a;E++)h[E]=54^R[E],I[E]=92^R[E];this._hash=[h]}t(M,f),M.prototype._update=function(d){this._hash.push(d)},M.prototype._final=function(){var d=this._alg(e.concat(this._hash));return this._alg(e.concat([this._opad,d]))},ke.exports=M},1348:(ke,J,p)=>{"use strict";J.randomBytes=J.rng=J.pseudoRandomBytes=J.prng=p(3753),J.createHash=J.Hash=p(6386),J.createHmac=J.Hmac=p(4529);var t=p(7793),e=Object.keys(t),f=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e);J.getHashes=function(){return f};var C=p(9357);J.pbkdf2=C.pbkdf2,J.pbkdf2Sync=C.pbkdf2Sync;var a=p(5255);J.Cipher=a.Cipher,J.createCipher=a.createCipher,J.Cipheriv=a.Cipheriv,J.createCipheriv=a.createCipheriv,J.Decipher=a.Decipher,J.createDecipher=a.createDecipher,J.Decipheriv=a.Decipheriv,J.createDecipheriv=a.createDecipheriv,J.getCiphers=a.getCiphers,J.listCiphers=a.listCiphers;var M=p(8829);J.DiffieHellmanGroup=M.DiffieHellmanGroup,J.createDiffieHellmanGroup=M.createDiffieHellmanGroup,J.getDiffieHellman=M.getDiffieHellman,J.createDiffieHellman=M.createDiffieHellman,J.DiffieHellman=M.DiffieHellman;var d=p(3923);J.createSign=d.createSign,J.Sign=d.Sign,J.createVerify=d.createVerify,J.Verify=d.Verify,J.createECDH=p(4746);var R=p(3701);J.publicEncrypt=R.publicEncrypt,J.privateEncrypt=R.privateEncrypt,J.publicDecrypt=R.publicDecrypt,J.privateDecrypt=R.privateDecrypt;var h=p(4275);J.randomFill=h.randomFill,J.randomFillSync=h.randomFillSync,J.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},J.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},3684:(ke,J,p)=>{"use strict";J.utils=p(7451),J.Cipher=p(8170),J.DES=p(4631),J.CBC=p(9454),J.EDE=p(1862)},9454:(ke,J,p)=>{"use strict";var t=p(2391),e=p(3894),f={};function C(M){t.equal(M.length,8,"Invalid IV length"),this.iv=new Array(8);for(var d=0;d<this.iv.length;d++)this.iv[d]=M[d]}J.instantiate=function a(M){function d(E){M.call(this,E),this._cbcInit()}e(d,M);for(var R=Object.keys(f),h=0;h<R.length;h++){var I=R[h];d.prototype[I]=f[I]}return d.create=function(L){return new d(L)},d},f._cbcInit=function(){var d=new C(this.options.iv);this._cbcState=d},f._update=function(d,R,h,I){var L=this.constructor.super_.prototype,T=this._cbcState.iv;if("encrypt"===this.type){for(var N=0;N<this.blockSize;N++)T[N]^=d[R+N];for(L._update.call(this,T,0,h,I),N=0;N<this.blockSize;N++)T[N]=h[I+N]}else{for(L._update.call(this,d,R,h,I),N=0;N<this.blockSize;N++)h[I+N]^=T[N];for(N=0;N<this.blockSize;N++)T[N]=d[R+N]}}},8170:(ke,J,p)=>{"use strict";var t=p(2391);function e(f){this.options=f,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}ke.exports=e,e.prototype._init=function(){},e.prototype.update=function(C){return 0===C.length?[]:"decrypt"===this.type?this._updateDecrypt(C):this._updateEncrypt(C)},e.prototype._buffer=function(C,a){for(var M=Math.min(this.buffer.length-this.bufferOff,C.length-a),d=0;d<M;d++)this.buffer[this.bufferOff+d]=C[a+d];return this.bufferOff+=M,M},e.prototype._flushBuffer=function(C,a){return this._update(this.buffer,0,C,a),this.bufferOff=0,this.blockSize},e.prototype._updateEncrypt=function(C){var a=0,M=0,R=new Array(((this.bufferOff+C.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(a+=this._buffer(C,a),this.bufferOff===this.buffer.length&&(M+=this._flushBuffer(R,M)));for(var h=C.length-(C.length-a)%this.blockSize;a<h;a+=this.blockSize)this._update(C,a,R,M),M+=this.blockSize;for(;a<C.length;a++,this.bufferOff++)this.buffer[this.bufferOff]=C[a];return R},e.prototype._updateDecrypt=function(C){for(var a=0,M=0,d=Math.ceil((this.bufferOff+C.length)/this.blockSize)-1,R=new Array(d*this.blockSize);d>0;d--)a+=this._buffer(C,a),M+=this._flushBuffer(R,M);return a+=this._buffer(C,a),R},e.prototype.final=function(C){var a,M;return C&&(a=this.update(C)),M="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),a?a.concat(M):M},e.prototype._pad=function(C,a){if(0===a)return!1;for(;a<C.length;)C[a++]=0;return!0},e.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var C=new Array(this.blockSize);return this._update(this.buffer,0,C,0),C},e.prototype._unpad=function(C){return C},e.prototype._finalDecrypt=function(){t.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var C=new Array(this.blockSize);return this._flushBuffer(C,0),this._unpad(C)}},4631:(ke,J,p)=>{"use strict";var t=p(2391),e=p(3894),f=p(7451),C=p(8170);function a(){this.tmp=new Array(2),this.keys=null}function M(R){C.call(this,R);var h=new a;this._desState=h,this.deriveKeys(h,R.key)}e(M,C),ke.exports=M,M.create=function(h){return new M(h)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];M.prototype.deriveKeys=function(h,I){h.keys=new Array(32),t.equal(I.length,this.blockSize,"Invalid key length");var E=f.readUInt32BE(I,0),L=f.readUInt32BE(I,4);f.pc1(E,L,h.tmp,0),E=h.tmp[0],L=h.tmp[1];for(var T=0;T<h.keys.length;T+=2){var N=d[T>>>1];E=f.r28shl(E,N),L=f.r28shl(L,N),f.pc2(E,L,h.keys,T)}},M.prototype._update=function(h,I,E,L){var T=this._desState,N=f.readUInt32BE(h,I),w=f.readUInt32BE(h,I+4);f.ip(N,w,T.tmp,0),N=T.tmp[0],w=T.tmp[1],"encrypt"===this.type?this._encrypt(T,N,w,T.tmp,0):this._decrypt(T,N,w,T.tmp,0),w=T.tmp[1],f.writeUInt32BE(E,N=T.tmp[0],L),f.writeUInt32BE(E,w,L+4)},M.prototype._pad=function(h,I){for(var E=h.length-I,L=I;L<h.length;L++)h[L]=E;return!0},M.prototype._unpad=function(h){for(var I=h[h.length-1],E=h.length-I;E<h.length;E++)t.equal(h[E],I);return h.slice(0,h.length-I)},M.prototype._encrypt=function(h,I,E,L,T){for(var N=I,w=E,G=0;G<h.keys.length;G+=2){var K=h.keys[G],Q=h.keys[G+1];f.expand(w,h.tmp,0);var re=f.substitute(K^=h.tmp[0],Q^=h.tmp[1]),ce=w;w=(N^f.permute(re))>>>0,N=ce}f.rip(w,N,L,T)},M.prototype._decrypt=function(h,I,E,L,T){for(var N=E,w=I,G=h.keys.length-2;G>=0;G-=2){var K=h.keys[G],Q=h.keys[G+1];f.expand(N,h.tmp,0);var re=f.substitute(K^=h.tmp[0],Q^=h.tmp[1]),ce=N;N=(w^f.permute(re))>>>0,w=ce}f.rip(N,w,L,T)}},1862:(ke,J,p)=>{"use strict";var t=p(2391),e=p(3894),f=p(8170),C=p(4631);function a(d,R){t.equal(R.length,24,"Invalid key length");var h=R.slice(0,8),I=R.slice(8,16),E=R.slice(16,24);this.ciphers="encrypt"===d?[C.create({type:"encrypt",key:h}),C.create({type:"decrypt",key:I}),C.create({type:"encrypt",key:E})]:[C.create({type:"decrypt",key:E}),C.create({type:"encrypt",key:I}),C.create({type:"decrypt",key:h})]}function M(d){f.call(this,d);var R=new a(this.type,this.options.key);this._edeState=R}e(M,f),ke.exports=M,M.create=function(R){return new M(R)},M.prototype._update=function(R,h,I,E){var L=this._edeState;L.ciphers[0]._update(R,h,I,E),L.ciphers[1]._update(I,E,I,E),L.ciphers[2]._update(I,E,I,E)},M.prototype._pad=C.prototype._pad,M.prototype._unpad=C.prototype._unpad},7451:(ke,J)=>{"use strict";J.readUInt32BE=function(C,a){return(C[0+a]<<24|C[1+a]<<16|C[2+a]<<8|C[3+a])>>>0},J.writeUInt32BE=function(C,a,M){C[0+M]=a>>>24,C[1+M]=a>>>16&255,C[2+M]=a>>>8&255,C[3+M]=255&a},J.ip=function(C,a,M,d){for(var R=0,h=0,I=6;I>=0;I-=2){for(var E=0;E<=24;E+=8)R<<=1,R|=a>>>E+I&1;for(E=0;E<=24;E+=8)R<<=1,R|=C>>>E+I&1}for(I=6;I>=0;I-=2){for(E=1;E<=25;E+=8)h<<=1,h|=a>>>E+I&1;for(E=1;E<=25;E+=8)h<<=1,h|=C>>>E+I&1}M[d+0]=R>>>0,M[d+1]=h>>>0},J.rip=function(C,a,M,d){for(var R=0,h=0,I=0;I<4;I++)for(var E=24;E>=0;E-=8)R<<=1,R|=a>>>E+I&1,R<<=1,R|=C>>>E+I&1;for(I=4;I<8;I++)for(E=24;E>=0;E-=8)h<<=1,h|=a>>>E+I&1,h<<=1,h|=C>>>E+I&1;M[d+0]=R>>>0,M[d+1]=h>>>0},J.pc1=function(C,a,M,d){for(var R=0,h=0,I=7;I>=5;I--){for(var E=0;E<=24;E+=8)R<<=1,R|=a>>E+I&1;for(E=0;E<=24;E+=8)R<<=1,R|=C>>E+I&1}for(E=0;E<=24;E+=8)R<<=1,R|=a>>E+I&1;for(I=1;I<=3;I++){for(E=0;E<=24;E+=8)h<<=1,h|=a>>E+I&1;for(E=0;E<=24;E+=8)h<<=1,h|=C>>E+I&1}for(E=0;E<=24;E+=8)h<<=1,h|=C>>E+I&1;M[d+0]=R>>>0,M[d+1]=h>>>0},J.r28shl=function(C,a){return C<<a&268435455|C>>>28-a};var p=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];J.pc2=function(C,a,M,d){for(var R=0,h=0,I=p.length>>>1,E=0;E<I;E++)R<<=1,R|=C>>>p[E]&1;for(E=I;E<p.length;E++)h<<=1,h|=a>>>p[E]&1;M[d+0]=R>>>0,M[d+1]=h>>>0},J.expand=function(C,a,M){var d=0,R=0;d=(1&C)<<5|C>>>27;for(var h=23;h>=15;h-=4)d<<=6,d|=C>>>h&63;for(h=11;h>=3;h-=4)R|=C>>>h&63,R<<=6;R|=(31&C)<<1|C>>>31,a[M+0]=d>>>0,a[M+1]=R>>>0};var t=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];J.substitute=function(C,a){for(var M=0,d=0;d<4;d++)M<<=4,M|=t[64*d+(C>>>18-6*d&63)];for(d=0;d<4;d++)M<<=4,M|=t[256+64*d+(a>>>18-6*d&63)];return M>>>0};var e=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];J.permute=function(C){for(var a=0,M=0;M<e.length;M++)a<<=1,a|=C>>>e[M]&1;return a>>>0},J.padSplit=function(C,a,M){for(var d=C.toString(2);d.length<a;)d="0"+d;for(var R=[],h=0;h<a;h+=M)R.push(d.slice(h,h+M));return R.join(" ")}},8829:(ke,J,p)=>{var t=p(5563),e=p(9799),f=p(1419),a={binary:!0,hex:!0,base64:!0};J.DiffieHellmanGroup=J.createDiffieHellmanGroup=J.getDiffieHellman=function C(d){var R=new Buffer(e[d].prime,"hex"),h=new Buffer(e[d].gen,"hex");return new f(R,h)},J.createDiffieHellman=J.DiffieHellman=function M(d,R,h,I){return Buffer.isBuffer(R)||void 0===a[R]?M(d,"binary",R,h):(R=R||"binary",I=I||"binary",h=h||new Buffer([2]),Buffer.isBuffer(h)||(h=new Buffer(h,I)),"number"==typeof d?new f(t(d,h),h,!0):(Buffer.isBuffer(d)||(d=new Buffer(d,R)),new f(d,h,!0)))}},1419:(ke,J,p)=>{var t=p(8313),f=new(p(7079)),C=new t(24),a=new t(11),M=new t(10),d=new t(3),R=new t(7),h=p(5563),I=p(3753);function E(K,Q){return Q=Q||"utf8",Buffer.isBuffer(K)||(K=new Buffer(K,Q)),this._pub=new t(K),this}function L(K,Q){return Q=Q||"utf8",Buffer.isBuffer(K)||(K=new Buffer(K,Q)),this._priv=new t(K),this}ke.exports=w;var T={};function w(K,Q,re){this.setGenerator(Q),this.__prime=new t(K),this._prime=t.mont(this.__prime),this._primeLen=K.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,re?(this.setPublicKey=E,this.setPrivateKey=L):this._primeCode=8}function G(K,Q){var re=new Buffer(K.toArray());return Q?re.toString(Q):re}Object.defineProperty(w.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function N(K,Q){var re=Q.toString("hex"),ie=[re,K.toString(16)].join("_");if(ie in T)return T[ie];var ae,ce=0;if(K.isEven()||!h.simpleSieve||!h.fermatTest(K)||!f.test(K))return ce+=1,T[ie]=ce+="02"===re||"05"===re?8:4,ce;switch(f.test(K.shrn(1))||(ce+=2),re){case"02":K.mod(C).cmp(a)&&(ce+=8);break;case"05":(ae=K.mod(M)).cmp(d)&&ae.cmp(R)&&(ce+=8);break;default:ce+=4}return T[ie]=ce,ce}(this.__prime,this.__gen)),this._primeCode}}),w.prototype.generateKeys=function(){return this._priv||(this._priv=new t(I(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},w.prototype.computeSecret=function(K){var Q=(K=(K=new t(K)).toRed(this._prime)).redPow(this._priv).fromRed(),re=new Buffer(Q.toArray()),ie=this.getPrime();if(re.length<ie.length){var ce=new Buffer(ie.length-re.length);ce.fill(0),re=Buffer.concat([ce,re])}return re},w.prototype.getPublicKey=function(Q){return G(this._pub,Q)},w.prototype.getPrivateKey=function(Q){return G(this._priv,Q)},w.prototype.getPrime=function(K){return G(this.__prime,K)},w.prototype.getGenerator=function(K){return G(this._gen,K)},w.prototype.setGenerator=function(K,Q){return Q=Q||"utf8",Buffer.isBuffer(K)||(K=new Buffer(K,Q)),this.__gen=K,this._gen=new t(K),this}},5563:(ke,J,p)=>{var t=p(3753);ke.exports=ce,ce.simpleSieve=re,ce.fermatTest=ie;var e=p(8313),f=new e(24),a=new(p(7079)),M=new e(1),d=new e(2),R=new e(5),E=(new e(16),new e(8),new e(10)),L=new e(3),N=(new e(7),new e(11)),w=new e(4),K=(new e(12),null);function re(ae){for(var ne=function Q(){if(null!==K)return K;var ne=[];ne[0]=2;for(var le=1,ee=3;ee<1048576;ee+=2){for(var pe=Math.ceil(Math.sqrt(ee)),S=0;S<le&&ne[S]<=pe&&ee%ne[S]!=0;S++);le!==S&&ne[S]<=pe||(ne[le++]=ee)}return K=ne,ne}(),le=0;le<ne.length;le++)if(0===ae.modn(ne[le]))return 0===ae.cmpn(ne[le]);return!0}function ie(ae){var ne=e.mont(ae);return 0===d.toRed(ne).redPow(ae.subn(1)).fromRed().cmpn(1)}function ce(ae,ne){if(ae<16)return new e(2===ne||5===ne?[140,123]:[140,39]);ne=new e(ne);for(var le,ee;;){for(le=new e(t(Math.ceil(ae/8)));le.bitLength()>ae;)le.ishrn(1);if(le.isEven()&&le.iadd(M),le.testn(1)||le.iadd(d),ne.cmp(d)){if(!ne.cmp(R))for(;le.mod(E).cmp(L);)le.iadd(w)}else for(;le.mod(f).cmp(N);)le.iadd(w);if(re(ee=le.shrn(1))&&re(le)&&ie(ee)&&ie(le)&&a.test(ee)&&a.test(le))return le}}},8313:function(ke,J,p){!function(t,e){"use strict";function f(S,i){if(!S)throw new Error(i||"Assertion failed")}function C(S,i){S.super_=i;var r=function(){};r.prototype=i.prototype,S.prototype=new r,S.prototype.constructor=S}function a(S,i,r){if(a.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,null!==S&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(S||0,i||10,r||"be"))}var M;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{M=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:p(7748).Buffer}catch{}function d(S,i){var r=S.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(S,i,r){var u=d(S,r);return r-1>=i&&(u|=d(S,r-1)<<4),u}function h(S,i,r,u){for(var l=0,y=Math.min(S.length,r),D=i;D<y;D++){var k=S.charCodeAt(D)-48;l*=u,l+=k>=49?k-49+10:k>=17?k-17+10:k}return l}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===r?this._parseHex(i,l,u):(this._parseBase(i,r,l),"le"===u&&this._initArray(this.toArray(),r,u)))},a.prototype._initNumber=function(i,r,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(f(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),r,u)},a.prototype._initArray=function(i,r,u){if(f("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var y,D,k=0;if("be"===u)for(l=i.length-1,y=0;l>=0;l-=3)this.words[y]|=(D=i[l]|i[l-1]<<8|i[l-2]<<16)<<k&67108863,this.words[y+1]=D>>>26-k&67108863,(k+=24)>=26&&(k-=26,y++);else if("le"===u)for(l=0,y=0;l<i.length;l+=3)this.words[y]|=(D=i[l]|i[l+1]<<8|i[l+2]<<16)<<k&67108863,this.words[y+1]=D>>>26-k&67108863,(k+=24)>=26&&(k-=26,y++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var k,y=0,D=0;if("be"===u)for(l=i.length-1;l>=r;l-=2)k=R(i,r,l)<<y,this.words[D]|=67108863&k,y>=18?(y-=18,this.words[D+=1]|=k>>>26):y+=8;else for(l=(i.length-r)%2==0?r+1:r;l<i.length;l+=2)k=R(i,r,l)<<y,this.words[D]|=67108863&k,y>=18?(y-=18,this.words[D+=1]|=k>>>26):y+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=r)l++;l--,y=y/r|0;for(var D=i.length-u,k=D%l,b=Math.min(D,D-k)+u,n=0,_=u;_<b;_+=l)n=h(i,_,_+l,r),this.imuln(y),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==k){var W=1;for(n=h(i,_,i.length,r),_=0;_<k;_++)W*=r;this.imuln(W),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},a.prototype.copy=function(i){i.words=new Array(this.length);for(var r=0;r<this.length;r++)i.words[r]=this.words[r];i.length=this.length,i.negative=this.negative,i.red=this.red},a.prototype.clone=function(){var i=new a(null);return this.copy(i),i},a.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var I=["","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"],E=[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],L=[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 N(S,i,r){r.negative=i.negative^S.negative;var u=S.length+i.length|0;r.length=u,u=u-1|0;var l=0|S.words[0],y=0|i.words[0],D=l*y,b=D/67108864|0;r.words[0]=67108863&D;for(var n=1;n<u;n++){for(var _=b>>>26,W=67108863&b,P=Math.min(n,i.length-1),U=Math.max(0,n-S.length+1);U<=P;U++)_+=(D=(l=0|S.words[n-U|0])*(y=0|i.words[U])+W)/67108864|0,W=67108863&D;r.words[n]=0|W,b=0|_}return 0!==b?r.words[n]=0|b:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,y=0,D=0;D<this.length;D++){var k=this.words[D],b=(16777215&(k<<l|y)).toString(16);u=0!=(y=k>>>24-l&16777215)||D!==this.length-1?I[6-b.length]+b+u:b+u,(l+=2)>=26&&(l-=26,D--)}for(0!==y&&(u=y.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=E[i],_=L[i];u="";var W=this.clone();for(W.negative=0;!W.isZero();){var P=W.modn(_).toString(i);u=(W=W.idivn(_)).isZero()?P+u:I[n-P.length]+P+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(typeof M<"u"),this.toArrayLike(M,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var l=this.byteLength(),y=u||Math.max(1,l);f(l<=y,"byte array longer than desired length"),f(y>0,"Requested array length <= 0"),this.strip();var b,n,D="le"===r,k=new i(y),_=this.clone();if(D){for(n=0;!_.isZero();n++)b=_.andln(255),_.iushrn(8),k[n]=b;for(;n<y;n++)k[n]=0}else{for(n=0;n<y-l;n++)k[n]=0;for(n=0;!_.isZero();n++)b=_.andln(255),_.iushrn(8),k[y-n-1]=b}return k},a.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;r<this.length;r++){var u=this._zeroBits(this.words[r]);if(i+=u,26!==u)break}return i},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},a.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var r=0;r<i.length;r++)this.words[r]=this.words[r]|i.words[r];return this.strip()},a.prototype.ior=function(i){return f(0==(this.negative|i.negative)),this.iuor(i)},a.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;u<r.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=r.length,this.strip()},a.prototype.iand=function(i){return f(0==(this.negative|i.negative)),this.iuand(i)},a.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=r.words[l]^u.words[l];if(this!==r)for(;l<r.length;l++)this.words[l]=r.words[l];return this.length=r.length,this.strip()},a.prototype.ixor=function(i){return f(0==(this.negative|i.negative)),this.iuxor(i)},a.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var l=0;l<r;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},a.prototype.iadd=function(i){var r,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,r=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,r=this.isub(i),i.negative=1,r._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var y=0,D=0;D<l.length;D++)this.words[D]=67108863&(r=(0|u.words[D])+(0|l.words[D])+y),y=r>>>26;for(;0!==y&&D<u.length;D++)this.words[D]=67108863&(r=(0|u.words[D])+y),y=r>>>26;if(this.length=u.length,0!==y)this.words[this.length]=y,this.length++;else if(u!==this)for(;D<u.length;D++)this.words[D]=u.words[D];return this},a.prototype.add=function(i){var r;return 0!==i.negative&&0===this.negative?(i.negative=0,r=this.sub(i),i.negative^=1,r):0===i.negative&&0!==this.negative?(this.negative=0,r=i.sub(this),this.negative=1,r):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var l,y,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,y=i):(l=i,y=this);for(var D=0,k=0;k<y.length;k++)D=(r=(0|l.words[k])-(0|y.words[k])+D)>>26,this.words[k]=67108863&r;for(;0!==D&&k<l.length;k++)D=(r=(0|l.words[k])+D)>>26,this.words[k]=67108863&r;if(0===D&&k<l.length&&l!==this)for(;k<l.length;k++)this.words[k]=l.words[k];return this.length=Math.max(this.length,k),l!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,r,u){var b,n,_,l=i.words,y=r.words,D=u.words,k=0,W=0|l[0],P=8191&W,U=W>>>13,me=0|l[1],nt=8191&me,Pe=me>>>13,Oe=0|l[2],De=8191&Oe,ue=Oe>>>13,ve=0|l[3],Ie=8191&ve,$=ve>>>13,Ge=0|l[4],ut=8191&Ge,Ee=Ge>>>13,ye=0|l[5],he=8191&ye,de=ye>>>13,we=0|l[6],Y=8191&we,j=we>>>13,Ce=0|l[7],Se=8191&Ce,X=Ce>>>13,Ye=0|l[8],Le=8191&Ye,gt=Ye>>>13,Wt=0|l[9],Rt=8191&Wt,jt=Wt>>>13,hi=0|y[0],yt=8191&hi,Pt=hi>>>13,pt=0|y[1],vt=8191&pt,Ct=pt>>>13,At=0|y[2],dt=8191&At,ze=At>>>13,Ve=0|y[3],Fe=8191&Ve,be=Ve>>>13,xt=0|y[4],ct=8191&xt,Nt=xt>>>13,et=0|y[5],Ae=8191&et,rt=et>>>13,Qe=0|y[6],Ke=8191&Qe,mt=Qe>>>13,$t=0|y[7],Gt=8191&$t,zt=$t>>>13,Et=0|y[8],ht=8191&Et,at=Et>>>13,ei=0|y[9],Ut=8191&ei,qt=ei>>>13;u.negative=i.negative^r.negative,u.length=19;var Pi=(k+(b=Math.imul(P,yt))|0)+((8191&(n=(n=Math.imul(P,Pt))+Math.imul(U,yt)|0))<<13)|0;k=((_=Math.imul(U,Pt))+(n>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,b=Math.imul(nt,yt),n=(n=Math.imul(nt,Pt))+Math.imul(Pe,yt)|0,_=Math.imul(Pe,Pt);var Ii=(k+(b=b+Math.imul(P,vt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ct)|0)+Math.imul(U,vt)|0))<<13)|0;k=((_=_+Math.imul(U,Ct)|0)+(n>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,b=Math.imul(De,yt),n=(n=Math.imul(De,Pt))+Math.imul(ue,yt)|0,_=Math.imul(ue,Pt),b=b+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,Ct)|0)+Math.imul(Pe,vt)|0,_=_+Math.imul(Pe,Ct)|0;var Ei=(k+(b=b+Math.imul(P,dt)|0)|0)+((8191&(n=(n=n+Math.imul(P,ze)|0)+Math.imul(U,dt)|0))<<13)|0;k=((_=_+Math.imul(U,ze)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,b=Math.imul(Ie,yt),n=(n=Math.imul(Ie,Pt))+Math.imul($,yt)|0,_=Math.imul($,Pt),b=b+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,Ct)|0)+Math.imul(ue,vt)|0,_=_+Math.imul(ue,Ct)|0,b=b+Math.imul(nt,dt)|0,n=(n=n+Math.imul(nt,ze)|0)+Math.imul(Pe,dt)|0,_=_+Math.imul(Pe,ze)|0;var Vi=(k+(b=b+Math.imul(P,Fe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(U,Fe)|0))<<13)|0;k=((_=_+Math.imul(U,be)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,b=Math.imul(ut,yt),n=(n=Math.imul(ut,Pt))+Math.imul(Ee,yt)|0,_=Math.imul(Ee,Pt),b=b+Math.imul(Ie,vt)|0,n=(n=n+Math.imul(Ie,Ct)|0)+Math.imul($,vt)|0,_=_+Math.imul($,Ct)|0,b=b+Math.imul(De,dt)|0,n=(n=n+Math.imul(De,ze)|0)+Math.imul(ue,dt)|0,_=_+Math.imul(ue,ze)|0,b=b+Math.imul(nt,Fe)|0,n=(n=n+Math.imul(nt,be)|0)+Math.imul(Pe,Fe)|0,_=_+Math.imul(Pe,be)|0;var Be=(k+(b=b+Math.imul(P,ct)|0)|0)+((8191&(n=(n=n+Math.imul(P,Nt)|0)+Math.imul(U,ct)|0))<<13)|0;k=((_=_+Math.imul(U,Nt)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,b=Math.imul(he,yt),n=(n=Math.imul(he,Pt))+Math.imul(de,yt)|0,_=Math.imul(de,Pt),b=b+Math.imul(ut,vt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Ee,vt)|0,_=_+Math.imul(Ee,Ct)|0,b=b+Math.imul(Ie,dt)|0,n=(n=n+Math.imul(Ie,ze)|0)+Math.imul($,dt)|0,_=_+Math.imul($,ze)|0,b=b+Math.imul(De,Fe)|0,n=(n=n+Math.imul(De,be)|0)+Math.imul(ue,Fe)|0,_=_+Math.imul(ue,be)|0,b=b+Math.imul(nt,ct)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Pe,ct)|0,_=_+Math.imul(Pe,Nt)|0;var kt=(k+(b=b+Math.imul(P,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(P,rt)|0)+Math.imul(U,Ae)|0))<<13)|0;k=((_=_+Math.imul(U,rt)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,b=Math.imul(Y,yt),n=(n=Math.imul(Y,Pt))+Math.imul(j,yt)|0,_=Math.imul(j,Pt),b=b+Math.imul(he,vt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(de,vt)|0,_=_+Math.imul(de,Ct)|0,b=b+Math.imul(ut,dt)|0,n=(n=n+Math.imul(ut,ze)|0)+Math.imul(Ee,dt)|0,_=_+Math.imul(Ee,ze)|0,b=b+Math.imul(Ie,Fe)|0,n=(n=n+Math.imul(Ie,be)|0)+Math.imul($,Fe)|0,_=_+Math.imul($,be)|0,b=b+Math.imul(De,ct)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(ue,ct)|0,_=_+Math.imul(ue,Nt)|0,b=b+Math.imul(nt,Ae)|0,n=(n=n+Math.imul(nt,rt)|0)+Math.imul(Pe,Ae)|0,_=_+Math.imul(Pe,rt)|0;var _e=(k+(b=b+Math.imul(P,Ke)|0)|0)+((8191&(n=(n=n+Math.imul(P,mt)|0)+Math.imul(U,Ke)|0))<<13)|0;k=((_=_+Math.imul(U,mt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,b=Math.imul(Se,yt),n=(n=Math.imul(Se,Pt))+Math.imul(X,yt)|0,_=Math.imul(X,Pt),b=b+Math.imul(Y,vt)|0,n=(n=n+Math.imul(Y,Ct)|0)+Math.imul(j,vt)|0,_=_+Math.imul(j,Ct)|0,b=b+Math.imul(he,dt)|0,n=(n=n+Math.imul(he,ze)|0)+Math.imul(de,dt)|0,_=_+Math.imul(de,ze)|0,b=b+Math.imul(ut,Fe)|0,n=(n=n+Math.imul(ut,be)|0)+Math.imul(Ee,Fe)|0,_=_+Math.imul(Ee,be)|0,b=b+Math.imul(Ie,ct)|0,n=(n=n+Math.imul(Ie,Nt)|0)+Math.imul($,ct)|0,_=_+Math.imul($,Nt)|0,b=b+Math.imul(De,Ae)|0,n=(n=n+Math.imul(De,rt)|0)+Math.imul(ue,Ae)|0,_=_+Math.imul(ue,rt)|0,b=b+Math.imul(nt,Ke)|0,n=(n=n+Math.imul(nt,mt)|0)+Math.imul(Pe,Ke)|0,_=_+Math.imul(Pe,mt)|0;var Je=(k+(b=b+Math.imul(P,Gt)|0)|0)+((8191&(n=(n=n+Math.imul(P,zt)|0)+Math.imul(U,Gt)|0))<<13)|0;k=((_=_+Math.imul(U,zt)|0)+(n>>>13)|0)+(Je>>>26)|0,Je&=67108863,b=Math.imul(Le,yt),n=(n=Math.imul(Le,Pt))+Math.imul(gt,yt)|0,_=Math.imul(gt,Pt),b=b+Math.imul(Se,vt)|0,n=(n=n+Math.imul(Se,Ct)|0)+Math.imul(X,vt)|0,_=_+Math.imul(X,Ct)|0,b=b+Math.imul(Y,dt)|0,n=(n=n+Math.imul(Y,ze)|0)+Math.imul(j,dt)|0,_=_+Math.imul(j,ze)|0,b=b+Math.imul(he,Fe)|0,n=(n=n+Math.imul(he,be)|0)+Math.imul(de,Fe)|0,_=_+Math.imul(de,be)|0,b=b+Math.imul(ut,ct)|0,n=(n=n+Math.imul(ut,Nt)|0)+Math.imul(Ee,ct)|0,_=_+Math.imul(Ee,Nt)|0,b=b+Math.imul(Ie,Ae)|0,n=(n=n+Math.imul(Ie,rt)|0)+Math.imul($,Ae)|0,_=_+Math.imul($,rt)|0,b=b+Math.imul(De,Ke)|0,n=(n=n+Math.imul(De,mt)|0)+Math.imul(ue,Ke)|0,_=_+Math.imul(ue,mt)|0,b=b+Math.imul(nt,Gt)|0,n=(n=n+Math.imul(nt,zt)|0)+Math.imul(Pe,Gt)|0,_=_+Math.imul(Pe,zt)|0;var _t=(k+(b=b+Math.imul(P,ht)|0)|0)+((8191&(n=(n=n+Math.imul(P,at)|0)+Math.imul(U,ht)|0))<<13)|0;k=((_=_+Math.imul(U,at)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,b=Math.imul(Rt,yt),n=(n=Math.imul(Rt,Pt))+Math.imul(jt,yt)|0,_=Math.imul(jt,Pt),b=b+Math.imul(Le,vt)|0,n=(n=n+Math.imul(Le,Ct)|0)+Math.imul(gt,vt)|0,_=_+Math.imul(gt,Ct)|0,b=b+Math.imul(Se,dt)|0,n=(n=n+Math.imul(Se,ze)|0)+Math.imul(X,dt)|0,_=_+Math.imul(X,ze)|0,b=b+Math.imul(Y,Fe)|0,n=(n=n+Math.imul(Y,be)|0)+Math.imul(j,Fe)|0,_=_+Math.imul(j,be)|0,b=b+Math.imul(he,ct)|0,n=(n=n+Math.imul(he,Nt)|0)+Math.imul(de,ct)|0,_=_+Math.imul(de,Nt)|0,b=b+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Ee,Ae)|0,_=_+Math.imul(Ee,rt)|0,b=b+Math.imul(Ie,Ke)|0,n=(n=n+Math.imul(Ie,mt)|0)+Math.imul($,Ke)|0,_=_+Math.imul($,mt)|0,b=b+Math.imul(De,Gt)|0,n=(n=n+Math.imul(De,zt)|0)+Math.imul(ue,Gt)|0,_=_+Math.imul(ue,zt)|0,b=b+Math.imul(nt,ht)|0,n=(n=n+Math.imul(nt,at)|0)+Math.imul(Pe,ht)|0,_=_+Math.imul(Pe,at)|0;var se=(k+(b=b+Math.imul(P,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(P,qt)|0)+Math.imul(U,Ut)|0))<<13)|0;k=((_=_+Math.imul(U,qt)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,b=Math.imul(Rt,vt),n=(n=Math.imul(Rt,Ct))+Math.imul(jt,vt)|0,_=Math.imul(jt,Ct),b=b+Math.imul(Le,dt)|0,n=(n=n+Math.imul(Le,ze)|0)+Math.imul(gt,dt)|0,_=_+Math.imul(gt,ze)|0,b=b+Math.imul(Se,Fe)|0,n=(n=n+Math.imul(Se,be)|0)+Math.imul(X,Fe)|0,_=_+Math.imul(X,be)|0,b=b+Math.imul(Y,ct)|0,n=(n=n+Math.imul(Y,Nt)|0)+Math.imul(j,ct)|0,_=_+Math.imul(j,Nt)|0,b=b+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(de,Ae)|0,_=_+Math.imul(de,rt)|0,b=b+Math.imul(ut,Ke)|0,n=(n=n+Math.imul(ut,mt)|0)+Math.imul(Ee,Ke)|0,_=_+Math.imul(Ee,mt)|0,b=b+Math.imul(Ie,Gt)|0,n=(n=n+Math.imul(Ie,zt)|0)+Math.imul($,Gt)|0,_=_+Math.imul($,zt)|0,b=b+Math.imul(De,ht)|0,n=(n=n+Math.imul(De,at)|0)+Math.imul(ue,ht)|0,_=_+Math.imul(ue,at)|0;var Xe=(k+(b=b+Math.imul(nt,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(nt,qt)|0)+Math.imul(Pe,Ut)|0))<<13)|0;k=((_=_+Math.imul(Pe,qt)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,b=Math.imul(Rt,dt),n=(n=Math.imul(Rt,ze))+Math.imul(jt,dt)|0,_=Math.imul(jt,ze),b=b+Math.imul(Le,Fe)|0,n=(n=n+Math.imul(Le,be)|0)+Math.imul(gt,Fe)|0,_=_+Math.imul(gt,be)|0,b=b+Math.imul(Se,ct)|0,n=(n=n+Math.imul(Se,Nt)|0)+Math.imul(X,ct)|0,_=_+Math.imul(X,Nt)|0,b=b+Math.imul(Y,Ae)|0,n=(n=n+Math.imul(Y,rt)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,rt)|0,b=b+Math.imul(he,Ke)|0,n=(n=n+Math.imul(he,mt)|0)+Math.imul(de,Ke)|0,_=_+Math.imul(de,mt)|0,b=b+Math.imul(ut,Gt)|0,n=(n=n+Math.imul(ut,zt)|0)+Math.imul(Ee,Gt)|0,_=_+Math.imul(Ee,zt)|0,b=b+Math.imul(Ie,ht)|0,n=(n=n+Math.imul(Ie,at)|0)+Math.imul($,ht)|0,_=_+Math.imul($,at)|0;var bt=(k+(b=b+Math.imul(De,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(De,qt)|0)+Math.imul(ue,Ut)|0))<<13)|0;k=((_=_+Math.imul(ue,qt)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,b=Math.imul(Rt,Fe),n=(n=Math.imul(Rt,be))+Math.imul(jt,Fe)|0,_=Math.imul(jt,be),b=b+Math.imul(Le,ct)|0,n=(n=n+Math.imul(Le,Nt)|0)+Math.imul(gt,ct)|0,_=_+Math.imul(gt,Nt)|0,b=b+Math.imul(Se,Ae)|0,n=(n=n+Math.imul(Se,rt)|0)+Math.imul(X,Ae)|0,_=_+Math.imul(X,rt)|0,b=b+Math.imul(Y,Ke)|0,n=(n=n+Math.imul(Y,mt)|0)+Math.imul(j,Ke)|0,_=_+Math.imul(j,mt)|0,b=b+Math.imul(he,Gt)|0,n=(n=n+Math.imul(he,zt)|0)+Math.imul(de,Gt)|0,_=_+Math.imul(de,zt)|0,b=b+Math.imul(ut,ht)|0,n=(n=n+Math.imul(ut,at)|0)+Math.imul(Ee,ht)|0,_=_+Math.imul(Ee,at)|0;var Vt=(k+(b=b+Math.imul(Ie,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Ie,qt)|0)+Math.imul($,Ut)|0))<<13)|0;k=((_=_+Math.imul($,qt)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,b=Math.imul(Rt,ct),n=(n=Math.imul(Rt,Nt))+Math.imul(jt,ct)|0,_=Math.imul(jt,Nt),b=b+Math.imul(Le,Ae)|0,n=(n=n+Math.imul(Le,rt)|0)+Math.imul(gt,Ae)|0,_=_+Math.imul(gt,rt)|0,b=b+Math.imul(Se,Ke)|0,n=(n=n+Math.imul(Se,mt)|0)+Math.imul(X,Ke)|0,_=_+Math.imul(X,mt)|0,b=b+Math.imul(Y,Gt)|0,n=(n=n+Math.imul(Y,zt)|0)+Math.imul(j,Gt)|0,_=_+Math.imul(j,zt)|0,b=b+Math.imul(he,ht)|0,n=(n=n+Math.imul(he,at)|0)+Math.imul(de,ht)|0,_=_+Math.imul(de,at)|0;var mi=(k+(b=b+Math.imul(ut,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(ut,qt)|0)+Math.imul(Ee,Ut)|0))<<13)|0;k=((_=_+Math.imul(Ee,qt)|0)+(n>>>13)|0)+(mi>>>26)|0,mi&=67108863,b=Math.imul(Rt,Ae),n=(n=Math.imul(Rt,rt))+Math.imul(jt,Ae)|0,_=Math.imul(jt,rt),b=b+Math.imul(Le,Ke)|0,n=(n=n+Math.imul(Le,mt)|0)+Math.imul(gt,Ke)|0,_=_+Math.imul(gt,mt)|0,b=b+Math.imul(Se,Gt)|0,n=(n=n+Math.imul(Se,zt)|0)+Math.imul(X,Gt)|0,_=_+Math.imul(X,zt)|0,b=b+Math.imul(Y,ht)|0,n=(n=n+Math.imul(Y,at)|0)+Math.imul(j,ht)|0,_=_+Math.imul(j,at)|0;var Hi=(k+(b=b+Math.imul(he,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(he,qt)|0)+Math.imul(de,Ut)|0))<<13)|0;k=((_=_+Math.imul(de,qt)|0)+(n>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,b=Math.imul(Rt,Ke),n=(n=Math.imul(Rt,mt))+Math.imul(jt,Ke)|0,_=Math.imul(jt,mt),b=b+Math.imul(Le,Gt)|0,n=(n=n+Math.imul(Le,zt)|0)+Math.imul(gt,Gt)|0,_=_+Math.imul(gt,zt)|0,b=b+Math.imul(Se,ht)|0,n=(n=n+Math.imul(Se,at)|0)+Math.imul(X,ht)|0,_=_+Math.imul(X,at)|0;var Ui=(k+(b=b+Math.imul(Y,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Y,qt)|0)+Math.imul(j,Ut)|0))<<13)|0;k=((_=_+Math.imul(j,qt)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,b=Math.imul(Rt,Gt),n=(n=Math.imul(Rt,zt))+Math.imul(jt,Gt)|0,_=Math.imul(jt,zt),b=b+Math.imul(Le,ht)|0,n=(n=n+Math.imul(Le,at)|0)+Math.imul(gt,ht)|0,_=_+Math.imul(gt,at)|0;var Ji=(k+(b=b+Math.imul(Se,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Se,qt)|0)+Math.imul(X,Ut)|0))<<13)|0;k=((_=_+Math.imul(X,qt)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,b=Math.imul(Rt,ht),n=(n=Math.imul(Rt,at))+Math.imul(jt,ht)|0,_=Math.imul(jt,at);var an=(k+(b=b+Math.imul(Le,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Le,qt)|0)+Math.imul(gt,Ut)|0))<<13)|0;k=((_=_+Math.imul(gt,qt)|0)+(n>>>13)|0)+(an>>>26)|0,an&=67108863;var _n=(k+(b=Math.imul(Rt,Ut))|0)+((8191&(n=(n=Math.imul(Rt,qt))+Math.imul(jt,Ut)|0))<<13)|0;return k=((_=Math.imul(jt,qt))+(n>>>13)|0)+(_n>>>26)|0,_n&=67108863,D[0]=Pi,D[1]=Ii,D[2]=Ei,D[3]=Vi,D[4]=Be,D[5]=kt,D[6]=_e,D[7]=Je,D[8]=_t,D[9]=se,D[10]=Xe,D[11]=bt,D[12]=Vt,D[13]=mi,D[14]=Hi,D[15]=Ui,D[16]=Ji,D[17]=an,D[18]=_n,0!==k&&(D[19]=k,u.length++),u};function K(S,i,r){return(new Q).mulp(S,i,r)}function Q(S,i){this.x=S,this.y=i}Math.imul||(w=N),a.prototype.mulTo=function(i,r){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?w(this,i,r):l<63?N(this,i,r):l<1024?function G(S,i,r){r.negative=i.negative^S.negative,r.length=S.length+i.length;for(var u=0,l=0,y=0;y<r.length-1;y++){var D=l;l=0;for(var k=67108863&u,b=Math.min(y,i.length-1),n=Math.max(0,y-S.length+1);n<=b;n++){var U=(0|S.words[y-n])*(0|i.words[n]),me=67108863&U;k=67108863&(me=me+k|0),l+=(D=(D=D+(U/67108864|0)|0)+(me>>>26)|0)>>>26,D&=67108863}r.words[y]=k,u=D,D=l}return 0!==u?r.words[y]=u:r.length--,r.strip()}(this,i,r):K(this,i,r),u},Q.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,l=0;l<i;l++)r[l]=this.revBin(l,u,i);return r},Q.prototype.revBin=function(i,r,u){if(0===i||i===u-1)return i;for(var l=0,y=0;y<r;y++)l|=(1&i)<<r-y-1,i>>=1;return l},Q.prototype.permute=function(i,r,u,l,y,D){for(var k=0;k<D;k++)l[k]=r[i[k]],y[k]=u[i[k]]},Q.prototype.transform=function(i,r,u,l,y,D){this.permute(D,i,r,u,l,y);for(var k=1;k<y;k<<=1)for(var b=k<<1,n=Math.cos(2*Math.PI/b),_=Math.sin(2*Math.PI/b),W=0;W<y;W+=b)for(var P=n,U=_,me=0;me<k;me++){var nt=u[W+me],Pe=l[W+me],Oe=u[W+me+k],De=l[W+me+k],ue=P*Oe-U*De;De=P*De+U*Oe,u[W+me]=nt+(Oe=ue),l[W+me]=Pe+De,u[W+me+k]=nt-Oe,l[W+me+k]=Pe-De,me!==b&&(ue=n*P-_*U,U=n*U+_*P,P=ue)}},Q.prototype.guessLen13b=function(i,r){var u=1|Math.max(r,i),l=1&u,y=0;for(u=u/2|0;u;u>>>=1)y++;return 1<<y+1+l},Q.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var l=0;l<u/2;l++){var y=i[l];i[l]=i[u-l-1],i[u-l-1]=y,y=r[l],r[l]=-r[u-l-1],r[u-l-1]=-y}},Q.prototype.normalize13b=function(i,r){for(var u=0,l=0;l<r/2;l++){var y=8192*Math.round(i[2*l+1]/r)+Math.round(i[2*l]/r)+u;i[l]=67108863&y,u=y<67108864?0:y/67108864|0}return i},Q.prototype.convert13b=function(i,r,u,l){for(var y=0,D=0;D<r;D++)u[2*D]=8191&(y+=0|i[D]),u[2*D+1]=8191&(y>>>=13),y>>>=13;for(D=2*r;D<l;++D)u[D]=0;f(0===y),f(0==(-8192&y))},Q.prototype.stub=function(i){for(var r=new Array(i),u=0;u<i;u++)r[u]=0;return r},Q.prototype.mulp=function(i,r,u){var l=2*this.guessLen13b(i.length,r.length),y=this.makeRBT(l),D=this.stub(l),k=new Array(l),b=new Array(l),n=new Array(l),_=new Array(l),W=new Array(l),P=new Array(l),U=u.words;U.length=l,this.convert13b(i.words,i.length,k,l),this.convert13b(r.words,r.length,_,l),this.transform(k,D,b,n,l,y),this.transform(_,D,W,P,l,y);for(var me=0;me<l;me++){var nt=b[me]*W[me]-n[me]*P[me];n[me]=b[me]*P[me]+n[me]*W[me],b[me]=nt}return this.conjugate(b,n,l),this.transform(b,n,U,D,l,y),this.conjugate(U,D,l),this.normalize13b(U,l),u.negative=i.negative^r.negative,u.length=i.length+r.length,u.strip()},a.prototype.mul=function(i){var r=new a(null);return r.words=new Array(this.length+i.length),this.mulTo(i,r)},a.prototype.mulf=function(i){var r=new a(null);return r.words=new Array(this.length+i.length),K(this,i,r)},a.prototype.imul=function(i){return this.clone().mulTo(i,this)},a.prototype.imuln=function(i){f("number"==typeof i),f(i<67108864);for(var r=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,y=(67108863&l)+(67108863&r);r>>=26,r+=l/67108864|0,r+=y>>>26,this.words[u]=67108863&y}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function T(S){for(var i=new Array(S.bitLength()),r=0;r<i.length;r++){var l=r%26;i[r]=(S.words[r/26|0]&1<<l)>>>l}return i}(i);if(0===r.length)return new a(1);for(var u=this,l=0;l<r.length&&0===r[l];l++,u=u.sqr());if(++l<r.length)for(var y=u.sqr();l<r.length;l++,y=y.sqr())0!==r[l]&&(u=u.mul(y));return u},a.prototype.iushln=function(i){f("number"==typeof i&&i>=0);var y,r=i%26,u=(i-r)/26,l=67108863>>>26-r<<26-r;if(0!==r){var D=0;for(y=0;y<this.length;y++){var k=this.words[y]&l;this.words[y]=(0|this.words[y])-k<<r|D,D=k>>>26-r}D&&(this.words[y]=D,this.length++)}if(0!==u){for(y=this.length-1;y>=0;y--)this.words[y+u]=this.words[y];for(y=0;y<u;y++)this.words[y]=0;this.length+=u}return this.strip()},a.prototype.ishln=function(i){return f(0===this.negative),this.iushln(i)},a.prototype.iushrn=function(i,r,u){var l;f("number"==typeof i&&i>=0),l=r?(r-r%26)/26:0;var y=i%26,D=Math.min((i-y)/26,this.length),k=67108863^67108863>>>y<<y,b=u;if(l-=D,l=Math.max(0,l),b){for(var n=0;n<D;n++)b.words[n]=this.words[n];b.length=D}if(0!==D)if(this.length>D)for(this.length-=D,n=0;n<this.length;n++)this.words[n]=this.words[n+D];else this.words[0]=0,this.length=1;var _=0;for(n=this.length-1;n>=0&&(0!==_||n>=l);n--){var W=0|this.words[n];this.words[n]=_<<26-y|W>>>y,_=W&k}return b&&0!==_&&(b.words[b.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<<r))},a.prototype.imaskn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},a.prototype.maskn=function(i){return this.clone().imaskn(i)},a.prototype.iaddn=function(i){return f("number"==typeof i),f(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},a.prototype._iaddn=function(i){this.words[0]+=i;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(i){return this.clone().iaddn(i)},a.prototype.subn=function(i){return this.clone().isubn(i)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(i,r,u){var y;this._expand(i.length+u);var D,k=0;for(y=0;y<i.length;y++){D=(0|this.words[y+u])+k;var b=(0|i.words[y])*r;k=((D-=67108863&b)>>26)-(b/67108864|0),this.words[y+u]=67108863&D}for(;y<this.length-u;y++)k=(D=(0|this.words[y+u])+k)>>26,this.words[y+u]=67108863&D;if(0===k)return this.strip();for(f(-1===k),k=0,y=0;y<this.length;y++)k=(D=-(0|this.words[y])+k)>>26,this.words[y]=67108863&D;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,l=this.clone(),y=i,D=0|y.words[y.length-1];0!=(u=26-this._countBits(D))&&(y=y.ushln(u),l.iushln(u),D=0|y.words[y.length-1]);var n,b=l.length-y.length;if("mod"!==r){(n=new a(null)).length=b+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var W=l.clone()._ishlnsubmul(y,1,b);0===W.negative&&(l=W,n&&(n.words[b]=1));for(var P=b-1;P>=0;P--){var U=67108864*(0|l.words[y.length+P])+(0|l.words[y.length+P-1]);for(U=Math.min(U/D|0,67108863),l._ishlnsubmul(y,U,P);0!==l.negative;)U--,l.negative=0,l._ishlnsubmul(y,1,P),l.isZero()||(l.negative^=1);n&&(n.words[P]=U)}return n&&n.strip(),l.strip(),"div"!==r&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,r),"mod"!==r&&(l=D.div.neg()),"div"!==r&&(y=D.mod.neg(),u&&0!==y.negative&&y.iadd(i)),{div:l,mod:y}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),r),"mod"!==r&&(l=D.div.neg()),{div:l,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),r),"div"!==r&&(y=D.mod.neg(),u&&0!==y.negative&&y.isub(i)),{div:D.div,mod:y}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var l,y,D},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,l=i.ushrn(1),y=i.andln(1),D=u.cmp(l);return D<0||1===y&&0===D?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(r*u+(0|this.words[l]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*r;this.words[u]=l/i|0,r=l%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var l=new a(1),y=new a(0),D=new a(0),k=new a(1),b=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++b;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var W=0,P=1;0==(r.words[0]&P)&&W<26;++W,P<<=1);if(W>0)for(r.iushrn(W);W-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(n),y.isub(_)),l.iushrn(1),y.iushrn(1);for(var U=0,me=1;0==(u.words[0]&me)&&U<26;++U,me<<=1);if(U>0)for(u.iushrn(U);U-- >0;)(D.isOdd()||k.isOdd())&&(D.iadd(n),k.isub(_)),D.iushrn(1),k.iushrn(1);r.cmp(u)>=0?(r.isub(u),l.isub(D),y.isub(k)):(u.isub(r),D.isub(l),k.isub(y))}return{a:D,b:k,gcd:u.iushln(b)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var W,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var l=new a(1),y=new a(0),D=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var k=0,b=1;0==(r.words[0]&b)&&k<26;++k,b<<=1);if(k>0)for(r.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(D),l.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)y.isOdd()&&y.iadd(D),y.iushrn(1);r.cmp(u)>=0?(r.isub(u),l.isub(y)):(u.isub(r),y.isub(l))}return(W=0===r.cmpn(1)?l:y).cmpn(0)<0&&W.iadd(i),W},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var l=0;r.isEven()&&u.isEven();l++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var y=r.cmp(u);if(y<0){var D=r;r=u,u=D}else if(0===y||0===u.cmpn(1))break;r.isub(u)}return u.iushln(l)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,l=1<<r;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var y=l,D=u;0!==y&&D<this.length;D++){var k=0|this.words[D];y=(k+=y)>>>26,this.words[D]=k&=67108863}return 0!==y&&(this.words[D]=y,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},a.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var r=this.ucmp(i);return 0!==this.negative?0|-r:r},a.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var r=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],y=0|i.words[u];if(l!==y){l<y?r=-1:l>y&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new ee(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var re={k256:null,p224:null,p192:null,p25519:null};function ie(S,i){this.name=S,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ce(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ae(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ne(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(S){if("string"==typeof S){var i=a._prime(S);this.m=i.p,this.prime=i}else f(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function pe(S){ee.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ie.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:r.ucmp(this.p);return 0===l?(r.words[0]=0,r.length=1):l>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ie.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ie.prototype.imulK=function(i){return i.imul(this.k)},C(ce,ie),ce.prototype.split=function(i,r){for(var u=4194303,l=Math.min(i.length,9),y=0;y<l;y++)r.words[y]=i.words[y];if(r.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var D=i.words[9];for(r.words[r.length++]=D&u,y=10;y<i.length;y++){var k=0|i.words[y];i.words[y-10]=(k&u)<<4|D>>>22,D=k}i.words[y-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ce.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(r+=977*l),r=64*l+(r/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ae,ie),C(ne,ie),C(le,ie),le.prototype.imulK=function(i){for(var r=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+r,y=67108863&l;l>>>=26,i.words[u]=y,r=l}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(re[i])return re[i];var r;if("k256"===i)r=new ce;else if("p224"===i)r=new ae;else if("p192"===i)r=new ne;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new le}return re[i]=r,r},ee.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},ee.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},ee.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ee.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ee.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},ee.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},ee.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},ee.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},ee.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},ee.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},ee.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},ee.prototype.isqr=function(i){return this.imul(i,i.clone())},ee.prototype.sqr=function(i){return this.mul(i,i)},ee.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),y=0;!l.isZero()&&0===l.andln(1);)y++,l.iushrn(1);f(!l.isZero());var D=new a(1).toRed(this),k=D.redNeg(),b=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,b).cmp(k);)n.redIAdd(k);for(var _=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),P=this.pow(i,l),U=y;0!==P.cmp(D);){for(var me=P,nt=0;0!==me.cmp(D);nt++)me=me.redSqr();f(nt<U);var Pe=this.pow(_,new a(1).iushln(U-nt-1));W=W.redMul(Pe),_=Pe.redSqr(),P=P.redMul(_),U=nt}return W},ee.prototype.invm=function(i){var r=i._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},ee.prototype.pow=function(i,r){if(r.isZero())return new a(1).toRed(this);if(0===r.cmpn(1))return i.clone();var l=new Array(16);l[0]=new a(1).toRed(this),l[1]=i;for(var y=2;y<l.length;y++)l[y]=this.mul(l[y-1],i);var D=l[0],k=0,b=0,n=r.bitLength()%26;for(0===n&&(n=26),y=r.length-1;y>=0;y--){for(var _=r.words[y],W=n-1;W>=0;W--){var P=_>>W&1;D!==l[0]&&(D=this.sqr(D)),0!==P||0!==k?(k<<=1,k|=P,(4==++b||0===y&&0===W)&&(D=this.mul(D,l[k]),b=0,k=0)):b=0}n=26}return D},ee.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},ee.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new pe(i)},C(pe,ee),pe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},pe.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},pe.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),D=y;return y.cmp(this.m)>=0?D=y.isub(this.m):y.cmpn(0)<0&&(D=y.iadd(this.m)),D._forceRed(this)},pe.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),D=y;return y.cmp(this.m)>=0?D=y.isub(this.m):y.cmpn(0)<0&&(D=y.iadd(this.m)),D._forceRed(this)},pe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=p.nmd(ke),this)},4901:ke=>{"use strict";var J={single_source_shortest_paths:function(p,t,e){var f={},C={};C[t]=0;var M,d,R,h,I,L,a=J.PriorityQueue.make();for(a.push(t,0);!a.empty();)for(R in h=(M=a.pop()).cost,I=p[d=M.value]||{})I.hasOwnProperty(R)&&(L=h+I[R],(typeof C[R]>"u"||C[R]>L)&&(C[R]=L,a.push(R,L),f[R]=d));if(typeof e<"u"&&typeof C[e]>"u"){var w=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(w)}return f},extract_shortest_path_from_predecessor_list:function(p,t){for(var e=[],f=t;f;)e.push(f),f=p[f];return e.reverse(),e},find_path:function(p,t,e){var f=J.single_source_shortest_paths(p,t,e);return J.extract_shortest_path_from_predecessor_list(f,e)},PriorityQueue:{make:function(p){var f,t=J.PriorityQueue,e={};for(f in p=p||{},t)t.hasOwnProperty(f)&&(e[f]=t[f]);return e.queue=[],e.sorter=p.sorter||t.default_sorter,e},default_sorter:function(p,t){return p.cost-t.cost},push:function(p,t){this.queue.push({value:p,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};ke.exports=J},7715:(ke,J,p)=>{"use strict";var t=J;t.version=p(8597).i8,t.utils=p(1970),t.rand=p(7950),t.curve=p(6270),t.curves=p(2916),t.ec=p(7626),t.eddsa=p(1885)},7902:(ke,J,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.getNAF,C=e.getJSF,a=e.assert;function M(R,h){this.type=R,this.p=new t(h.p,16),this.red=h.prime?t.red(h.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=h.n&&new t(h.n,16),this.g=h.g&&this.pointFromJSON(h.g,h.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var I=this.n&&this.p.div(this.n);!I||I.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(R,h){this.curve=R,this.type=h,this.precomputed=null}ke.exports=M,M.prototype.point=function(){throw new Error("Not implemented")},M.prototype.validate=function(){throw new Error("Not implemented")},M.prototype._fixedNafMul=function(h,I){a(h.precomputed);var E=h._getDoubles(),L=f(I,1,this._bitLength),T=(1<<E.step+1)-(E.step%2==0?2:1);T/=3;var w,G,N=[];for(w=0;w<L.length;w+=E.step){G=0;for(var K=w+E.step-1;K>=w;K--)G=(G<<1)+L[K];N.push(G)}for(var Q=this.jpoint(null,null,null),re=this.jpoint(null,null,null),ie=T;ie>0;ie--){for(w=0;w<N.length;w++)(G=N[w])===ie?re=re.mixedAdd(E.points[w]):G===-ie&&(re=re.mixedAdd(E.points[w].neg()));Q=Q.add(re)}return Q.toP()},M.prototype._wnafMul=function(h,I){for(var E=4,L=h._getNAFPoints(E),T=L.points,N=f(I,E=L.wnd,this._bitLength),w=this.jpoint(null,null,null),G=N.length-1;G>=0;G--){for(var K=0;G>=0&&0===N[G];G--)K++;if(G>=0&&K++,w=w.dblp(K),G<0)break;var Q=N[G];a(0!==Q),w="affine"===h.type?w.mixedAdd(Q>0?T[Q-1>>1]:T[-Q-1>>1].neg()):w.add(Q>0?T[Q-1>>1]:T[-Q-1>>1].neg())}return"affine"===h.type?w.toP():w},M.prototype._wnafMulAdd=function(h,I,E,L,T){var Q,re,ie,N=this._wnafT1,w=this._wnafT2,G=this._wnafT3,K=0;for(Q=0;Q<L;Q++){var ce=(ie=I[Q])._getNAFPoints(h);N[Q]=ce.wnd,w[Q]=ce.points}for(Q=L-1;Q>=1;Q-=2){var ae=Q-1,ne=Q;if(1===N[ae]&&1===N[ne]){var le=[I[ae],null,null,I[ne]];0===I[ae].y.cmp(I[ne].y)?(le[1]=I[ae].add(I[ne]),le[2]=I[ae].toJ().mixedAdd(I[ne].neg())):0===I[ae].y.cmp(I[ne].y.redNeg())?(le[1]=I[ae].toJ().mixedAdd(I[ne]),le[2]=I[ae].add(I[ne].neg())):(le[1]=I[ae].toJ().mixedAdd(I[ne]),le[2]=I[ae].toJ().mixedAdd(I[ne].neg()));var ee=[-3,-1,-5,-7,0,7,5,1,3],pe=C(E[ae],E[ne]);for(K=Math.max(pe[0].length,K),G[ae]=new Array(K),G[ne]=new Array(K),re=0;re<K;re++)G[ae][re]=ee[3*(1+(0|pe[0][re]))+(1+(0|pe[1][re]))],G[ne][re]=0,w[ae]=le}else G[ae]=f(E[ae],N[ae],this._bitLength),G[ne]=f(E[ne],N[ne],this._bitLength),K=Math.max(G[ae].length,K),K=Math.max(G[ne].length,K)}var r=this.jpoint(null,null,null),u=this._wnafT4;for(Q=K;Q>=0;Q--){for(var l=0;Q>=0;){var y=!0;for(re=0;re<L;re++)u[re]=0|G[re][Q],0!==u[re]&&(y=!1);if(!y)break;l++,Q--}if(Q>=0&&l++,r=r.dblp(l),Q<0)break;for(re=0;re<L;re++){var D=u[re];0!==D&&(D>0?ie=w[re][D-1>>1]:D<0&&(ie=w[re][-D-1>>1].neg()),r="affine"===ie.type?r.mixedAdd(ie):r.add(ie))}}for(Q=0;Q<L;Q++)w[Q]=null;return T?r:r.toP()},M.BasePoint=d,d.prototype.eq=function(){throw new Error("Not implemented")},d.prototype.validate=function(){return this.curve.validate(this)},M.prototype.decodePoint=function(h,I){h=e.toArray(h,I);var E=this.p.byteLength();if((4===h[0]||6===h[0]||7===h[0])&&h.length-1==2*E)return 6===h[0]?a(h[h.length-1]%2==0):7===h[0]&&a(h[h.length-1]%2==1),this.point(h.slice(1,1+E),h.slice(1+E,1+2*E));if((2===h[0]||3===h[0])&&h.length-1===E)return this.pointFromX(h.slice(1,1+E),3===h[0]);throw new Error("Unknown point format")},d.prototype.encodeCompressed=function(h){return this.encode(h,!0)},d.prototype._encode=function(h){var I=this.curve.p.byteLength(),E=this.getX().toArray("be",I);return h?[this.getY().isEven()?2:3].concat(E):[4].concat(E,this.getY().toArray("be",I))},d.prototype.encode=function(h,I){return e.encode(this._encode(I),h)},d.prototype.precompute=function(h){if(this.precomputed)return this;var I={doubles:null,naf:null,beta:null};return I.naf=this._getNAFPoints(8),I.doubles=this._getDoubles(4,h),I.beta=this._getBeta(),this.precomputed=I,this},d.prototype._hasDoubles=function(h){if(!this.precomputed)return!1;var I=this.precomputed.doubles;return!!I&&I.points.length>=Math.ceil((h.bitLength()+1)/I.step)},d.prototype._getDoubles=function(h,I){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var E=[this],L=this,T=0;T<I;T+=h){for(var N=0;N<h;N++)L=L.dbl();E.push(L)}return{step:h,points:E}},d.prototype._getNAFPoints=function(h){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var I=[this],E=(1<<h)-1,L=1===E?null:this.dbl(),T=1;T<E;T++)I[T]=I[T-1].add(L);return{wnd:h,points:I}},d.prototype._getBeta=function(){return null},d.prototype.dblp=function(h){for(var I=this,E=0;E<h;E++)I=I.dbl();return I}},3835:(ke,J,p)=>{"use strict";var t=p(1970),e=p(7433),f=p(3894),C=p(7902),a=t.assert;function M(R){this.twisted=1!=(0|R.a),this.mOneA=this.twisted&&-1==(0|R.a),this.extended=this.mOneA,C.call(this,"edwards",R),this.a=new e(R.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(R.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(R.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|R.c)}function d(R,h,I,E,L){C.BasePoint.call(this,R,"projective"),null===h&&null===I&&null===E?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new e(h,16),this.y=new e(I,16),this.z=E?new e(E,16):this.curve.one,this.t=L&&new e(L,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}f(M,C),ke.exports=M,M.prototype._mulA=function(h){return this.mOneA?h.redNeg():this.a.redMul(h)},M.prototype._mulC=function(h){return this.oneC?h:this.c.redMul(h)},M.prototype.jpoint=function(h,I,E,L){return this.point(h,I,E,L)},M.prototype.pointFromX=function(h,I){(h=new e(h,16)).red||(h=h.toRed(this.red));var E=h.redSqr(),L=this.c2.redSub(this.a.redMul(E)),T=this.one.redSub(this.c2.redMul(this.d).redMul(E)),N=L.redMul(T.redInvm()),w=N.redSqrt();if(0!==w.redSqr().redSub(N).cmp(this.zero))throw new Error("invalid point");var G=w.fromRed().isOdd();return(I&&!G||!I&&G)&&(w=w.redNeg()),this.point(h,w)},M.prototype.pointFromY=function(h,I){(h=new e(h,16)).red||(h=h.toRed(this.red));var E=h.redSqr(),L=E.redSub(this.c2),T=E.redMul(this.d).redMul(this.c2).redSub(this.a),N=L.redMul(T.redInvm());if(0===N.cmp(this.zero)){if(I)throw new Error("invalid point");return this.point(this.zero,h)}var w=N.redSqrt();if(0!==w.redSqr().redSub(N).cmp(this.zero))throw new Error("invalid point");return w.fromRed().isOdd()!==I&&(w=w.redNeg()),this.point(w,h)},M.prototype.validate=function(h){if(h.isInfinity())return!0;h.normalize();var I=h.x.redSqr(),E=h.y.redSqr(),L=I.redMul(this.a).redAdd(E),T=this.c2.redMul(this.one.redAdd(this.d.redMul(I).redMul(E)));return 0===L.cmp(T)},f(d,C.BasePoint),M.prototype.pointFromJSON=function(h){return d.fromJSON(this,h)},M.prototype.point=function(h,I,E,L){return new d(this,h,I,E,L)},d.fromJSON=function(h,I){return new d(h,I[0],I[1],I[2])},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var h=this.x.redSqr(),I=this.y.redSqr(),E=this.z.redSqr();E=E.redIAdd(E);var L=this.curve._mulA(h),T=this.x.redAdd(this.y).redSqr().redISub(h).redISub(I),N=L.redAdd(I),w=N.redSub(E),G=L.redSub(I),K=T.redMul(w),Q=N.redMul(G),re=T.redMul(G),ie=w.redMul(N);return this.curve.point(K,Q,ie,re)},d.prototype._projDbl=function(){var L,T,N,w,G,K,h=this.x.redAdd(this.y).redSqr(),I=this.x.redSqr(),E=this.y.redSqr();if(this.curve.twisted){var Q=(w=this.curve._mulA(I)).redAdd(E);this.zOne?(L=h.redSub(I).redSub(E).redMul(Q.redSub(this.curve.two)),T=Q.redMul(w.redSub(E)),N=Q.redSqr().redSub(Q).redSub(Q)):(G=this.z.redSqr(),K=Q.redSub(G).redISub(G),L=h.redSub(I).redISub(E).redMul(K),T=Q.redMul(w.redSub(E)),N=Q.redMul(K))}else w=I.redAdd(E),G=this.curve._mulC(this.z).redSqr(),K=w.redSub(G).redSub(G),L=this.curve._mulC(h.redISub(w)).redMul(K),T=this.curve._mulC(w).redMul(I.redISub(E)),N=w.redMul(K);return this.curve.point(L,T,N)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(h){var I=this.y.redSub(this.x).redMul(h.y.redSub(h.x)),E=this.y.redAdd(this.x).redMul(h.y.redAdd(h.x)),L=this.t.redMul(this.curve.dd).redMul(h.t),T=this.z.redMul(h.z.redAdd(h.z)),N=E.redSub(I),w=T.redSub(L),G=T.redAdd(L),K=E.redAdd(I),Q=N.redMul(w),re=G.redMul(K),ie=N.redMul(K),ce=w.redMul(G);return this.curve.point(Q,re,ce,ie)},d.prototype._projAdd=function(h){var re,ie,I=this.z.redMul(h.z),E=I.redSqr(),L=this.x.redMul(h.x),T=this.y.redMul(h.y),N=this.curve.d.redMul(L).redMul(T),w=E.redSub(N),G=E.redAdd(N),K=this.x.redAdd(this.y).redMul(h.x.redAdd(h.y)).redISub(L).redISub(T),Q=I.redMul(w).redMul(K);return this.curve.twisted?(re=I.redMul(G).redMul(T.redSub(this.curve._mulA(L))),ie=w.redMul(G)):(re=I.redMul(G).redMul(T.redSub(L)),ie=this.curve._mulC(w).redMul(G)),this.curve.point(Q,re,ie)},d.prototype.add=function(h){return this.isInfinity()?h:h.isInfinity()?this:this.curve.extended?this._extAdd(h):this._projAdd(h)},d.prototype.mul=function(h){return this._hasDoubles(h)?this.curve._fixedNafMul(this,h):this.curve._wnafMul(this,h)},d.prototype.mulAdd=function(h,I,E){return this.curve._wnafMulAdd(1,[this,I],[h,E],2,!1)},d.prototype.jmulAdd=function(h,I,E){return this.curve._wnafMulAdd(1,[this,I],[h,E],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var h=this.z.redInvm();return this.x=this.x.redMul(h),this.y=this.y.redMul(h),this.t&&(this.t=this.t.redMul(h)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(h){return this===h||0===this.getX().cmp(h.getX())&&0===this.getY().cmp(h.getY())},d.prototype.eqXToP=function(h){var I=h.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(I))return!0;for(var E=h.clone(),L=this.curve.redN.redMul(this.z);;){if(E.iadd(this.curve.n),E.cmp(this.curve.p)>=0)return!1;if(I.redIAdd(L),0===this.x.cmp(I))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},6270:(ke,J,p)=>{"use strict";var t=J;t.base=p(7902),t.short=p(1781),t.mont=p(7064),t.edwards=p(3835)},7064:(ke,J,p)=>{"use strict";var t=p(7433),e=p(3894),f=p(7902),C=p(1970);function a(d){f.call(this,"mont",d),this.a=new t(d.a,16).toRed(this.red),this.b=new t(d.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function M(d,R,h){f.BasePoint.call(this,d,"projective"),null===R&&null===h?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(R,16),this.z=new t(h,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}e(a,f),ke.exports=a,a.prototype.validate=function(R){var h=R.normalize().x,I=h.redSqr(),E=I.redMul(h).redAdd(I.redMul(this.a)).redAdd(h);return 0===E.redSqrt().redSqr().cmp(E)},e(M,f.BasePoint),a.prototype.decodePoint=function(R,h){return this.point(C.toArray(R,h),1)},a.prototype.point=function(R,h){return new M(this,R,h)},a.prototype.pointFromJSON=function(R){return M.fromJSON(this,R)},M.prototype.precompute=function(){},M.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},M.fromJSON=function(R,h){return new M(R,h[0],h[1]||R.one)},M.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},M.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},M.prototype.dbl=function(){var h=this.x.redAdd(this.z).redSqr(),E=this.x.redSub(this.z).redSqr(),L=h.redSub(E),T=h.redMul(E),N=L.redMul(E.redAdd(this.curve.a24.redMul(L)));return this.curve.point(T,N)},M.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.diffAdd=function(R,h){var I=this.x.redAdd(this.z),E=this.x.redSub(this.z),L=R.x.redAdd(R.z),N=R.x.redSub(R.z).redMul(I),w=L.redMul(E),G=h.z.redMul(N.redAdd(w).redSqr()),K=h.x.redMul(N.redISub(w).redSqr());return this.curve.point(G,K)},M.prototype.mul=function(R){for(var h=R.clone(),I=this,E=this.curve.point(null,null),T=[];0!==h.cmpn(0);h.iushrn(1))T.push(h.andln(1));for(var N=T.length-1;N>=0;N--)0===T[N]?(I=I.diffAdd(E,this),E=E.dbl()):(E=I.diffAdd(E,this),I=I.dbl());return E},M.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.eq=function(R){return 0===this.getX().cmp(R.getX())},M.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},M.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(ke,J,p)=>{"use strict";var t=p(1970),e=p(7433),f=p(3894),C=p(7902),a=t.assert;function M(h){C.call(this,"short",h),this.a=new e(h.a,16).toRed(this.red),this.b=new e(h.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(h),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(h,I,E,L){C.BasePoint.call(this,h,"affine"),null===I&&null===E?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(I,16),this.y=new e(E,16),L&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function R(h,I,E,L){C.BasePoint.call(this,h,"jacobian"),null===I&&null===E&&null===L?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(I,16),this.y=new e(E,16),this.z=new e(L,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}f(M,C),ke.exports=M,M.prototype._getEndomorphism=function(I){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var E,L;if(I.beta)E=new e(I.beta,16).toRed(this.red);else{var T=this._getEndoRoots(this.p);E=(E=T[0].cmp(T[1])<0?T[0]:T[1]).toRed(this.red)}if(I.lambda)L=new e(I.lambda,16);else{var N=this._getEndoRoots(this.n);0===this.g.mul(N[0]).x.cmp(this.g.x.redMul(E))?L=N[0]:a(0===this.g.mul(L=N[1]).x.cmp(this.g.x.redMul(E)))}return{beta:E,lambda:L,basis:I.basis?I.basis.map(function(G){return{a:new e(G.a,16),b:new e(G.b,16)}}):this._getEndoBasis(L)}}},M.prototype._getEndoRoots=function(I){var E=I===this.p?this.red:e.mont(I),L=new e(2).toRed(E).redInvm(),T=L.redNeg(),N=new e(3).toRed(E).redNeg().redSqrt().redMul(L);return[T.redAdd(N).fromRed(),T.redSub(N).fromRed()]},M.prototype._getEndoBasis=function(I){for(var Q,re,ie,ce,ae,ne,le,pe,S,E=this.n.ushrn(Math.floor(this.n.bitLength()/2)),L=I,T=this.n.clone(),N=new e(1),w=new e(0),G=new e(0),K=new e(1),ee=0;0!==L.cmpn(0);){var i=T.div(L);pe=T.sub(i.mul(L)),S=G.sub(i.mul(N));var r=K.sub(i.mul(w));if(!ie&&pe.cmp(E)<0)Q=le.neg(),re=N,ie=pe.neg(),ce=S;else if(ie&&2==++ee)break;le=pe,T=L,L=pe,G=N,N=S,K=w,w=r}ae=pe.neg(),ne=S;var u=ie.sqr().add(ce.sqr());return ae.sqr().add(ne.sqr()).cmp(u)>=0&&(ae=Q,ne=re),ie.negative&&(ie=ie.neg(),ce=ce.neg()),ae.negative&&(ae=ae.neg(),ne=ne.neg()),[{a:ie,b:ce},{a:ae,b:ne}]},M.prototype._endoSplit=function(I){var E=this.endo.basis,L=E[0],T=E[1],N=T.b.mul(I).divRound(this.n),w=L.b.neg().mul(I).divRound(this.n),G=N.mul(L.a),K=w.mul(T.a),Q=N.mul(L.b),re=w.mul(T.b);return{k1:I.sub(G).sub(K),k2:Q.add(re).neg()}},M.prototype.pointFromX=function(I,E){(I=new e(I,16)).red||(I=I.toRed(this.red));var L=I.redSqr().redMul(I).redIAdd(I.redMul(this.a)).redIAdd(this.b),T=L.redSqrt();if(0!==T.redSqr().redSub(L).cmp(this.zero))throw new Error("invalid point");var N=T.fromRed().isOdd();return(E&&!N||!E&&N)&&(T=T.redNeg()),this.point(I,T)},M.prototype.validate=function(I){if(I.inf)return!0;var E=I.x,L=I.y,T=this.a.redMul(E),N=E.redSqr().redMul(E).redIAdd(T).redIAdd(this.b);return 0===L.redSqr().redISub(N).cmpn(0)},M.prototype._endoWnafMulAdd=function(I,E,L){for(var T=this._endoWnafT1,N=this._endoWnafT2,w=0;w<I.length;w++){var G=this._endoSplit(E[w]),K=I[w],Q=K._getBeta();G.k1.negative&&(G.k1.ineg(),K=K.neg(!0)),G.k2.negative&&(G.k2.ineg(),Q=Q.neg(!0)),T[2*w]=K,T[2*w+1]=Q,N[2*w]=G.k1,N[2*w+1]=G.k2}for(var re=this._wnafMulAdd(1,T,N,2*w,L),ie=0;ie<2*w;ie++)T[ie]=null,N[ie]=null;return re},f(d,C.BasePoint),M.prototype.point=function(I,E,L){return new d(this,I,E,L)},M.prototype.pointFromJSON=function(I,E){return d.fromJSON(this,I,E)},d.prototype._getBeta=function(){if(this.curve.endo){var I=this.precomputed;if(I&&I.beta)return I.beta;var E=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(I){var L=this.curve,T=function(N){return L.point(N.x.redMul(L.endo.beta),N.y)};I.beta=E,E.precomputed={beta:null,naf:I.naf&&{wnd:I.naf.wnd,points:I.naf.points.map(T)},doubles:I.doubles&&{step:I.doubles.step,points:I.doubles.points.map(T)}}}return E}},d.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},d.fromJSON=function(I,E,L){"string"==typeof E&&(E=JSON.parse(E));var T=I.point(E[0],E[1],L);if(!E[2])return T;function N(G){return I.point(G[0],G[1],L)}var w=E[2];return T.precomputed={beta:null,doubles:w.doubles&&{step:w.doubles.step,points:[T].concat(w.doubles.points.map(N))},naf:w.naf&&{wnd:w.naf.wnd,points:[T].concat(w.naf.points.map(N))}},T},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(I){if(this.inf)return I;if(I.inf)return this;if(this.eq(I))return this.dbl();if(this.neg().eq(I))return this.curve.point(null,null);if(0===this.x.cmp(I.x))return this.curve.point(null,null);var E=this.y.redSub(I.y);0!==E.cmpn(0)&&(E=E.redMul(this.x.redSub(I.x).redInvm()));var L=E.redSqr().redISub(this.x).redISub(I.x),T=E.redMul(this.x.redSub(L)).redISub(this.y);return this.curve.point(L,T)},d.prototype.dbl=function(){if(this.inf)return this;var I=this.y.redAdd(this.y);if(0===I.cmpn(0))return this.curve.point(null,null);var E=this.curve.a,L=this.x.redSqr(),T=I.redInvm(),N=L.redAdd(L).redIAdd(L).redIAdd(E).redMul(T),w=N.redSqr().redISub(this.x.redAdd(this.x)),G=N.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,G)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(I){return I=new e(I,16),this.isInfinity()?this:this._hasDoubles(I)?this.curve._fixedNafMul(this,I):this.curve.endo?this.curve._endoWnafMulAdd([this],[I]):this.curve._wnafMul(this,I)},d.prototype.mulAdd=function(I,E,L){var T=[this,E],N=[I,L];return this.curve.endo?this.curve._endoWnafMulAdd(T,N):this.curve._wnafMulAdd(1,T,N,2)},d.prototype.jmulAdd=function(I,E,L){var T=[this,E],N=[I,L];return this.curve.endo?this.curve._endoWnafMulAdd(T,N,!0):this.curve._wnafMulAdd(1,T,N,2,!0)},d.prototype.eq=function(I){return this===I||this.inf===I.inf&&(this.inf||0===this.x.cmp(I.x)&&0===this.y.cmp(I.y))},d.prototype.neg=function(I){if(this.inf)return this;var E=this.curve.point(this.x,this.y.redNeg());if(I&&this.precomputed){var L=this.precomputed,T=function(N){return N.neg()};E.precomputed={naf:L.naf&&{wnd:L.naf.wnd,points:L.naf.points.map(T)},doubles:L.doubles&&{step:L.doubles.step,points:L.doubles.points.map(T)}}}return E},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},f(R,C.BasePoint),M.prototype.jpoint=function(I,E,L){return new R(this,I,E,L)},R.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var I=this.z.redInvm(),E=I.redSqr(),L=this.x.redMul(E),T=this.y.redMul(E).redMul(I);return this.curve.point(L,T)},R.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},R.prototype.add=function(I){if(this.isInfinity())return I;if(I.isInfinity())return this;var E=I.z.redSqr(),L=this.z.redSqr(),T=this.x.redMul(E),N=I.x.redMul(L),w=this.y.redMul(E.redMul(I.z)),G=I.y.redMul(L.redMul(this.z)),K=T.redSub(N),Q=w.redSub(G);if(0===K.cmpn(0))return 0!==Q.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var re=K.redSqr(),ie=re.redMul(K),ce=T.redMul(re),ae=Q.redSqr().redIAdd(ie).redISub(ce).redISub(ce),ne=Q.redMul(ce.redISub(ae)).redISub(w.redMul(ie)),le=this.z.redMul(I.z).redMul(K);return this.curve.jpoint(ae,ne,le)},R.prototype.mixedAdd=function(I){if(this.isInfinity())return I.toJ();if(I.isInfinity())return this;var E=this.z.redSqr(),L=this.x,T=I.x.redMul(E),N=this.y,w=I.y.redMul(E).redMul(this.z),G=L.redSub(T),K=N.redSub(w);if(0===G.cmpn(0))return 0!==K.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var Q=G.redSqr(),re=Q.redMul(G),ie=L.redMul(Q),ce=K.redSqr().redIAdd(re).redISub(ie).redISub(ie),ae=K.redMul(ie.redISub(ce)).redISub(N.redMul(re)),ne=this.z.redMul(G);return this.curve.jpoint(ce,ae,ne)},R.prototype.dblp=function(I){if(0===I)return this;if(this.isInfinity())return this;if(!I)return this.dbl();var E;if(this.curve.zeroA||this.curve.threeA){var L=this;for(E=0;E<I;E++)L=L.dbl();return L}var T=this.curve.a,N=this.curve.tinv,w=this.x,G=this.y,K=this.z,Q=K.redSqr().redSqr(),re=G.redAdd(G);for(E=0;E<I;E++){var ie=w.redSqr(),ce=re.redSqr(),ae=ce.redSqr(),ne=ie.redAdd(ie).redIAdd(ie).redIAdd(T.redMul(Q)),le=w.redMul(ce),ee=ne.redSqr().redISub(le.redAdd(le)),pe=le.redISub(ee),S=ne.redMul(pe);S=S.redIAdd(S).redISub(ae);var i=re.redMul(K);E+1<I&&(Q=Q.redMul(ae)),w=ee,K=i,re=S}return this.curve.jpoint(w,re.redMul(N),K)},R.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},R.prototype._zeroDbl=function(){var I,E,L;if(this.zOne){var T=this.x.redSqr(),N=this.y.redSqr(),w=N.redSqr(),G=this.x.redAdd(N).redSqr().redISub(T).redISub(w);G=G.redIAdd(G);var K=T.redAdd(T).redIAdd(T),Q=K.redSqr().redISub(G).redISub(G),re=w.redIAdd(w);re=(re=re.redIAdd(re)).redIAdd(re),I=Q,E=K.redMul(G.redISub(Q)).redISub(re),L=this.y.redAdd(this.y)}else{var ie=this.x.redSqr(),ce=this.y.redSqr(),ae=ce.redSqr(),ne=this.x.redAdd(ce).redSqr().redISub(ie).redISub(ae);ne=ne.redIAdd(ne);var le=ie.redAdd(ie).redIAdd(ie),ee=le.redSqr(),pe=ae.redIAdd(ae);pe=(pe=pe.redIAdd(pe)).redIAdd(pe),I=ee.redISub(ne).redISub(ne),E=le.redMul(ne.redISub(I)).redISub(pe),L=(L=this.y.redMul(this.z)).redIAdd(L)}return this.curve.jpoint(I,E,L)},R.prototype._threeDbl=function(){var I,E,L;if(this.zOne){var T=this.x.redSqr(),N=this.y.redSqr(),w=N.redSqr(),G=this.x.redAdd(N).redSqr().redISub(T).redISub(w);G=G.redIAdd(G);var K=T.redAdd(T).redIAdd(T).redIAdd(this.curve.a),Q=K.redSqr().redISub(G).redISub(G);I=Q;var re=w.redIAdd(w);re=(re=re.redIAdd(re)).redIAdd(re),E=K.redMul(G.redISub(Q)).redISub(re),L=this.y.redAdd(this.y)}else{var ie=this.z.redSqr(),ce=this.y.redSqr(),ae=this.x.redMul(ce),ne=this.x.redSub(ie).redMul(this.x.redAdd(ie));ne=ne.redAdd(ne).redIAdd(ne);var le=ae.redIAdd(ae),ee=(le=le.redIAdd(le)).redAdd(le);I=ne.redSqr().redISub(ee),L=this.y.redAdd(this.z).redSqr().redISub(ce).redISub(ie);var pe=ce.redSqr();pe=(pe=(pe=pe.redIAdd(pe)).redIAdd(pe)).redIAdd(pe),E=ne.redMul(le.redISub(I)).redISub(pe)}return this.curve.jpoint(I,E,L)},R.prototype._dbl=function(){var I=this.curve.a,E=this.x,L=this.y,T=this.z,N=T.redSqr().redSqr(),w=E.redSqr(),G=L.redSqr(),K=w.redAdd(w).redIAdd(w).redIAdd(I.redMul(N)),Q=E.redAdd(E),re=(Q=Q.redIAdd(Q)).redMul(G),ie=K.redSqr().redISub(re.redAdd(re)),ce=re.redISub(ie),ae=G.redSqr();ae=(ae=(ae=ae.redIAdd(ae)).redIAdd(ae)).redIAdd(ae);var ne=K.redMul(ce).redISub(ae),le=L.redAdd(L).redMul(T);return this.curve.jpoint(ie,ne,le)},R.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var I=this.x.redSqr(),E=this.y.redSqr(),L=this.z.redSqr(),T=E.redSqr(),N=I.redAdd(I).redIAdd(I),w=N.redSqr(),G=this.x.redAdd(E).redSqr().redISub(I).redISub(T),K=(G=(G=(G=G.redIAdd(G)).redAdd(G).redIAdd(G)).redISub(w)).redSqr(),Q=T.redIAdd(T);Q=(Q=(Q=Q.redIAdd(Q)).redIAdd(Q)).redIAdd(Q);var re=N.redIAdd(G).redSqr().redISub(w).redISub(K).redISub(Q),ie=E.redMul(re);ie=(ie=ie.redIAdd(ie)).redIAdd(ie);var ce=this.x.redMul(K).redISub(ie);ce=(ce=ce.redIAdd(ce)).redIAdd(ce);var ae=this.y.redMul(re.redMul(Q.redISub(re)).redISub(G.redMul(K)));ae=(ae=(ae=ae.redIAdd(ae)).redIAdd(ae)).redIAdd(ae);var ne=this.z.redAdd(G).redSqr().redISub(L).redISub(K);return this.curve.jpoint(ce,ae,ne)},R.prototype.mul=function(I,E){return I=new e(I,E),this.curve._wnafMul(this,I)},R.prototype.eq=function(I){if("affine"===I.type)return this.eq(I.toJ());if(this===I)return!0;var E=this.z.redSqr(),L=I.z.redSqr();if(0!==this.x.redMul(L).redISub(I.x.redMul(E)).cmpn(0))return!1;var T=E.redMul(this.z),N=L.redMul(I.z);return 0===this.y.redMul(N).redISub(I.y.redMul(T)).cmpn(0)},R.prototype.eqXToP=function(I){var E=this.z.redSqr(),L=I.toRed(this.curve.red).redMul(E);if(0===this.x.cmp(L))return!0;for(var T=I.clone(),N=this.curve.redN.redMul(E);;){if(T.iadd(this.curve.n),T.cmp(this.curve.p)>=0)return!1;if(L.redIAdd(N),0===this.x.cmp(L))return!0}},R.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},R.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(ke,J,p)=>{"use strict";var R,t=J,e=p(7084),f=p(6270),a=p(1970).assert;function M(h){this.curve="short"===h.type?new f.short(h):"edwards"===h.type?new f.edwards(h):new f.mont(h),this.g=this.curve.g,this.n=this.curve.n,this.hash=h.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(h,I){Object.defineProperty(t,h,{configurable:!0,enumerable:!0,get:function(){var E=new M(I);return Object.defineProperty(t,h,{configurable:!0,enumerable:!0,value:E}),E}})}t.PresetCurve=M,d("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:e.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),d("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:e.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),d("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{R=p(5150)}catch{R=void 0}d("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",R]})},7626:(ke,J,p)=>{"use strict";var t=p(7433),e=p(2438),f=p(1970),C=p(2916),a=p(7950),M=f.assert,d=p(1259),R=p(5957);function h(I){if(!(this instanceof h))return new h(I);"string"==typeof I&&(M(Object.prototype.hasOwnProperty.call(C,I),"Unknown curve "+I),I=C[I]),I instanceof C.PresetCurve&&(I={curve:I}),this.curve=I.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=I.curve.g,this.g.precompute(I.curve.n.bitLength()+1),this.hash=I.hash||I.curve.hash}ke.exports=h,h.prototype.keyPair=function(E){return new d(this,E)},h.prototype.keyFromPrivate=function(E,L){return d.fromPrivate(this,E,L)},h.prototype.keyFromPublic=function(E,L){return d.fromPublic(this,E,L)},h.prototype.genKeyPair=function(E){E||(E={});for(var L=new e({hash:this.hash,pers:E.pers,persEnc:E.persEnc||"utf8",entropy:E.entropy||a(this.hash.hmacStrength),entropyEnc:E.entropy&&E.entropyEnc||"utf8",nonce:this.n.toArray()}),T=this.n.byteLength(),N=this.n.sub(new t(2));;){var w=new t(L.generate(T));if(!(w.cmp(N)>0))return w.iaddn(1),this.keyFromPrivate(w)}},h.prototype._truncateToN=function(E,L){var T=8*E.byteLength()-this.n.bitLength();return T>0&&(E=E.ushrn(T)),!L&&E.cmp(this.n)>=0?E.sub(this.n):E},h.prototype.sign=function(E,L,T,N){"object"==typeof T&&(N=T,T=null),N||(N={}),L=this.keyFromPrivate(L,T),E=this._truncateToN(new t(E,16));for(var w=this.n.byteLength(),G=L.getPrivate().toArray("be",w),K=E.toArray("be",w),Q=new e({hash:this.hash,entropy:G,nonce:K,pers:N.pers,persEnc:N.persEnc||"utf8"}),re=this.n.sub(new t(1)),ie=0;;ie++){var ce=N.k?N.k(ie):new t(Q.generate(this.n.byteLength()));if(!((ce=this._truncateToN(ce,!0)).cmpn(1)<=0||ce.cmp(re)>=0)){var ae=this.g.mul(ce);if(!ae.isInfinity()){var ne=ae.getX(),le=ne.umod(this.n);if(0!==le.cmpn(0)){var ee=ce.invm(this.n).mul(le.mul(L.getPrivate()).iadd(E));if(0!==(ee=ee.umod(this.n)).cmpn(0)){var pe=(ae.getY().isOdd()?1:0)|(0!==ne.cmp(le)?2:0);return N.canonical&&ee.cmp(this.nh)>0&&(ee=this.n.sub(ee),pe^=1),new R({r:le,s:ee,recoveryParam:pe})}}}}}},h.prototype.verify=function(E,L,T,N){E=this._truncateToN(new t(E,16)),T=this.keyFromPublic(T,N);var w=(L=new R(L,"hex")).r,G=L.s;if(w.cmpn(1)<0||w.cmp(this.n)>=0||G.cmpn(1)<0||G.cmp(this.n)>=0)return!1;var ie,K=G.invm(this.n),Q=K.mul(E).umod(this.n),re=K.mul(w).umod(this.n);return this.curve._maxwellTrick?!(ie=this.g.jmulAdd(Q,T.getPublic(),re)).isInfinity()&&ie.eqXToP(w):!(ie=this.g.mulAdd(Q,T.getPublic(),re)).isInfinity()&&0===ie.getX().umod(this.n).cmp(w)},h.prototype.recoverPubKey=function(I,E,L,T){M((3&L)===L,"The recovery param is more than two bits"),E=new R(E,T);var N=this.n,w=new t(I),G=E.r,K=E.s,Q=1&L,re=L>>1;if(G.cmp(this.curve.p.umod(this.curve.n))>=0&&re)throw new Error("Unable to find sencond key candinate");G=this.curve.pointFromX(re?G.add(this.curve.n):G,Q);var ie=E.r.invm(N),ce=N.sub(w).mul(ie).umod(N),ae=K.mul(ie).umod(N);return this.g.mulAdd(ce,G,ae)},h.prototype.getKeyRecoveryParam=function(I,E,L,T){if(null!==(E=new R(E,T)).recoveryParam)return E.recoveryParam;for(var N=0;N<4;N++){var w;try{w=this.recoverPubKey(I,E,N)}catch{continue}if(w.eq(L))return N}throw new Error("Unable to find valid recovery factor")}},1259:(ke,J,p)=>{"use strict";var t=p(7433),f=p(1970).assert;function C(a,M){this.ec=a,this.priv=null,this.pub=null,M.priv&&this._importPrivate(M.priv,M.privEnc),M.pub&&this._importPublic(M.pub,M.pubEnc)}ke.exports=C,C.fromPublic=function(M,d,R){return d instanceof C?d:new C(M,{pub:d,pubEnc:R})},C.fromPrivate=function(M,d,R){return d instanceof C?d:new C(M,{priv:d,privEnc:R})},C.prototype.validate=function(){var M=this.getPublic();return M.isInfinity()?{result:!1,reason:"Invalid public key"}:M.validate()?M.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"}},C.prototype.getPublic=function(M,d){return"string"==typeof M&&(d=M,M=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),d?this.pub.encode(d,M):this.pub},C.prototype.getPrivate=function(M){return"hex"===M?this.priv.toString(16,2):this.priv},C.prototype._importPrivate=function(M,d){this.priv=new t(M,d||16),this.priv=this.priv.umod(this.ec.curve.n)},C.prototype._importPublic=function(M,d){if(M.x||M.y)return"mont"===this.ec.curve.type?f(M.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&f(M.x&&M.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(M.x,M.y));this.pub=this.ec.curve.decodePoint(M,d)},C.prototype.derive=function(M){return M.validate()||f(M.validate(),"public point not validated"),M.mul(this.priv).getX()},C.prototype.sign=function(M,d,R){return this.ec.sign(M,this,d,R)},C.prototype.verify=function(M,d){return this.ec.verify(M,d,this)},C.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},5957:(ke,J,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.assert;function C(h,I){if(h instanceof C)return h;this._importDER(h,I)||(f(h.r&&h.s,"Signature without r or s"),this.r=new t(h.r,16),this.s=new t(h.s,16),this.recoveryParam=void 0===h.recoveryParam?null:h.recoveryParam)}function a(){this.place=0}function M(h,I){var E=h[I.place++];if(!(128&E))return E;var L=15&E;if(0===L||L>4)return!1;for(var T=0,N=0,w=I.place;N<L;N++,w++)T<<=8,T|=h[w],T>>>=0;return!(T<=127)&&(I.place=w,T)}function d(h){for(var I=0,E=h.length-1;!h[I]&&!(128&h[I+1])&&I<E;)I++;return 0===I?h:h.slice(I)}function R(h,I){if(I<128)h.push(I);else{var E=1+(Math.log(I)/Math.LN2>>>3);for(h.push(128|E);--E;)h.push(I>>>(E<<3)&255);h.push(I)}}ke.exports=C,C.prototype._importDER=function(I,E){I=e.toArray(I,E);var L=new a;if(48!==I[L.place++])return!1;var T=M(I,L);if(!1===T||T+L.place!==I.length||2!==I[L.place++])return!1;var N=M(I,L);if(!1===N)return!1;var w=I.slice(L.place,N+L.place);if(L.place+=N,2!==I[L.place++])return!1;var G=M(I,L);if(!1===G||I.length!==G+L.place)return!1;var K=I.slice(L.place,G+L.place);if(0===w[0]){if(!(128&w[1]))return!1;w=w.slice(1)}if(0===K[0]){if(!(128&K[1]))return!1;K=K.slice(1)}return this.r=new t(w),this.s=new t(K),this.recoveryParam=null,!0},C.prototype.toDER=function(I){var E=this.r.toArray(),L=this.s.toArray();for(128&E[0]&&(E=[0].concat(E)),128&L[0]&&(L=[0].concat(L)),E=d(E),L=d(L);!(L[0]||128&L[1]);)L=L.slice(1);var T=[2];R(T,E.length),(T=T.concat(E)).push(2),R(T,L.length);var N=T.concat(L),w=[48];return R(w,N.length),w=w.concat(N),e.encode(w,I)}},1885:(ke,J,p)=>{"use strict";var t=p(7084),e=p(2916),f=p(1970),C=f.assert,a=f.parseBytes,M=p(7535),d=p(8241);function R(h){if(C("ed25519"===h,"only tested with ed25519 so far"),!(this instanceof R))return new R(h);this.curve=h=e[h].curve,this.g=h.g,this.g.precompute(h.n.bitLength()+1),this.pointClass=h.point().constructor,this.encodingLength=Math.ceil(h.n.bitLength()/8),this.hash=t.sha512}ke.exports=R,R.prototype.sign=function(I,E){I=a(I);var L=this.keyFromSecret(E),T=this.hashInt(L.messagePrefix(),I),N=this.g.mul(T),w=this.encodePoint(N),G=this.hashInt(w,L.pubBytes(),I).mul(L.priv()),K=T.add(G).umod(this.curve.n);return this.makeSignature({R:N,S:K,Rencoded:w})},R.prototype.verify=function(I,E,L){I=a(I),E=this.makeSignature(E);var T=this.keyFromPublic(L),N=this.hashInt(E.Rencoded(),T.pubBytes(),I),w=this.g.mul(E.S());return E.R().add(T.pub().mul(N)).eq(w)},R.prototype.hashInt=function(){for(var I=this.hash(),E=0;E<arguments.length;E++)I.update(arguments[E]);return f.intFromLE(I.digest()).umod(this.curve.n)},R.prototype.keyFromPublic=function(I){return M.fromPublic(this,I)},R.prototype.keyFromSecret=function(I){return M.fromSecret(this,I)},R.prototype.makeSignature=function(I){return I instanceof d?I:new d(this,I)},R.prototype.encodePoint=function(I){var E=I.getY().toArray("le",this.encodingLength);return E[this.encodingLength-1]|=I.getX().isOdd()?128:0,E},R.prototype.decodePoint=function(I){var E=(I=f.parseBytes(I)).length-1,L=I.slice(0,E).concat(-129&I[E]),T=0!=(128&I[E]),N=f.intFromLE(L);return this.curve.pointFromY(N,T)},R.prototype.encodeInt=function(I){return I.toArray("le",this.encodingLength)},R.prototype.decodeInt=function(I){return f.intFromLE(I)},R.prototype.isPoint=function(I){return I instanceof this.pointClass}},7535:(ke,J,p)=>{"use strict";var t=p(1970),e=t.assert,f=t.parseBytes,C=t.cachedProperty;function a(M,d){this.eddsa=M,this._secret=f(d.secret),M.isPoint(d.pub)?this._pub=d.pub:this._pubBytes=f(d.pub)}a.fromPublic=function(d,R){return R instanceof a?R:new a(d,{pub:R})},a.fromSecret=function(d,R){return R instanceof a?R:new a(d,{secret:R})},a.prototype.secret=function(){return this._secret},C(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),C(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),C(a,"privBytes",function(){var d=this.eddsa,R=this.hash(),h=d.encodingLength-1,I=R.slice(0,d.encodingLength);return I[0]&=248,I[h]&=127,I[h]|=64,I}),C(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),C(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),C(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(d){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(d,this)},a.prototype.verify=function(d,R){return this.eddsa.verify(d,R,this)},a.prototype.getSecret=function(d){return e(this._secret,"KeyPair is public only"),t.encode(this.secret(),d)},a.prototype.getPublic=function(d){return t.encode(this.pubBytes(),d)},ke.exports=a},8241:(ke,J,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.assert,C=e.cachedProperty,a=e.parseBytes;function M(d,R){this.eddsa=d,"object"!=typeof R&&(R=a(R)),Array.isArray(R)&&(R={R:R.slice(0,d.encodingLength),S:R.slice(d.encodingLength)}),f(R.R&&R.S,"Signature without R or S"),d.isPoint(R.R)&&(this._R=R.R),R.S instanceof t&&(this._S=R.S),this._Rencoded=Array.isArray(R.R)?R.R:R.Rencoded,this._Sencoded=Array.isArray(R.S)?R.S:R.Sencoded}C(M,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),C(M,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),C(M,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),C(M,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),M.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},M.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()},ke.exports=M},5150:ke=>{ke.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},1970:(ke,J,p)=>{"use strict";var t=J,e=p(7433),f=p(2391),C=p(8195);t.assert=f,t.toArray=C.toArray,t.zero2=C.zero2,t.toHex=C.toHex,t.encode=C.encode,t.getNAF=function a(I,E,L){var T=new Array(Math.max(I.bitLength(),L)+1);T.fill(0);for(var N=1<<E+1,w=I.clone(),G=0;G<T.length;G++){var K,Q=w.andln(N-1);w.isOdd()?w.isubn(K=Q>(N>>1)-1?(N>>1)-Q:Q):K=0,T[G]=K,w.iushrn(1)}return T},t.getJSF=function M(I,E){var L=[[],[]];I=I.clone(),E=E.clone();for(var w,T=0,N=0;I.cmpn(-T)>0||E.cmpn(-N)>0;){var Q,re,G=I.andln(3)+T&3,K=E.andln(3)+N&3;3===G&&(G=-1),3===K&&(K=-1),Q=0==(1&G)?0:3!=(w=I.andln(7)+T&7)&&5!==w||2!==K?G:-G,L[0].push(Q),re=0==(1&K)?0:3!=(w=E.andln(7)+N&7)&&5!==w||2!==G?K:-K,L[1].push(re),2*T===Q+1&&(T=1-T),2*N===re+1&&(N=1-N),I.iushrn(1),E.iushrn(1)}return L},t.cachedProperty=function d(I,E,L){var T="_"+E;I.prototype[E]=function(){return void 0!==this[T]?this[T]:this[T]=L.call(this)}},t.parseBytes=function R(I){return"string"==typeof I?t.toArray(I,"hex"):I},t.intFromLE=function h(I){return new e(I,"hex","le")}},7433:function(ke,J,p){!function(t,e){"use strict";function f(S,i){if(!S)throw new Error(i||"Assertion failed")}function C(S,i){S.super_=i;var r=function(){};r.prototype=i.prototype,S.prototype=new r,S.prototype.constructor=S}function a(S,i,r){if(a.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,null!==S&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(S||0,i||10,r||"be"))}var M;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{M=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:p(5568).Buffer}catch{}function d(S,i){var r=S.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(S,i,r){var u=d(S,r);return r-1>=i&&(u|=d(S,r-1)<<4),u}function h(S,i,r,u){for(var l=0,y=Math.min(S.length,r),D=i;D<y;D++){var k=S.charCodeAt(D)-48;l*=u,l+=k>=49?k-49+10:k>=17?k-17+10:k}return l}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===r?this._parseHex(i,l,u):(this._parseBase(i,r,l),"le"===u&&this._initArray(this.toArray(),r,u)))},a.prototype._initNumber=function(i,r,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(f(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),r,u)},a.prototype._initArray=function(i,r,u){if(f("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var y,D,k=0;if("be"===u)for(l=i.length-1,y=0;l>=0;l-=3)this.words[y]|=(D=i[l]|i[l-1]<<8|i[l-2]<<16)<<k&67108863,this.words[y+1]=D>>>26-k&67108863,(k+=24)>=26&&(k-=26,y++);else if("le"===u)for(l=0,y=0;l<i.length;l+=3)this.words[y]|=(D=i[l]|i[l+1]<<8|i[l+2]<<16)<<k&67108863,this.words[y+1]=D>>>26-k&67108863,(k+=24)>=26&&(k-=26,y++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var k,y=0,D=0;if("be"===u)for(l=i.length-1;l>=r;l-=2)k=R(i,r,l)<<y,this.words[D]|=67108863&k,y>=18?(y-=18,this.words[D+=1]|=k>>>26):y+=8;else for(l=(i.length-r)%2==0?r+1:r;l<i.length;l+=2)k=R(i,r,l)<<y,this.words[D]|=67108863&k,y>=18?(y-=18,this.words[D+=1]|=k>>>26):y+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=r)l++;l--,y=y/r|0;for(var D=i.length-u,k=D%l,b=Math.min(D,D-k)+u,n=0,_=u;_<b;_+=l)n=h(i,_,_+l,r),this.imuln(y),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==k){var W=1;for(n=h(i,_,i.length,r),_=0;_<k;_++)W*=r;this.imuln(W),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},a.prototype.copy=function(i){i.words=new Array(this.length);for(var r=0;r<this.length;r++)i.words[r]=this.words[r];i.length=this.length,i.negative=this.negative,i.red=this.red},a.prototype.clone=function(){var i=new a(null);return this.copy(i),i},a.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var I=["","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"],E=[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],L=[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 N(S,i,r){r.negative=i.negative^S.negative;var u=S.length+i.length|0;r.length=u,u=u-1|0;var l=0|S.words[0],y=0|i.words[0],D=l*y,b=D/67108864|0;r.words[0]=67108863&D;for(var n=1;n<u;n++){for(var _=b>>>26,W=67108863&b,P=Math.min(n,i.length-1),U=Math.max(0,n-S.length+1);U<=P;U++)_+=(D=(l=0|S.words[n-U|0])*(y=0|i.words[U])+W)/67108864|0,W=67108863&D;r.words[n]=0|W,b=0|_}return 0!==b?r.words[n]=0|b:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,y=0,D=0;D<this.length;D++){var k=this.words[D],b=(16777215&(k<<l|y)).toString(16);u=0!=(y=k>>>24-l&16777215)||D!==this.length-1?I[6-b.length]+b+u:b+u,(l+=2)>=26&&(l-=26,D--)}for(0!==y&&(u=y.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=E[i],_=L[i];u="";var W=this.clone();for(W.negative=0;!W.isZero();){var P=W.modn(_).toString(i);u=(W=W.idivn(_)).isZero()?P+u:I[n-P.length]+P+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(typeof M<"u"),this.toArrayLike(M,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var l=this.byteLength(),y=u||Math.max(1,l);f(l<=y,"byte array longer than desired length"),f(y>0,"Requested array length <= 0"),this.strip();var b,n,D="le"===r,k=new i(y),_=this.clone();if(D){for(n=0;!_.isZero();n++)b=_.andln(255),_.iushrn(8),k[n]=b;for(;n<y;n++)k[n]=0}else{for(n=0;n<y-l;n++)k[n]=0;for(n=0;!_.isZero();n++)b=_.andln(255),_.iushrn(8),k[y-n-1]=b}return k},a.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;r<this.length;r++){var u=this._zeroBits(this.words[r]);if(i+=u,26!==u)break}return i},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},a.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var r=0;r<i.length;r++)this.words[r]=this.words[r]|i.words[r];return this.strip()},a.prototype.ior=function(i){return f(0==(this.negative|i.negative)),this.iuor(i)},a.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;u<r.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=r.length,this.strip()},a.prototype.iand=function(i){return f(0==(this.negative|i.negative)),this.iuand(i)},a.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=r.words[l]^u.words[l];if(this!==r)for(;l<r.length;l++)this.words[l]=r.words[l];return this.length=r.length,this.strip()},a.prototype.ixor=function(i){return f(0==(this.negative|i.negative)),this.iuxor(i)},a.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var l=0;l<r;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},a.prototype.iadd=function(i){var r,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,r=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,r=this.isub(i),i.negative=1,r._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var y=0,D=0;D<l.length;D++)this.words[D]=67108863&(r=(0|u.words[D])+(0|l.words[D])+y),y=r>>>26;for(;0!==y&&D<u.length;D++)this.words[D]=67108863&(r=(0|u.words[D])+y),y=r>>>26;if(this.length=u.length,0!==y)this.words[this.length]=y,this.length++;else if(u!==this)for(;D<u.length;D++)this.words[D]=u.words[D];return this},a.prototype.add=function(i){var r;return 0!==i.negative&&0===this.negative?(i.negative=0,r=this.sub(i),i.negative^=1,r):0===i.negative&&0!==this.negative?(this.negative=0,r=i.sub(this),this.negative=1,r):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var l,y,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,y=i):(l=i,y=this);for(var D=0,k=0;k<y.length;k++)D=(r=(0|l.words[k])-(0|y.words[k])+D)>>26,this.words[k]=67108863&r;for(;0!==D&&k<l.length;k++)D=(r=(0|l.words[k])+D)>>26,this.words[k]=67108863&r;if(0===D&&k<l.length&&l!==this)for(;k<l.length;k++)this.words[k]=l.words[k];return this.length=Math.max(this.length,k),l!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,r,u){var b,n,_,l=i.words,y=r.words,D=u.words,k=0,W=0|l[0],P=8191&W,U=W>>>13,me=0|l[1],nt=8191&me,Pe=me>>>13,Oe=0|l[2],De=8191&Oe,ue=Oe>>>13,ve=0|l[3],Ie=8191&ve,$=ve>>>13,Ge=0|l[4],ut=8191&Ge,Ee=Ge>>>13,ye=0|l[5],he=8191&ye,de=ye>>>13,we=0|l[6],Y=8191&we,j=we>>>13,Ce=0|l[7],Se=8191&Ce,X=Ce>>>13,Ye=0|l[8],Le=8191&Ye,gt=Ye>>>13,Wt=0|l[9],Rt=8191&Wt,jt=Wt>>>13,hi=0|y[0],yt=8191&hi,Pt=hi>>>13,pt=0|y[1],vt=8191&pt,Ct=pt>>>13,At=0|y[2],dt=8191&At,ze=At>>>13,Ve=0|y[3],Fe=8191&Ve,be=Ve>>>13,xt=0|y[4],ct=8191&xt,Nt=xt>>>13,et=0|y[5],Ae=8191&et,rt=et>>>13,Qe=0|y[6],Ke=8191&Qe,mt=Qe>>>13,$t=0|y[7],Gt=8191&$t,zt=$t>>>13,Et=0|y[8],ht=8191&Et,at=Et>>>13,ei=0|y[9],Ut=8191&ei,qt=ei>>>13;u.negative=i.negative^r.negative,u.length=19;var Pi=(k+(b=Math.imul(P,yt))|0)+((8191&(n=(n=Math.imul(P,Pt))+Math.imul(U,yt)|0))<<13)|0;k=((_=Math.imul(U,Pt))+(n>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,b=Math.imul(nt,yt),n=(n=Math.imul(nt,Pt))+Math.imul(Pe,yt)|0,_=Math.imul(Pe,Pt);var Ii=(k+(b=b+Math.imul(P,vt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ct)|0)+Math.imul(U,vt)|0))<<13)|0;k=((_=_+Math.imul(U,Ct)|0)+(n>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,b=Math.imul(De,yt),n=(n=Math.imul(De,Pt))+Math.imul(ue,yt)|0,_=Math.imul(ue,Pt),b=b+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,Ct)|0)+Math.imul(Pe,vt)|0,_=_+Math.imul(Pe,Ct)|0;var Ei=(k+(b=b+Math.imul(P,dt)|0)|0)+((8191&(n=(n=n+Math.imul(P,ze)|0)+Math.imul(U,dt)|0))<<13)|0;k=((_=_+Math.imul(U,ze)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,b=Math.imul(Ie,yt),n=(n=Math.imul(Ie,Pt))+Math.imul($,yt)|0,_=Math.imul($,Pt),b=b+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,Ct)|0)+Math.imul(ue,vt)|0,_=_+Math.imul(ue,Ct)|0,b=b+Math.imul(nt,dt)|0,n=(n=n+Math.imul(nt,ze)|0)+Math.imul(Pe,dt)|0,_=_+Math.imul(Pe,ze)|0;var Vi=(k+(b=b+Math.imul(P,Fe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(U,Fe)|0))<<13)|0;k=((_=_+Math.imul(U,be)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,b=Math.imul(ut,yt),n=(n=Math.imul(ut,Pt))+Math.imul(Ee,yt)|0,_=Math.imul(Ee,Pt),b=b+Math.imul(Ie,vt)|0,n=(n=n+Math.imul(Ie,Ct)|0)+Math.imul($,vt)|0,_=_+Math.imul($,Ct)|0,b=b+Math.imul(De,dt)|0,n=(n=n+Math.imul(De,ze)|0)+Math.imul(ue,dt)|0,_=_+Math.imul(ue,ze)|0,b=b+Math.imul(nt,Fe)|0,n=(n=n+Math.imul(nt,be)|0)+Math.imul(Pe,Fe)|0,_=_+Math.imul(Pe,be)|0;var Be=(k+(b=b+Math.imul(P,ct)|0)|0)+((8191&(n=(n=n+Math.imul(P,Nt)|0)+Math.imul(U,ct)|0))<<13)|0;k=((_=_+Math.imul(U,Nt)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,b=Math.imul(he,yt),n=(n=Math.imul(he,Pt))+Math.imul(de,yt)|0,_=Math.imul(de,Pt),b=b+Math.imul(ut,vt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Ee,vt)|0,_=_+Math.imul(Ee,Ct)|0,b=b+Math.imul(Ie,dt)|0,n=(n=n+Math.imul(Ie,ze)|0)+Math.imul($,dt)|0,_=_+Math.imul($,ze)|0,b=b+Math.imul(De,Fe)|0,n=(n=n+Math.imul(De,be)|0)+Math.imul(ue,Fe)|0,_=_+Math.imul(ue,be)|0,b=b+Math.imul(nt,ct)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Pe,ct)|0,_=_+Math.imul(Pe,Nt)|0;var kt=(k+(b=b+Math.imul(P,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(P,rt)|0)+Math.imul(U,Ae)|0))<<13)|0;k=((_=_+Math.imul(U,rt)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,b=Math.imul(Y,yt),n=(n=Math.imul(Y,Pt))+Math.imul(j,yt)|0,_=Math.imul(j,Pt),b=b+Math.imul(he,vt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(de,vt)|0,_=_+Math.imul(de,Ct)|0,b=b+Math.imul(ut,dt)|0,n=(n=n+Math.imul(ut,ze)|0)+Math.imul(Ee,dt)|0,_=_+Math.imul(Ee,ze)|0,b=b+Math.imul(Ie,Fe)|0,n=(n=n+Math.imul(Ie,be)|0)+Math.imul($,Fe)|0,_=_+Math.imul($,be)|0,b=b+Math.imul(De,ct)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(ue,ct)|0,_=_+Math.imul(ue,Nt)|0,b=b+Math.imul(nt,Ae)|0,n=(n=n+Math.imul(nt,rt)|0)+Math.imul(Pe,Ae)|0,_=_+Math.imul(Pe,rt)|0;var _e=(k+(b=b+Math.imul(P,Ke)|0)|0)+((8191&(n=(n=n+Math.imul(P,mt)|0)+Math.imul(U,Ke)|0))<<13)|0;k=((_=_+Math.imul(U,mt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,b=Math.imul(Se,yt),n=(n=Math.imul(Se,Pt))+Math.imul(X,yt)|0,_=Math.imul(X,Pt),b=b+Math.imul(Y,vt)|0,n=(n=n+Math.imul(Y,Ct)|0)+Math.imul(j,vt)|0,_=_+Math.imul(j,Ct)|0,b=b+Math.imul(he,dt)|0,n=(n=n+Math.imul(he,ze)|0)+Math.imul(de,dt)|0,_=_+Math.imul(de,ze)|0,b=b+Math.imul(ut,Fe)|0,n=(n=n+Math.imul(ut,be)|0)+Math.imul(Ee,Fe)|0,_=_+Math.imul(Ee,be)|0,b=b+Math.imul(Ie,ct)|0,n=(n=n+Math.imul(Ie,Nt)|0)+Math.imul($,ct)|0,_=_+Math.imul($,Nt)|0,b=b+Math.imul(De,Ae)|0,n=(n=n+Math.imul(De,rt)|0)+Math.imul(ue,Ae)|0,_=_+Math.imul(ue,rt)|0,b=b+Math.imul(nt,Ke)|0,n=(n=n+Math.imul(nt,mt)|0)+Math.imul(Pe,Ke)|0,_=_+Math.imul(Pe,mt)|0;var Je=(k+(b=b+Math.imul(P,Gt)|0)|0)+((8191&(n=(n=n+Math.imul(P,zt)|0)+Math.imul(U,Gt)|0))<<13)|0;k=((_=_+Math.imul(U,zt)|0)+(n>>>13)|0)+(Je>>>26)|0,Je&=67108863,b=Math.imul(Le,yt),n=(n=Math.imul(Le,Pt))+Math.imul(gt,yt)|0,_=Math.imul(gt,Pt),b=b+Math.imul(Se,vt)|0,n=(n=n+Math.imul(Se,Ct)|0)+Math.imul(X,vt)|0,_=_+Math.imul(X,Ct)|0,b=b+Math.imul(Y,dt)|0,n=(n=n+Math.imul(Y,ze)|0)+Math.imul(j,dt)|0,_=_+Math.imul(j,ze)|0,b=b+Math.imul(he,Fe)|0,n=(n=n+Math.imul(he,be)|0)+Math.imul(de,Fe)|0,_=_+Math.imul(de,be)|0,b=b+Math.imul(ut,ct)|0,n=(n=n+Math.imul(ut,Nt)|0)+Math.imul(Ee,ct)|0,_=_+Math.imul(Ee,Nt)|0,b=b+Math.imul(Ie,Ae)|0,n=(n=n+Math.imul(Ie,rt)|0)+Math.imul($,Ae)|0,_=_+Math.imul($,rt)|0,b=b+Math.imul(De,Ke)|0,n=(n=n+Math.imul(De,mt)|0)+Math.imul(ue,Ke)|0,_=_+Math.imul(ue,mt)|0,b=b+Math.imul(nt,Gt)|0,n=(n=n+Math.imul(nt,zt)|0)+Math.imul(Pe,Gt)|0,_=_+Math.imul(Pe,zt)|0;var _t=(k+(b=b+Math.imul(P,ht)|0)|0)+((8191&(n=(n=n+Math.imul(P,at)|0)+Math.imul(U,ht)|0))<<13)|0;k=((_=_+Math.imul(U,at)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,b=Math.imul(Rt,yt),n=(n=Math.imul(Rt,Pt))+Math.imul(jt,yt)|0,_=Math.imul(jt,Pt),b=b+Math.imul(Le,vt)|0,n=(n=n+Math.imul(Le,Ct)|0)+Math.imul(gt,vt)|0,_=_+Math.imul(gt,Ct)|0,b=b+Math.imul(Se,dt)|0,n=(n=n+Math.imul(Se,ze)|0)+Math.imul(X,dt)|0,_=_+Math.imul(X,ze)|0,b=b+Math.imul(Y,Fe)|0,n=(n=n+Math.imul(Y,be)|0)+Math.imul(j,Fe)|0,_=_+Math.imul(j,be)|0,b=b+Math.imul(he,ct)|0,n=(n=n+Math.imul(he,Nt)|0)+Math.imul(de,ct)|0,_=_+Math.imul(de,Nt)|0,b=b+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Ee,Ae)|0,_=_+Math.imul(Ee,rt)|0,b=b+Math.imul(Ie,Ke)|0,n=(n=n+Math.imul(Ie,mt)|0)+Math.imul($,Ke)|0,_=_+Math.imul($,mt)|0,b=b+Math.imul(De,Gt)|0,n=(n=n+Math.imul(De,zt)|0)+Math.imul(ue,Gt)|0,_=_+Math.imul(ue,zt)|0,b=b+Math.imul(nt,ht)|0,n=(n=n+Math.imul(nt,at)|0)+Math.imul(Pe,ht)|0,_=_+Math.imul(Pe,at)|0;var se=(k+(b=b+Math.imul(P,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(P,qt)|0)+Math.imul(U,Ut)|0))<<13)|0;k=((_=_+Math.imul(U,qt)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,b=Math.imul(Rt,vt),n=(n=Math.imul(Rt,Ct))+Math.imul(jt,vt)|0,_=Math.imul(jt,Ct),b=b+Math.imul(Le,dt)|0,n=(n=n+Math.imul(Le,ze)|0)+Math.imul(gt,dt)|0,_=_+Math.imul(gt,ze)|0,b=b+Math.imul(Se,Fe)|0,n=(n=n+Math.imul(Se,be)|0)+Math.imul(X,Fe)|0,_=_+Math.imul(X,be)|0,b=b+Math.imul(Y,ct)|0,n=(n=n+Math.imul(Y,Nt)|0)+Math.imul(j,ct)|0,_=_+Math.imul(j,Nt)|0,b=b+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(de,Ae)|0,_=_+Math.imul(de,rt)|0,b=b+Math.imul(ut,Ke)|0,n=(n=n+Math.imul(ut,mt)|0)+Math.imul(Ee,Ke)|0,_=_+Math.imul(Ee,mt)|0,b=b+Math.imul(Ie,Gt)|0,n=(n=n+Math.imul(Ie,zt)|0)+Math.imul($,Gt)|0,_=_+Math.imul($,zt)|0,b=b+Math.imul(De,ht)|0,n=(n=n+Math.imul(De,at)|0)+Math.imul(ue,ht)|0,_=_+Math.imul(ue,at)|0;var Xe=(k+(b=b+Math.imul(nt,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(nt,qt)|0)+Math.imul(Pe,Ut)|0))<<13)|0;k=((_=_+Math.imul(Pe,qt)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,b=Math.imul(Rt,dt),n=(n=Math.imul(Rt,ze))+Math.imul(jt,dt)|0,_=Math.imul(jt,ze),b=b+Math.imul(Le,Fe)|0,n=(n=n+Math.imul(Le,be)|0)+Math.imul(gt,Fe)|0,_=_+Math.imul(gt,be)|0,b=b+Math.imul(Se,ct)|0,n=(n=n+Math.imul(Se,Nt)|0)+Math.imul(X,ct)|0,_=_+Math.imul(X,Nt)|0,b=b+Math.imul(Y,Ae)|0,n=(n=n+Math.imul(Y,rt)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,rt)|0,b=b+Math.imul(he,Ke)|0,n=(n=n+Math.imul(he,mt)|0)+Math.imul(de,Ke)|0,_=_+Math.imul(de,mt)|0,b=b+Math.imul(ut,Gt)|0,n=(n=n+Math.imul(ut,zt)|0)+Math.imul(Ee,Gt)|0,_=_+Math.imul(Ee,zt)|0,b=b+Math.imul(Ie,ht)|0,n=(n=n+Math.imul(Ie,at)|0)+Math.imul($,ht)|0,_=_+Math.imul($,at)|0;var bt=(k+(b=b+Math.imul(De,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(De,qt)|0)+Math.imul(ue,Ut)|0))<<13)|0;k=((_=_+Math.imul(ue,qt)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,b=Math.imul(Rt,Fe),n=(n=Math.imul(Rt,be))+Math.imul(jt,Fe)|0,_=Math.imul(jt,be),b=b+Math.imul(Le,ct)|0,n=(n=n+Math.imul(Le,Nt)|0)+Math.imul(gt,ct)|0,_=_+Math.imul(gt,Nt)|0,b=b+Math.imul(Se,Ae)|0,n=(n=n+Math.imul(Se,rt)|0)+Math.imul(X,Ae)|0,_=_+Math.imul(X,rt)|0,b=b+Math.imul(Y,Ke)|0,n=(n=n+Math.imul(Y,mt)|0)+Math.imul(j,Ke)|0,_=_+Math.imul(j,mt)|0,b=b+Math.imul(he,Gt)|0,n=(n=n+Math.imul(he,zt)|0)+Math.imul(de,Gt)|0,_=_+Math.imul(de,zt)|0,b=b+Math.imul(ut,ht)|0,n=(n=n+Math.imul(ut,at)|0)+Math.imul(Ee,ht)|0,_=_+Math.imul(Ee,at)|0;var Vt=(k+(b=b+Math.imul(Ie,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Ie,qt)|0)+Math.imul($,Ut)|0))<<13)|0;k=((_=_+Math.imul($,qt)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,b=Math.imul(Rt,ct),n=(n=Math.imul(Rt,Nt))+Math.imul(jt,ct)|0,_=Math.imul(jt,Nt),b=b+Math.imul(Le,Ae)|0,n=(n=n+Math.imul(Le,rt)|0)+Math.imul(gt,Ae)|0,_=_+Math.imul(gt,rt)|0,b=b+Math.imul(Se,Ke)|0,n=(n=n+Math.imul(Se,mt)|0)+Math.imul(X,Ke)|0,_=_+Math.imul(X,mt)|0,b=b+Math.imul(Y,Gt)|0,n=(n=n+Math.imul(Y,zt)|0)+Math.imul(j,Gt)|0,_=_+Math.imul(j,zt)|0,b=b+Math.imul(he,ht)|0,n=(n=n+Math.imul(he,at)|0)+Math.imul(de,ht)|0,_=_+Math.imul(de,at)|0;var mi=(k+(b=b+Math.imul(ut,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(ut,qt)|0)+Math.imul(Ee,Ut)|0))<<13)|0;k=((_=_+Math.imul(Ee,qt)|0)+(n>>>13)|0)+(mi>>>26)|0,mi&=67108863,b=Math.imul(Rt,Ae),n=(n=Math.imul(Rt,rt))+Math.imul(jt,Ae)|0,_=Math.imul(jt,rt),b=b+Math.imul(Le,Ke)|0,n=(n=n+Math.imul(Le,mt)|0)+Math.imul(gt,Ke)|0,_=_+Math.imul(gt,mt)|0,b=b+Math.imul(Se,Gt)|0,n=(n=n+Math.imul(Se,zt)|0)+Math.imul(X,Gt)|0,_=_+Math.imul(X,zt)|0,b=b+Math.imul(Y,ht)|0,n=(n=n+Math.imul(Y,at)|0)+Math.imul(j,ht)|0,_=_+Math.imul(j,at)|0;var Hi=(k+(b=b+Math.imul(he,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(he,qt)|0)+Math.imul(de,Ut)|0))<<13)|0;k=((_=_+Math.imul(de,qt)|0)+(n>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,b=Math.imul(Rt,Ke),n=(n=Math.imul(Rt,mt))+Math.imul(jt,Ke)|0,_=Math.imul(jt,mt),b=b+Math.imul(Le,Gt)|0,n=(n=n+Math.imul(Le,zt)|0)+Math.imul(gt,Gt)|0,_=_+Math.imul(gt,zt)|0,b=b+Math.imul(Se,ht)|0,n=(n=n+Math.imul(Se,at)|0)+Math.imul(X,ht)|0,_=_+Math.imul(X,at)|0;var Ui=(k+(b=b+Math.imul(Y,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Y,qt)|0)+Math.imul(j,Ut)|0))<<13)|0;k=((_=_+Math.imul(j,qt)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,b=Math.imul(Rt,Gt),n=(n=Math.imul(Rt,zt))+Math.imul(jt,Gt)|0,_=Math.imul(jt,zt),b=b+Math.imul(Le,ht)|0,n=(n=n+Math.imul(Le,at)|0)+Math.imul(gt,ht)|0,_=_+Math.imul(gt,at)|0;var Ji=(k+(b=b+Math.imul(Se,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Se,qt)|0)+Math.imul(X,Ut)|0))<<13)|0;k=((_=_+Math.imul(X,qt)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,b=Math.imul(Rt,ht),n=(n=Math.imul(Rt,at))+Math.imul(jt,ht)|0,_=Math.imul(jt,at);var an=(k+(b=b+Math.imul(Le,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Le,qt)|0)+Math.imul(gt,Ut)|0))<<13)|0;k=((_=_+Math.imul(gt,qt)|0)+(n>>>13)|0)+(an>>>26)|0,an&=67108863;var _n=(k+(b=Math.imul(Rt,Ut))|0)+((8191&(n=(n=Math.imul(Rt,qt))+Math.imul(jt,Ut)|0))<<13)|0;return k=((_=Math.imul(jt,qt))+(n>>>13)|0)+(_n>>>26)|0,_n&=67108863,D[0]=Pi,D[1]=Ii,D[2]=Ei,D[3]=Vi,D[4]=Be,D[5]=kt,D[6]=_e,D[7]=Je,D[8]=_t,D[9]=se,D[10]=Xe,D[11]=bt,D[12]=Vt,D[13]=mi,D[14]=Hi,D[15]=Ui,D[16]=Ji,D[17]=an,D[18]=_n,0!==k&&(D[19]=k,u.length++),u};function K(S,i,r){return(new Q).mulp(S,i,r)}function Q(S,i){this.x=S,this.y=i}Math.imul||(w=N),a.prototype.mulTo=function(i,r){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?w(this,i,r):l<63?N(this,i,r):l<1024?function G(S,i,r){r.negative=i.negative^S.negative,r.length=S.length+i.length;for(var u=0,l=0,y=0;y<r.length-1;y++){var D=l;l=0;for(var k=67108863&u,b=Math.min(y,i.length-1),n=Math.max(0,y-S.length+1);n<=b;n++){var U=(0|S.words[y-n])*(0|i.words[n]),me=67108863&U;k=67108863&(me=me+k|0),l+=(D=(D=D+(U/67108864|0)|0)+(me>>>26)|0)>>>26,D&=67108863}r.words[y]=k,u=D,D=l}return 0!==u?r.words[y]=u:r.length--,r.strip()}(this,i,r):K(this,i,r),u},Q.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,l=0;l<i;l++)r[l]=this.revBin(l,u,i);return r},Q.prototype.revBin=function(i,r,u){if(0===i||i===u-1)return i;for(var l=0,y=0;y<r;y++)l|=(1&i)<<r-y-1,i>>=1;return l},Q.prototype.permute=function(i,r,u,l,y,D){for(var k=0;k<D;k++)l[k]=r[i[k]],y[k]=u[i[k]]},Q.prototype.transform=function(i,r,u,l,y,D){this.permute(D,i,r,u,l,y);for(var k=1;k<y;k<<=1)for(var b=k<<1,n=Math.cos(2*Math.PI/b),_=Math.sin(2*Math.PI/b),W=0;W<y;W+=b)for(var P=n,U=_,me=0;me<k;me++){var nt=u[W+me],Pe=l[W+me],Oe=u[W+me+k],De=l[W+me+k],ue=P*Oe-U*De;De=P*De+U*Oe,u[W+me]=nt+(Oe=ue),l[W+me]=Pe+De,u[W+me+k]=nt-Oe,l[W+me+k]=Pe-De,me!==b&&(ue=n*P-_*U,U=n*U+_*P,P=ue)}},Q.prototype.guessLen13b=function(i,r){var u=1|Math.max(r,i),l=1&u,y=0;for(u=u/2|0;u;u>>>=1)y++;return 1<<y+1+l},Q.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var l=0;l<u/2;l++){var y=i[l];i[l]=i[u-l-1],i[u-l-1]=y,y=r[l],r[l]=-r[u-l-1],r[u-l-1]=-y}},Q.prototype.normalize13b=function(i,r){for(var u=0,l=0;l<r/2;l++){var y=8192*Math.round(i[2*l+1]/r)+Math.round(i[2*l]/r)+u;i[l]=67108863&y,u=y<67108864?0:y/67108864|0}return i},Q.prototype.convert13b=function(i,r,u,l){for(var y=0,D=0;D<r;D++)u[2*D]=8191&(y+=0|i[D]),u[2*D+1]=8191&(y>>>=13),y>>>=13;for(D=2*r;D<l;++D)u[D]=0;f(0===y),f(0==(-8192&y))},Q.prototype.stub=function(i){for(var r=new Array(i),u=0;u<i;u++)r[u]=0;return r},Q.prototype.mulp=function(i,r,u){var l=2*this.guessLen13b(i.length,r.length),y=this.makeRBT(l),D=this.stub(l),k=new Array(l),b=new Array(l),n=new Array(l),_=new Array(l),W=new Array(l),P=new Array(l),U=u.words;U.length=l,this.convert13b(i.words,i.length,k,l),this.convert13b(r.words,r.length,_,l),this.transform(k,D,b,n,l,y),this.transform(_,D,W,P,l,y);for(var me=0;me<l;me++){var nt=b[me]*W[me]-n[me]*P[me];n[me]=b[me]*P[me]+n[me]*W[me],b[me]=nt}return this.conjugate(b,n,l),this.transform(b,n,U,D,l,y),this.conjugate(U,D,l),this.normalize13b(U,l),u.negative=i.negative^r.negative,u.length=i.length+r.length,u.strip()},a.prototype.mul=function(i){var r=new a(null);return r.words=new Array(this.length+i.length),this.mulTo(i,r)},a.prototype.mulf=function(i){var r=new a(null);return r.words=new Array(this.length+i.length),K(this,i,r)},a.prototype.imul=function(i){return this.clone().mulTo(i,this)},a.prototype.imuln=function(i){f("number"==typeof i),f(i<67108864);for(var r=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,y=(67108863&l)+(67108863&r);r>>=26,r+=l/67108864|0,r+=y>>>26,this.words[u]=67108863&y}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function T(S){for(var i=new Array(S.bitLength()),r=0;r<i.length;r++){var l=r%26;i[r]=(S.words[r/26|0]&1<<l)>>>l}return i}(i);if(0===r.length)return new a(1);for(var u=this,l=0;l<r.length&&0===r[l];l++,u=u.sqr());if(++l<r.length)for(var y=u.sqr();l<r.length;l++,y=y.sqr())0!==r[l]&&(u=u.mul(y));return u},a.prototype.iushln=function(i){f("number"==typeof i&&i>=0);var y,r=i%26,u=(i-r)/26,l=67108863>>>26-r<<26-r;if(0!==r){var D=0;for(y=0;y<this.length;y++){var k=this.words[y]&l;this.words[y]=(0|this.words[y])-k<<r|D,D=k>>>26-r}D&&(this.words[y]=D,this.length++)}if(0!==u){for(y=this.length-1;y>=0;y--)this.words[y+u]=this.words[y];for(y=0;y<u;y++)this.words[y]=0;this.length+=u}return this.strip()},a.prototype.ishln=function(i){return f(0===this.negative),this.iushln(i)},a.prototype.iushrn=function(i,r,u){var l;f("number"==typeof i&&i>=0),l=r?(r-r%26)/26:0;var y=i%26,D=Math.min((i-y)/26,this.length),k=67108863^67108863>>>y<<y,b=u;if(l-=D,l=Math.max(0,l),b){for(var n=0;n<D;n++)b.words[n]=this.words[n];b.length=D}if(0!==D)if(this.length>D)for(this.length-=D,n=0;n<this.length;n++)this.words[n]=this.words[n+D];else this.words[0]=0,this.length=1;var _=0;for(n=this.length-1;n>=0&&(0!==_||n>=l);n--){var W=0|this.words[n];this.words[n]=_<<26-y|W>>>y,_=W&k}return b&&0!==_&&(b.words[b.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<<r))},a.prototype.imaskn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},a.prototype.maskn=function(i){return this.clone().imaskn(i)},a.prototype.iaddn=function(i){return f("number"==typeof i),f(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},a.prototype._iaddn=function(i){this.words[0]+=i;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(i){return this.clone().iaddn(i)},a.prototype.subn=function(i){return this.clone().isubn(i)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(i,r,u){var y;this._expand(i.length+u);var D,k=0;for(y=0;y<i.length;y++){D=(0|this.words[y+u])+k;var b=(0|i.words[y])*r;k=((D-=67108863&b)>>26)-(b/67108864|0),this.words[y+u]=67108863&D}for(;y<this.length-u;y++)k=(D=(0|this.words[y+u])+k)>>26,this.words[y+u]=67108863&D;if(0===k)return this.strip();for(f(-1===k),k=0,y=0;y<this.length;y++)k=(D=-(0|this.words[y])+k)>>26,this.words[y]=67108863&D;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,l=this.clone(),y=i,D=0|y.words[y.length-1];0!=(u=26-this._countBits(D))&&(y=y.ushln(u),l.iushln(u),D=0|y.words[y.length-1]);var n,b=l.length-y.length;if("mod"!==r){(n=new a(null)).length=b+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var W=l.clone()._ishlnsubmul(y,1,b);0===W.negative&&(l=W,n&&(n.words[b]=1));for(var P=b-1;P>=0;P--){var U=67108864*(0|l.words[y.length+P])+(0|l.words[y.length+P-1]);for(U=Math.min(U/D|0,67108863),l._ishlnsubmul(y,U,P);0!==l.negative;)U--,l.negative=0,l._ishlnsubmul(y,1,P),l.isZero()||(l.negative^=1);n&&(n.words[P]=U)}return n&&n.strip(),l.strip(),"div"!==r&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,r),"mod"!==r&&(l=D.div.neg()),"div"!==r&&(y=D.mod.neg(),u&&0!==y.negative&&y.iadd(i)),{div:l,mod:y}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),r),"mod"!==r&&(l=D.div.neg()),{div:l,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),r),"div"!==r&&(y=D.mod.neg(),u&&0!==y.negative&&y.isub(i)),{div:D.div,mod:y}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var l,y,D},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,l=i.ushrn(1),y=i.andln(1),D=u.cmp(l);return D<0||1===y&&0===D?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(r*u+(0|this.words[l]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*r;this.words[u]=l/i|0,r=l%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var l=new a(1),y=new a(0),D=new a(0),k=new a(1),b=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++b;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var W=0,P=1;0==(r.words[0]&P)&&W<26;++W,P<<=1);if(W>0)for(r.iushrn(W);W-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(n),y.isub(_)),l.iushrn(1),y.iushrn(1);for(var U=0,me=1;0==(u.words[0]&me)&&U<26;++U,me<<=1);if(U>0)for(u.iushrn(U);U-- >0;)(D.isOdd()||k.isOdd())&&(D.iadd(n),k.isub(_)),D.iushrn(1),k.iushrn(1);r.cmp(u)>=0?(r.isub(u),l.isub(D),y.isub(k)):(u.isub(r),D.isub(l),k.isub(y))}return{a:D,b:k,gcd:u.iushln(b)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var W,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var l=new a(1),y=new a(0),D=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var k=0,b=1;0==(r.words[0]&b)&&k<26;++k,b<<=1);if(k>0)for(r.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(D),l.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)y.isOdd()&&y.iadd(D),y.iushrn(1);r.cmp(u)>=0?(r.isub(u),l.isub(y)):(u.isub(r),y.isub(l))}return(W=0===r.cmpn(1)?l:y).cmpn(0)<0&&W.iadd(i),W},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var l=0;r.isEven()&&u.isEven();l++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var y=r.cmp(u);if(y<0){var D=r;r=u,u=D}else if(0===y||0===u.cmpn(1))break;r.isub(u)}return u.iushln(l)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,l=1<<r;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var y=l,D=u;0!==y&&D<this.length;D++){var k=0|this.words[D];y=(k+=y)>>>26,this.words[D]=k&=67108863}return 0!==y&&(this.words[D]=y,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},a.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var r=this.ucmp(i);return 0!==this.negative?0|-r:r},a.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var r=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],y=0|i.words[u];if(l!==y){l<y?r=-1:l>y&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new ee(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var re={k256:null,p224:null,p192:null,p25519:null};function ie(S,i){this.name=S,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ce(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ae(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ne(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(S){if("string"==typeof S){var i=a._prime(S);this.m=i.p,this.prime=i}else f(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function pe(S){ee.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ie.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:r.ucmp(this.p);return 0===l?(r.words[0]=0,r.length=1):l>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ie.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ie.prototype.imulK=function(i){return i.imul(this.k)},C(ce,ie),ce.prototype.split=function(i,r){for(var u=4194303,l=Math.min(i.length,9),y=0;y<l;y++)r.words[y]=i.words[y];if(r.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var D=i.words[9];for(r.words[r.length++]=D&u,y=10;y<i.length;y++){var k=0|i.words[y];i.words[y-10]=(k&u)<<4|D>>>22,D=k}i.words[y-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ce.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(r+=977*l),r=64*l+(r/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ae,ie),C(ne,ie),C(le,ie),le.prototype.imulK=function(i){for(var r=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+r,y=67108863&l;l>>>=26,i.words[u]=y,r=l}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(re[i])return re[i];var r;if("k256"===i)r=new ce;else if("p224"===i)r=new ae;else if("p192"===i)r=new ne;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new le}return re[i]=r,r},ee.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},ee.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},ee.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ee.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ee.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},ee.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},ee.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},ee.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},ee.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},ee.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},ee.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},ee.prototype.isqr=function(i){return this.imul(i,i.clone())},ee.prototype.sqr=function(i){return this.mul(i,i)},ee.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),y=0;!l.isZero()&&0===l.andln(1);)y++,l.iushrn(1);f(!l.isZero());var D=new a(1).toRed(this),k=D.redNeg(),b=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,b).cmp(k);)n.redIAdd(k);for(var _=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),P=this.pow(i,l),U=y;0!==P.cmp(D);){for(var me=P,nt=0;0!==me.cmp(D);nt++)me=me.redSqr();f(nt<U);var Pe=this.pow(_,new a(1).iushln(U-nt-1));W=W.redMul(Pe),_=Pe.redSqr(),P=P.redMul(_),U=nt}return W},ee.prototype.invm=function(i){var r=i._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},ee.prototype.pow=function(i,r){if(r.isZero())return new a(1).toRed(this);if(0===r.cmpn(1))return i.clone();var l=new Array(16);l[0]=new a(1).toRed(this),l[1]=i;for(var y=2;y<l.length;y++)l[y]=this.mul(l[y-1],i);var D=l[0],k=0,b=0,n=r.bitLength()%26;for(0===n&&(n=26),y=r.length-1;y>=0;y--){for(var _=r.words[y],W=n-1;W>=0;W--){var P=_>>W&1;D!==l[0]&&(D=this.sqr(D)),0!==P||0!==k?(k<<=1,k|=P,(4==++b||0===y&&0===W)&&(D=this.mul(D,l[k]),b=0,k=0)):b=0}n=26}return D},ee.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},ee.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new pe(i)},C(pe,ee),pe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},pe.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},pe.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),D=y;return y.cmp(this.m)>=0?D=y.isub(this.m):y.cmpn(0)<0&&(D=y.iadd(this.m)),D._forceRed(this)},pe.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),D=y;return y.cmp(this.m)>=0?D=y.isub(this.m):y.cmpn(0)<0&&(D=y.iadd(this.m)),D._forceRed(this)},pe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=p.nmd(ke),this)},8419:ke=>{"use strict";ke.exports=function(p){for(var t=[],e=p.length,f=0;f<e;f++){var C=p.charCodeAt(f);if(C>=55296&&C<=56319&&e>f+1){var a=p.charCodeAt(f+1);a>=56320&&a<=57343&&(C=1024*(C-55296)+a-56320+65536,f+=1)}C<128?t.push(C):C<2048?(t.push(C>>6|192),t.push(63&C|128)):C<55296||C>=57344&&C<65536?(t.push(C>>12|224),t.push(C>>6&63|128),t.push(63&C|128)):C>=65536&&C<=1114111?(t.push(C>>18|240),t.push(C>>12&63|128),t.push(C>>6&63|128),t.push(63&C|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},9069:ke=>{"use strict";var t,J="object"==typeof Reflect?Reflect:null,p=J&&"function"==typeof J.apply?J.apply:function(ie,ce,ae){return Function.prototype.apply.call(ie,ce,ae)};t=J&&"function"==typeof J.ownKeys?J.ownKeys:Object.getOwnPropertySymbols?function(ie){return Object.getOwnPropertyNames(ie).concat(Object.getOwnPropertySymbols(ie))}:function(ie){return Object.getOwnPropertyNames(ie)};var f=Number.isNaN||function(ie){return ie!=ie};function C(){C.init.call(this)}ke.exports=C,ke.exports.once=function G(re,ie){return new Promise(function(ce,ae){function ne(ee){re.removeListener(ie,le),ae(ee)}function le(){"function"==typeof re.removeListener&&re.removeListener("error",ne),ce([].slice.call(arguments))}Q(re,ie,le,{once:!0}),"error"!==ie&&function K(re,ie,ce){"function"==typeof re.on&&Q(re,"error",ie,ce)}(re,ne,{once:!0})})},C.EventEmitter=C,C.prototype._events=void 0,C.prototype._eventsCount=0,C.prototype._maxListeners=void 0;var a=10;function M(re){if("function"!=typeof re)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof re)}function d(re){return void 0===re._maxListeners?C.defaultMaxListeners:re._maxListeners}function R(re,ie,ce,ae){var ne,le,ee;if(M(ce),void 0===(le=re._events)?(le=re._events=Object.create(null),re._eventsCount=0):(void 0!==le.newListener&&(re.emit("newListener",ie,ce.listener?ce.listener:ce),le=re._events),ee=le[ie]),void 0===ee)ee=le[ie]=ce,++re._eventsCount;else if("function"==typeof ee?ee=le[ie]=ae?[ce,ee]:[ee,ce]:ae?ee.unshift(ce):ee.push(ce),(ne=d(re))>0&&ee.length>ne&&!ee.warned){ee.warned=!0;var pe=new Error("Possible EventEmitter memory leak detected. "+ee.length+" "+String(ie)+" listeners added. Use emitter.setMaxListeners() to increase limit");pe.name="MaxListenersExceededWarning",pe.emitter=re,pe.type=ie,pe.count=ee.length,function e(re){console&&console.warn&&console.warn(re)}(pe)}return re}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function I(re,ie,ce){var ae={fired:!1,wrapFn:void 0,target:re,type:ie,listener:ce},ne=h.bind(ae);return ne.listener=ce,ae.wrapFn=ne,ne}function E(re,ie,ce){var ae=re._events;if(void 0===ae)return[];var ne=ae[ie];return void 0===ne?[]:"function"==typeof ne?ce?[ne.listener||ne]:[ne]:ce?function w(re){for(var ie=new Array(re.length),ce=0;ce<ie.length;++ce)ie[ce]=re[ce].listener||re[ce];return ie}(ne):T(ne,ne.length)}function L(re){var ie=this._events;if(void 0!==ie){var ce=ie[re];if("function"==typeof ce)return 1;if(void 0!==ce)return ce.length}return 0}function T(re,ie){for(var ce=new Array(ie),ae=0;ae<ie;++ae)ce[ae]=re[ae];return ce}function Q(re,ie,ce,ae){if("function"==typeof re.on)ae.once?re.once(ie,ce):re.on(ie,ce);else{if("function"!=typeof re.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof re);re.addEventListener(ie,function ne(le){ae.once&&re.removeEventListener(ie,ne),ce(le)})}}Object.defineProperty(C,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(re){if("number"!=typeof re||re<0||f(re))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+re+".");a=re}}),C.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},C.prototype.setMaxListeners=function(ie){if("number"!=typeof ie||ie<0||f(ie))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ie+".");return this._maxListeners=ie,this},C.prototype.getMaxListeners=function(){return d(this)},C.prototype.emit=function(ie){for(var ce=[],ae=1;ae<arguments.length;ae++)ce.push(arguments[ae]);var ne="error"===ie,le=this._events;if(void 0!==le)ne=ne&&void 0===le.error;else if(!ne)return!1;if(ne){var ee;if(ce.length>0&&(ee=ce[0]),ee instanceof Error)throw ee;var pe=new Error("Unhandled error."+(ee?" ("+ee.message+")":""));throw pe.context=ee,pe}var S=le[ie];if(void 0===S)return!1;if("function"==typeof S)p(S,this,ce);else{var i=S.length,r=T(S,i);for(ae=0;ae<i;++ae)p(r[ae],this,ce)}return!0},C.prototype.on=C.prototype.addListener=function(ie,ce){return R(this,ie,ce,!1)},C.prototype.prependListener=function(ie,ce){return R(this,ie,ce,!0)},C.prototype.once=function(ie,ce){return M(ce),this.on(ie,I(this,ie,ce)),this},C.prototype.prependOnceListener=function(ie,ce){return M(ce),this.prependListener(ie,I(this,ie,ce)),this},C.prototype.off=C.prototype.removeListener=function(ie,ce){var ae,ne,le,ee,pe;if(M(ce),void 0===(ne=this._events))return this;if(void 0===(ae=ne[ie]))return this;if(ae===ce||ae.listener===ce)0==--this._eventsCount?this._events=Object.create(null):(delete ne[ie],ne.removeListener&&this.emit("removeListener",ie,ae.listener||ce));else if("function"!=typeof ae){for(le=-1,ee=ae.length-1;ee>=0;ee--)if(ae[ee]===ce||ae[ee].listener===ce){pe=ae[ee].listener,le=ee;break}if(le<0)return this;0===le?ae.shift():function N(re,ie){for(;ie+1<re.length;ie++)re[ie]=re[ie+1];re.pop()}(ae,le),1===ae.length&&(ne[ie]=ae[0]),void 0!==ne.removeListener&&this.emit("removeListener",ie,pe||ce)}return this},C.prototype.removeAllListeners=function(ie){var ce,ae,ne;if(void 0===(ae=this._events))return this;if(void 0===ae.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==ae[ie]&&(0==--this._eventsCount?this._events=Object.create(null):delete ae[ie]),this;if(0===arguments.length){var ee,le=Object.keys(ae);for(ne=0;ne<le.length;++ne)"removeListener"!==(ee=le[ne])&&this.removeAllListeners(ee);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(ce=ae[ie]))this.removeListener(ie,ce);else if(void 0!==ce)for(ne=ce.length-1;ne>=0;ne--)this.removeListener(ie,ce[ne]);return this},C.prototype.listeners=function(ie){return E(this,ie,!0)},C.prototype.rawListeners=function(ie){return E(this,ie,!1)},C.listenerCount=function(re,ie){return"function"==typeof re.listenerCount?re.listenerCount(ie):L.call(re,ie)},C.prototype.listenerCount=L,C.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},347:(ke,J,p)=>{var t=p(3502).Buffer,e=p(8095);ke.exports=function f(C,a,M,d){if(t.isBuffer(C)||(C=t.from(C,"binary")),a&&(t.isBuffer(a)||(a=t.from(a,"binary")),8!==a.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var R=M/8,h=t.alloc(R),I=t.alloc(d||0),E=t.alloc(0);R>0||d>0;){var L=new e;L.update(E),L.update(C),a&&L.update(a),E=L.digest();var T=0;if(R>0){var N=h.length-R;T=Math.min(R,E.length),E.copy(h,N,0,T),R-=T}if(T<E.length&&d>0){var w=I.length-d,G=Math.min(d,E.length-T);E.copy(I,w,T,T+G),d-=G}}return E.fill(0),{key:h,iv:I}}},9650:(ke,J,p)=>{"use strict";var t=p(3502).Buffer,e=p(5685).Transform;function a(M){e.call(this),this._block=t.allocUnsafe(M),this._blockSize=M,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}p(3894)(a,e),a.prototype._transform=function(M,d,R){var h=null;try{this.update(M,d)}catch(I){h=I}R(h)},a.prototype._flush=function(M){var d=null;try{this.push(this.digest())}catch(R){d=R}M(d)},a.prototype.update=function(M,d){if(function C(M,d){if(!t.isBuffer(M)&&"string"!=typeof M)throw new TypeError(d+" must be a string or a buffer")}(M,"Data"),this._finalized)throw new Error("Digest already called");t.isBuffer(M)||(M=t.from(M,d));for(var R=this._block,h=0;this._blockOffset+M.length-h>=this._blockSize;){for(var I=this._blockOffset;I<this._blockSize;)R[I++]=M[h++];this._update(),this._blockOffset=0}for(;h<M.length;)R[this._blockOffset++]=M[h++];for(var E=0,L=8*M.length;L>0;++E)this._length[E]+=L,(L=this._length[E]/4294967296|0)>0&&(this._length[E]-=4294967296*L);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(M){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var d=this._digest();void 0!==M&&(d=d.toString(M)),this._block.fill(0),this._blockOffset=0;for(var R=0;R<4;++R)this._length[R]=0;return d},a.prototype._digest=function(){throw new Error("_digest is not implemented")},ke.exports=a},7084:(ke,J,p)=>{var t=J;t.utils=p(9299),t.common=p(3800),t.sha=p(4962),t.ripemd=p(9458),t.hmac=p(2194),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},3800:(ke,J,p)=>{"use strict";var t=p(9299),e=p(2391);function f(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}J.BlockHash=f,f.prototype.update=function(a,M){if(a=t.toArray(a,M),this.pending=this.pending?this.pending.concat(a):a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){var d=(a=this.pending).length%this._delta8;this.pending=a.slice(a.length-d,a.length),0===this.pending.length&&(this.pending=null),a=t.join32(a,0,a.length-d,this.endian);for(var R=0;R<a.length;R+=this._delta32)this._update(a,R,R+this._delta32)}return this},f.prototype.digest=function(a){return this.update(this._pad()),e(null===this.pending),this._digest(a)},f.prototype._pad=function(){var a=this.pendingTotal,M=this._delta8,d=M-(a+this.padLength)%M,R=new Array(d+this.padLength);R[0]=128;for(var h=1;h<d;h++)R[h]=0;if(a<<=3,"big"===this.endian){for(var I=8;I<this.padLength;I++)R[h++]=0;R[h++]=0,R[h++]=0,R[h++]=0,R[h++]=0,R[h++]=a>>>24&255,R[h++]=a>>>16&255,R[h++]=a>>>8&255,R[h++]=255&a}else for(R[h++]=255&a,R[h++]=a>>>8&255,R[h++]=a>>>16&255,R[h++]=a>>>24&255,R[h++]=0,R[h++]=0,R[h++]=0,R[h++]=0,I=8;I<this.padLength;I++)R[h++]=0;return R}},2194:(ke,J,p)=>{"use strict";var t=p(9299),e=p(2391);function f(C,a,M){if(!(this instanceof f))return new f(C,a,M);this.Hash=C,this.blockSize=C.blockSize/8,this.outSize=C.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(a,M))}ke.exports=f,f.prototype._init=function(a){a.length>this.blockSize&&(a=(new this.Hash).update(a).digest()),e(a.length<=this.blockSize);for(var M=a.length;M<this.blockSize;M++)a.push(0);for(M=0;M<a.length;M++)a[M]^=54;for(this.inner=(new this.Hash).update(a),M=0;M<a.length;M++)a[M]^=106;this.outer=(new this.Hash).update(a)},f.prototype.update=function(a,M){return this.inner.update(a,M),this},f.prototype.digest=function(a){return this.outer.update(this.inner.digest()),this.outer.digest(a)}},9458:(ke,J,p)=>{"use strict";var t=p(9299),e=p(3800),f=t.rotl32,C=t.sum32,a=t.sum32_3,M=t.sum32_4,d=e.BlockHash;function R(){if(!(this instanceof R))return new R;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(G,K,Q,re){return G<=15?K^Q^re:G<=31?K&Q|~K&re:G<=47?(K|~Q)^re:G<=63?K&re|Q&~re:K^(Q|~re)}function E(G){return G<=15?1352829926:G<=31?1548603684:G<=47?1836072691:G<=63?2053994217:0}t.inherits(R,d),J.ripemd160=R,R.blockSize=512,R.outSize=160,R.hmacStrength=192,R.padLength=64,R.prototype._update=function(K,Q){for(var re=this.h[0],ie=this.h[1],ce=this.h[2],ae=this.h[3],ne=this.h[4],le=re,ee=ie,pe=ce,S=ae,i=ne,r=0;r<80;r++){var u=C(f(M(re,h(r,ie,ce,ae),K[L[r]+Q],(G=r)<=15?0:G<=31?1518500249:G<=47?1859775393:G<=63?2400959708:2840853838),N[r]),ne);re=ne,ne=ae,ae=f(ce,10),ce=ie,ie=u,u=C(f(M(le,h(79-r,ee,pe,S),K[T[r]+Q],E(r)),w[r]),i),le=i,i=S,S=f(pe,10),pe=ee,ee=u}var G;u=a(this.h[1],ce,S),this.h[1]=a(this.h[2],ae,i),this.h[2]=a(this.h[3],ne,le),this.h[3]=a(this.h[4],re,ee),this.h[4]=a(this.h[0],ie,pe),this.h[0]=u},R.prototype._digest=function(K){return"hex"===K?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var L=[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],T=[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],N=[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],w=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},4962:(ke,J,p)=>{"use strict";J.sha1=p(9007),J.sha224=p(55),J.sha256=p(9342),J.sha384=p(8634),J.sha512=p(39)},9007:(ke,J,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(3113),C=t.rotl32,a=t.sum32,M=t.sum32_5,d=f.ft_1,R=e.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function I(){if(!(this instanceof I))return new I;R.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}t.inherits(I,R),ke.exports=I,I.blockSize=512,I.outSize=160,I.hmacStrength=80,I.padLength=64,I.prototype._update=function(L,T){for(var N=this.W,w=0;w<16;w++)N[w]=L[T+w];for(;w<N.length;w++)N[w]=C(N[w-3]^N[w-8]^N[w-14]^N[w-16],1);var G=this.h[0],K=this.h[1],Q=this.h[2],re=this.h[3],ie=this.h[4];for(w=0;w<N.length;w++){var ce=~~(w/20),ae=M(C(G,5),d(ce,K,Q,re),ie,N[w],h[ce]);ie=re,re=Q,Q=C(K,30),K=G,G=ae}this.h[0]=a(this.h[0],G),this.h[1]=a(this.h[1],K),this.h[2]=a(this.h[2],Q),this.h[3]=a(this.h[3],re),this.h[4]=a(this.h[4],ie)},I.prototype._digest=function(L){return"hex"===L?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},55:(ke,J,p)=>{"use strict";var t=p(9299),e=p(9342);function f(){if(!(this instanceof f))return new f;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}t.inherits(f,e),ke.exports=f,f.blockSize=512,f.outSize=224,f.hmacStrength=192,f.padLength=64,f.prototype._digest=function(a){return"hex"===a?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")}},9342:(ke,J,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(3113),C=p(2391),a=t.sum32,M=t.sum32_4,d=t.sum32_5,R=f.ch32,h=f.maj32,I=f.s0_256,E=f.s1_256,L=f.g0_256,T=f.g1_256,N=e.BlockHash,w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function G(){if(!(this instanceof G))return new G;N.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}t.inherits(G,N),ke.exports=G,G.blockSize=512,G.outSize=256,G.hmacStrength=192,G.padLength=64,G.prototype._update=function(Q,re){for(var ie=this.W,ce=0;ce<16;ce++)ie[ce]=Q[re+ce];for(;ce<ie.length;ce++)ie[ce]=M(T(ie[ce-2]),ie[ce-7],L(ie[ce-15]),ie[ce-16]);var ae=this.h[0],ne=this.h[1],le=this.h[2],ee=this.h[3],pe=this.h[4],S=this.h[5],i=this.h[6],r=this.h[7];for(C(this.k.length===ie.length),ce=0;ce<ie.length;ce++){var u=d(r,E(pe),R(pe,S,i),this.k[ce],ie[ce]),l=a(I(ae),h(ae,ne,le));r=i,i=S,S=pe,pe=a(ee,u),ee=le,le=ne,ne=ae,ae=a(u,l)}this.h[0]=a(this.h[0],ae),this.h[1]=a(this.h[1],ne),this.h[2]=a(this.h[2],le),this.h[3]=a(this.h[3],ee),this.h[4]=a(this.h[4],pe),this.h[5]=a(this.h[5],S),this.h[6]=a(this.h[6],i),this.h[7]=a(this.h[7],r)},G.prototype._digest=function(Q){return"hex"===Q?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},8634:(ke,J,p)=>{"use strict";var t=p(9299),e=p(39);function f(){if(!(this instanceof f))return new f;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}t.inherits(f,e),ke.exports=f,f.blockSize=1024,f.outSize=384,f.hmacStrength=192,f.padLength=128,f.prototype._digest=function(a){return"hex"===a?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")}},39:(ke,J,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(2391),C=t.rotr64_hi,a=t.rotr64_lo,M=t.shr64_hi,d=t.shr64_lo,R=t.sum64,h=t.sum64_hi,I=t.sum64_lo,E=t.sum64_4_hi,L=t.sum64_4_lo,T=t.sum64_5_hi,N=t.sum64_5_lo,w=e.BlockHash,G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function K(){if(!(this instanceof K))return new K;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=G,this.W=new Array(160)}function Q(u,l,y,D,k){var b=u&y^~u&k;return b<0&&(b+=4294967296),b}function re(u,l,y,D,k,b){var n=l&D^~l&b;return n<0&&(n+=4294967296),n}function ie(u,l,y,D,k){var b=u&y^u&k^y&k;return b<0&&(b+=4294967296),b}function ce(u,l,y,D,k,b){var n=l&D^l&b^D&b;return n<0&&(n+=4294967296),n}function ae(u,l){var b=C(u,l,28)^C(l,u,2)^C(l,u,7);return b<0&&(b+=4294967296),b}function ne(u,l){var b=a(u,l,28)^a(l,u,2)^a(l,u,7);return b<0&&(b+=4294967296),b}function le(u,l){var b=C(u,l,14)^C(u,l,18)^C(l,u,9);return b<0&&(b+=4294967296),b}function ee(u,l){var b=a(u,l,14)^a(u,l,18)^a(l,u,9);return b<0&&(b+=4294967296),b}function pe(u,l){var b=C(u,l,1)^C(u,l,8)^M(u,l,7);return b<0&&(b+=4294967296),b}function S(u,l){var b=a(u,l,1)^a(u,l,8)^d(u,l,7);return b<0&&(b+=4294967296),b}function i(u,l){var b=C(u,l,19)^C(l,u,29)^M(u,l,6);return b<0&&(b+=4294967296),b}function r(u,l){var b=a(u,l,19)^a(l,u,29)^d(u,l,6);return b<0&&(b+=4294967296),b}t.inherits(K,w),ke.exports=K,K.blockSize=1024,K.outSize=512,K.hmacStrength=192,K.padLength=128,K.prototype._prepareBlock=function(l,y){for(var D=this.W,k=0;k<32;k++)D[k]=l[y+k];for(;k<D.length;k+=2){var b=i(D[k-4],D[k-3]),n=r(D[k-4],D[k-3]),_=D[k-14],W=D[k-13],P=pe(D[k-30],D[k-29]),U=S(D[k-30],D[k-29]),me=D[k-32],nt=D[k-31];D[k]=E(b,n,_,W,P,U,me,nt),D[k+1]=L(b,n,_,W,P,U,me,nt)}},K.prototype._update=function(l,y){this._prepareBlock(l,y);var D=this.W,k=this.h[0],b=this.h[1],n=this.h[2],_=this.h[3],W=this.h[4],P=this.h[5],U=this.h[6],me=this.h[7],nt=this.h[8],Pe=this.h[9],Oe=this.h[10],De=this.h[11],ue=this.h[12],ve=this.h[13],Ie=this.h[14],$=this.h[15];f(this.k.length===D.length);for(var Ge=0;Ge<D.length;Ge+=2){var ut=Ie,Ee=$,ye=le(nt,Pe),he=ee(nt,Pe),de=Q(nt,0,Oe,0,ue),we=re(0,Pe,0,De,0,ve),Y=this.k[Ge],j=this.k[Ge+1],Ce=D[Ge],Se=D[Ge+1],X=T(ut,Ee,ye,he,de,we,Y,j,Ce,Se),Ye=N(ut,Ee,ye,he,de,we,Y,j,Ce,Se);ut=ae(k,b),Ee=ne(k,b),ye=ie(k,0,n,0,W),he=ce(0,b,0,_,0,P);var Le=h(ut,Ee,ye,he),gt=I(ut,Ee,ye,he);Ie=ue,$=ve,ue=Oe,ve=De,Oe=nt,De=Pe,nt=h(U,me,X,Ye),Pe=I(me,me,X,Ye),U=W,me=P,W=n,P=_,n=k,_=b,k=h(X,Ye,Le,gt),b=I(X,Ye,Le,gt)}R(this.h,0,k,b),R(this.h,2,n,_),R(this.h,4,W,P),R(this.h,6,U,me),R(this.h,8,nt,Pe),R(this.h,10,Oe,De),R(this.h,12,ue,ve),R(this.h,14,Ie,$)},K.prototype._digest=function(l){return"hex"===l?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},3113:(ke,J,p)=>{"use strict";var e=p(9299).rotr32;function C(E,L,T){return E&L^~E&T}function a(E,L,T){return E&L^E&T^L&T}function M(E,L,T){return E^L^T}J.ft_1=function f(E,L,T,N){return 0===E?C(L,T,N):1===E||3===E?M(L,T,N):2===E?a(L,T,N):void 0},J.ch32=C,J.maj32=a,J.p32=M,J.s0_256=function d(E){return e(E,2)^e(E,13)^e(E,22)},J.s1_256=function R(E){return e(E,6)^e(E,11)^e(E,25)},J.g0_256=function h(E){return e(E,7)^e(E,18)^E>>>3},J.g1_256=function I(E){return e(E,17)^e(E,19)^E>>>10}},9299:(ke,J,p)=>{"use strict";var t=p(2391),e=p(3894);function f(r,u){return!(55296!=(64512&r.charCodeAt(u))||u<0||u+1>=r.length)&&56320==(64512&r.charCodeAt(u+1))}function M(r){return(r>>>24|r>>>8&65280|r<<8&16711680|(255&r)<<24)>>>0}function R(r){return 1===r.length?"0"+r:r}function h(r){return 7===r.length?"0"+r:6===r.length?"00"+r:5===r.length?"000"+r:4===r.length?"0000"+r:3===r.length?"00000"+r:2===r.length?"000000"+r:1===r.length?"0000000"+r:r}J.inherits=e,J.toArray=function C(r,u){if(Array.isArray(r))return r.slice();if(!r)return[];var l=[];if("string"==typeof r)if(u){if("hex"===u)for((r=r.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(r="0"+r),D=0;D<r.length;D+=2)l.push(parseInt(r[D]+r[D+1],16))}else for(var y=0,D=0;D<r.length;D++){var k=r.charCodeAt(D);k<128?l[y++]=k:k<2048?(l[y++]=k>>6|192,l[y++]=63&k|128):f(r,D)?(k=65536+((1023&k)<<10)+(1023&r.charCodeAt(++D)),l[y++]=k>>18|240,l[y++]=k>>12&63|128,l[y++]=k>>6&63|128,l[y++]=63&k|128):(l[y++]=k>>12|224,l[y++]=k>>6&63|128,l[y++]=63&k|128)}else for(D=0;D<r.length;D++)l[D]=0|r[D];return l},J.toHex=function a(r){for(var u="",l=0;l<r.length;l++)u+=R(r[l].toString(16));return u},J.htonl=M,J.toHex32=function d(r,u){for(var l="",y=0;y<r.length;y++){var D=r[y];"little"===u&&(D=M(D)),l+=h(D.toString(16))}return l},J.zero2=R,J.zero8=h,J.join32=function I(r,u,l,y){var D=l-u;t(D%4==0);for(var k=new Array(D/4),b=0,n=u;b<k.length;b++,n+=4)k[b]=("big"===y?r[n]<<24|r[n+1]<<16|r[n+2]<<8|r[n+3]:r[n+3]<<24|r[n+2]<<16|r[n+1]<<8|r[n])>>>0;return k},J.split32=function E(r,u){for(var l=new Array(4*r.length),y=0,D=0;y<r.length;y++,D+=4){var k=r[y];"big"===u?(l[D]=k>>>24,l[D+1]=k>>>16&255,l[D+2]=k>>>8&255,l[D+3]=255&k):(l[D+3]=k>>>24,l[D+2]=k>>>16&255,l[D+1]=k>>>8&255,l[D]=255&k)}return l},J.rotr32=function L(r,u){return r>>>u|r<<32-u},J.rotl32=function T(r,u){return r<<u|r>>>32-u},J.sum32=function N(r,u){return r+u>>>0},J.sum32_3=function w(r,u,l){return r+u+l>>>0},J.sum32_4=function G(r,u,l,y){return r+u+l+y>>>0},J.sum32_5=function K(r,u,l,y,D){return r+u+l+y+D>>>0},J.sum64=function Q(r,u,l,y){var b=y+r[u+1]>>>0;r[u]=(b<y?1:0)+l+r[u]>>>0,r[u+1]=b},J.sum64_hi=function re(r,u,l,y){return(u+y>>>0<u?1:0)+r+l>>>0},J.sum64_lo=function ie(r,u,l,y){return u+y>>>0},J.sum64_4_hi=function ce(r,u,l,y,D,k,b,n){var _=0,W=u;return _+=(W=W+y>>>0)<u?1:0,_+=(W=W+k>>>0)<k?1:0,r+l+D+b+(_+=(W=W+n>>>0)<n?1:0)>>>0},J.sum64_4_lo=function ae(r,u,l,y,D,k,b,n){return u+y+k+n>>>0},J.sum64_5_hi=function ne(r,u,l,y,D,k,b,n,_,W){var P=0,U=u;return P+=(U=U+y>>>0)<u?1:0,P+=(U=U+k>>>0)<k?1:0,P+=(U=U+n>>>0)<n?1:0,r+l+D+b+_+(P+=(U=U+W>>>0)<W?1:0)>>>0},J.sum64_5_lo=function le(r,u,l,y,D,k,b,n,_,W){return u+y+k+n+W>>>0},J.rotr64_hi=function ee(r,u,l){return(u<<32-l|r>>>l)>>>0},J.rotr64_lo=function pe(r,u,l){return(r<<32-l|u>>>l)>>>0},J.shr64_hi=function S(r,u,l){return r>>>l},J.shr64_lo=function i(r,u,l){return(r<<32-l|u>>>l)>>>0}},2438:(ke,J,p)=>{"use strict";var t=p(7084),e=p(8195),f=p(2391);function C(a){if(!(this instanceof C))return new C(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var M=e.toArray(a.entropy,a.entropyEnc||"hex"),d=e.toArray(a.nonce,a.nonceEnc||"hex"),R=e.toArray(a.pers,a.persEnc||"hex");f(M.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(M,d,R)}ke.exports=C,C.prototype._init=function(M,d,R){var h=M.concat(d).concat(R);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var I=0;I<this.V.length;I++)this.K[I]=0,this.V[I]=1;this._update(h),this._reseed=1,this.reseedInterval=281474976710656},C.prototype._hmac=function(){return new t.hmac(this.hash,this.K)},C.prototype._update=function(M){var d=this._hmac().update(this.V).update([0]);M&&(d=d.update(M)),this.K=d.digest(),this.V=this._hmac().update(this.V).digest(),M&&(this.K=this._hmac().update(this.V).update([1]).update(M).digest(),this.V=this._hmac().update(this.V).digest())},C.prototype.reseed=function(M,d,R,h){"string"!=typeof d&&(h=R,R=d,d=null),M=e.toArray(M,d),R=e.toArray(R,h),f(M.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(M.concat(R||[])),this._reseed=1},C.prototype.generate=function(M,d,R,h){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof d&&(h=R,R=d,d=null),R&&(R=e.toArray(R,h||"hex"),this._update(R));for(var I=[];I.length<M;)this.V=this._hmac().update(this.V).digest(),I=I.concat(this.V);var E=I.slice(0,M);return this._update(R),this._reseed++,e.encode(E,d)}},8461:(ke,J)=>{J.read=function(p,t,e,f,C){var a,M,d=8*C-f-1,R=(1<<d)-1,h=R>>1,I=-7,E=e?C-1:0,L=e?-1:1,T=p[t+E];for(E+=L,a=T&(1<<-I)-1,T>>=-I,I+=d;I>0;a=256*a+p[t+E],E+=L,I-=8);for(M=a&(1<<-I)-1,a>>=-I,I+=f;I>0;M=256*M+p[t+E],E+=L,I-=8);if(0===a)a=1-h;else{if(a===R)return M?NaN:1/0*(T?-1:1);M+=Math.pow(2,f),a-=h}return(T?-1:1)*M*Math.pow(2,a-f)},J.write=function(p,t,e,f,C,a){var M,d,R,h=8*a-C-1,I=(1<<h)-1,E=I>>1,L=23===C?Math.pow(2,-24)-Math.pow(2,-77):0,T=f?0:a-1,N=f?1:-1,w=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,M=I):(M=Math.floor(Math.log(t)/Math.LN2),t*(R=Math.pow(2,-M))<1&&(M--,R*=2),(t+=M+E>=1?L/R:L*Math.pow(2,1-E))*R>=2&&(M++,R/=2),M+E>=I?(d=0,M=I):M+E>=1?(d=(t*R-1)*Math.pow(2,C),M+=E):(d=t*Math.pow(2,E-1)*Math.pow(2,C),M=0));C>=8;p[e+T]=255&d,T+=N,d/=256,C-=8);for(M=M<<C|d,h+=C;h>0;p[e+T]=255&M,T+=N,M/=256,h-=8);p[e+T-N]|=128*w}},3894:ke=>{ke.exports="function"==typeof Object.create?function(p,t){t&&(p.super_=t,p.prototype=Object.create(t.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:function(p,t){if(t){p.super_=t;var e=function(){};e.prototype=t.prototype,p.prototype=new e,p.prototype.constructor=p}}},717:(ke,J,p)=>{"use strict";var t=p(623);function e(f){return!0===t(f)&&"[object Object]"===Object.prototype.toString.call(f)}ke.exports=function(C){var a,M;return!(!1===e(C)||(a=C.constructor,"function"!=typeof a)||(M=a.prototype,!1===e(M))||!1===M.hasOwnProperty("isPrototypeOf"))}},623:ke=>{"use strict";ke.exports=function(p){return null!=p&&"object"==typeof p&&!1===Array.isArray(p)}},2872:ke=>{var J=Object.prototype.toString;function p(h){return"function"==typeof h.constructor?h.constructor.name:null}ke.exports=function(I){if(void 0===I)return"undefined";if(null===I)return"null";var E=typeof I;if("boolean"===E)return"boolean";if("string"===E)return"string";if("number"===E)return"number";if("symbol"===E)return"symbol";if("function"===E)return function a(h,I){return"GeneratorFunction"===p(h)}(I)?"generatorfunction":"function";if(function t(h){return Array.isArray?Array.isArray(h):h instanceof Array}(I))return"array";if(function R(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(I))return"buffer";if(function d(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(I){if(-1!==I.message.indexOf("callee"))return!0}return!1}(I))return"arguments";if(function f(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(I))return"date";if(function e(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(I))return"error";if(function C(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(I))return"regexp";switch(p(I)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function M(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(I))return"generator";switch(E=J.call(I)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return E.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(ke,J,p)=>{"use strict";var t=p(3894),e=p(9650),f=p(3502).Buffer,C=new Array(16);function a(){e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function M(E,L){return E<<L|E>>>32-L}function d(E,L,T,N,w,G,K){return M(E+(L&T|~L&N)+w+G|0,K)+L|0}function R(E,L,T,N,w,G,K){return M(E+(L&N|T&~N)+w+G|0,K)+L|0}function h(E,L,T,N,w,G,K){return M(E+(L^T^N)+w+G|0,K)+L|0}function I(E,L,T,N,w,G,K){return M(E+(T^(L|~N))+w+G|0,K)+L|0}t(a,e),a.prototype._update=function(){for(var E=C,L=0;L<16;++L)E[L]=this._block.readInt32LE(4*L);var T=this._a,N=this._b,w=this._c,G=this._d;T=d(T,N,w,G,E[0],3614090360,7),G=d(G,T,N,w,E[1],3905402710,12),w=d(w,G,T,N,E[2],606105819,17),N=d(N,w,G,T,E[3],3250441966,22),T=d(T,N,w,G,E[4],4118548399,7),G=d(G,T,N,w,E[5],1200080426,12),w=d(w,G,T,N,E[6],2821735955,17),N=d(N,w,G,T,E[7],4249261313,22),T=d(T,N,w,G,E[8],1770035416,7),G=d(G,T,N,w,E[9],2336552879,12),w=d(w,G,T,N,E[10],4294925233,17),N=d(N,w,G,T,E[11],2304563134,22),T=d(T,N,w,G,E[12],1804603682,7),G=d(G,T,N,w,E[13],4254626195,12),w=d(w,G,T,N,E[14],2792965006,17),T=R(T,N=d(N,w,G,T,E[15],1236535329,22),w,G,E[1],4129170786,5),G=R(G,T,N,w,E[6],3225465664,9),w=R(w,G,T,N,E[11],643717713,14),N=R(N,w,G,T,E[0],3921069994,20),T=R(T,N,w,G,E[5],3593408605,5),G=R(G,T,N,w,E[10],38016083,9),w=R(w,G,T,N,E[15],3634488961,14),N=R(N,w,G,T,E[4],3889429448,20),T=R(T,N,w,G,E[9],568446438,5),G=R(G,T,N,w,E[14],3275163606,9),w=R(w,G,T,N,E[3],4107603335,14),N=R(N,w,G,T,E[8],1163531501,20),T=R(T,N,w,G,E[13],2850285829,5),G=R(G,T,N,w,E[2],4243563512,9),w=R(w,G,T,N,E[7],1735328473,14),T=h(T,N=R(N,w,G,T,E[12],2368359562,20),w,G,E[5],4294588738,4),G=h(G,T,N,w,E[8],2272392833,11),w=h(w,G,T,N,E[11],1839030562,16),N=h(N,w,G,T,E[14],4259657740,23),T=h(T,N,w,G,E[1],2763975236,4),G=h(G,T,N,w,E[4],1272893353,11),w=h(w,G,T,N,E[7],4139469664,16),N=h(N,w,G,T,E[10],3200236656,23),T=h(T,N,w,G,E[13],681279174,4),G=h(G,T,N,w,E[0],3936430074,11),w=h(w,G,T,N,E[3],3572445317,16),N=h(N,w,G,T,E[6],76029189,23),T=h(T,N,w,G,E[9],3654602809,4),G=h(G,T,N,w,E[12],3873151461,11),w=h(w,G,T,N,E[15],530742520,16),T=I(T,N=h(N,w,G,T,E[2],3299628645,23),w,G,E[0],4096336452,6),G=I(G,T,N,w,E[7],1126891415,10),w=I(w,G,T,N,E[14],2878612391,15),N=I(N,w,G,T,E[5],4237533241,21),T=I(T,N,w,G,E[12],1700485571,6),G=I(G,T,N,w,E[3],2399980690,10),w=I(w,G,T,N,E[10],4293915773,15),N=I(N,w,G,T,E[1],2240044497,21),T=I(T,N,w,G,E[8],1873313359,6),G=I(G,T,N,w,E[15],4264355552,10),w=I(w,G,T,N,E[6],2734768916,15),N=I(N,w,G,T,E[13],1309151649,21),T=I(T,N,w,G,E[4],4149444226,6),G=I(G,T,N,w,E[11],3174756917,10),w=I(w,G,T,N,E[2],718787259,15),N=I(N,w,G,T,E[9],3951481745,21),this._a=this._a+T|0,this._b=this._b+N|0,this._c=this._c+w|0,this._d=this._d+G|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var E=f.allocUnsafe(16);return E.writeInt32LE(this._a,0),E.writeInt32LE(this._b,4),E.writeInt32LE(this._c,8),E.writeInt32LE(this._d,12),E},ke.exports=a},7079:(ke,J,p)=>{var t=p(1378),e=p(7950);function f(C){this.rand=C||new e.Rand}ke.exports=f,f.create=function(a){return new f(a)},f.prototype._randbelow=function(a){var M=a.bitLength(),d=Math.ceil(M/8);do{var R=new t(this.rand.generate(d))}while(R.cmp(a)>=0);return R},f.prototype._randrange=function(a,M){var d=M.sub(a);return a.add(this._randbelow(d))},f.prototype.test=function(a,M,d){var R=a.bitLength(),h=t.mont(a),I=new t(1).toRed(h);M||(M=Math.max(1,R/48|0));for(var E=a.subn(1),L=0;!E.testn(L);L++);for(var T=a.shrn(L),N=E.toRed(h);M>0;M--){var G=this._randrange(new t(2),E);d&&d(G);var K=G.toRed(h).redPow(T);if(0!==K.cmp(I)&&0!==K.cmp(N)){for(var Q=1;Q<L;Q++){if(0===(K=K.redSqr()).cmp(I))return!1;if(0===K.cmp(N))break}if(Q===L)return!1}}return!0},f.prototype.getDivisor=function(a,M){var d=a.bitLength(),R=t.mont(a),h=new t(1).toRed(R);M||(M=Math.max(1,d/48|0));for(var I=a.subn(1),E=0;!I.testn(E);E++);for(var L=a.shrn(E),T=I.toRed(R);M>0;M--){var N=this._randrange(new t(2),I),w=a.gcd(N);if(0!==w.cmpn(1))return w;var G=N.toRed(R).redPow(L);if(0!==G.cmp(h)&&0!==G.cmp(T)){for(var K=1;K<E;K++){if(0===(G=G.redSqr()).cmp(h))return G.fromRed().subn(1).gcd(a);if(0===G.cmp(T))break}if(K===E)return(G=G.redSqr()).fromRed().subn(1).gcd(a)}}return!1}},1378:function(ke,J,p){!function(t,e){"use strict";function f(S,i){if(!S)throw new Error(i||"Assertion failed")}function C(S,i){S.super_=i;var r=function(){};r.prototype=i.prototype,S.prototype=new r,S.prototype.constructor=S}function a(S,i,r){if(a.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,null!==S&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(S||0,i||10,r||"be"))}var M;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{M=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:p(6619).Buffer}catch{}function d(S,i){var r=S.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(S,i,r){var u=d(S,r);return r-1>=i&&(u|=d(S,r-1)<<4),u}function h(S,i,r,u){for(var l=0,y=Math.min(S.length,r),D=i;D<y;D++){var k=S.charCodeAt(D)-48;l*=u,l+=k>=49?k-49+10:k>=17?k-17+10:k}return l}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===r?this._parseHex(i,l,u):(this._parseBase(i,r,l),"le"===u&&this._initArray(this.toArray(),r,u)))},a.prototype._initNumber=function(i,r,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(f(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),r,u)},a.prototype._initArray=function(i,r,u){if(f("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var y,D,k=0;if("be"===u)for(l=i.length-1,y=0;l>=0;l-=3)this.words[y]|=(D=i[l]|i[l-1]<<8|i[l-2]<<16)<<k&67108863,this.words[y+1]=D>>>26-k&67108863,(k+=24)>=26&&(k-=26,y++);else if("le"===u)for(l=0,y=0;l<i.length;l+=3)this.words[y]|=(D=i[l]|i[l+1]<<8|i[l+2]<<16)<<k&67108863,this.words[y+1]=D>>>26-k&67108863,(k+=24)>=26&&(k-=26,y++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var k,y=0,D=0;if("be"===u)for(l=i.length-1;l>=r;l-=2)k=R(i,r,l)<<y,this.words[D]|=67108863&k,y>=18?(y-=18,this.words[D+=1]|=k>>>26):y+=8;else for(l=(i.length-r)%2==0?r+1:r;l<i.length;l+=2)k=R(i,r,l)<<y,this.words[D]|=67108863&k,y>=18?(y-=18,this.words[D+=1]|=k>>>26):y+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=r)l++;l--,y=y/r|0;for(var D=i.length-u,k=D%l,b=Math.min(D,D-k)+u,n=0,_=u;_<b;_+=l)n=h(i,_,_+l,r),this.imuln(y),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==k){var W=1;for(n=h(i,_,i.length,r),_=0;_<k;_++)W*=r;this.imuln(W),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},a.prototype.copy=function(i){i.words=new Array(this.length);for(var r=0;r<this.length;r++)i.words[r]=this.words[r];i.length=this.length,i.negative=this.negative,i.red=this.red},a.prototype.clone=function(){var i=new a(null);return this.copy(i),i},a.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var I=["","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"],E=[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],L=[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 N(S,i,r){r.negative=i.negative^S.negative;var u=S.length+i.length|0;r.length=u,u=u-1|0;var l=0|S.words[0],y=0|i.words[0],D=l*y,b=D/67108864|0;r.words[0]=67108863&D;for(var n=1;n<u;n++){for(var _=b>>>26,W=67108863&b,P=Math.min(n,i.length-1),U=Math.max(0,n-S.length+1);U<=P;U++)_+=(D=(l=0|S.words[n-U|0])*(y=0|i.words[U])+W)/67108864|0,W=67108863&D;r.words[n]=0|W,b=0|_}return 0!==b?r.words[n]=0|b:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,y=0,D=0;D<this.length;D++){var k=this.words[D],b=(16777215&(k<<l|y)).toString(16);u=0!=(y=k>>>24-l&16777215)||D!==this.length-1?I[6-b.length]+b+u:b+u,(l+=2)>=26&&(l-=26,D--)}for(0!==y&&(u=y.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=E[i],_=L[i];u="";var W=this.clone();for(W.negative=0;!W.isZero();){var P=W.modn(_).toString(i);u=(W=W.idivn(_)).isZero()?P+u:I[n-P.length]+P+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(typeof M<"u"),this.toArrayLike(M,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var l=this.byteLength(),y=u||Math.max(1,l);f(l<=y,"byte array longer than desired length"),f(y>0,"Requested array length <= 0"),this.strip();var b,n,D="le"===r,k=new i(y),_=this.clone();if(D){for(n=0;!_.isZero();n++)b=_.andln(255),_.iushrn(8),k[n]=b;for(;n<y;n++)k[n]=0}else{for(n=0;n<y-l;n++)k[n]=0;for(n=0;!_.isZero();n++)b=_.andln(255),_.iushrn(8),k[y-n-1]=b}return k},a.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;r<this.length;r++){var u=this._zeroBits(this.words[r]);if(i+=u,26!==u)break}return i},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},a.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var r=0;r<i.length;r++)this.words[r]=this.words[r]|i.words[r];return this.strip()},a.prototype.ior=function(i){return f(0==(this.negative|i.negative)),this.iuor(i)},a.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;u<r.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=r.length,this.strip()},a.prototype.iand=function(i){return f(0==(this.negative|i.negative)),this.iuand(i)},a.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=r.words[l]^u.words[l];if(this!==r)for(;l<r.length;l++)this.words[l]=r.words[l];return this.length=r.length,this.strip()},a.prototype.ixor=function(i){return f(0==(this.negative|i.negative)),this.iuxor(i)},a.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var l=0;l<r;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},a.prototype.iadd=function(i){var r,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,r=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,r=this.isub(i),i.negative=1,r._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var y=0,D=0;D<l.length;D++)this.words[D]=67108863&(r=(0|u.words[D])+(0|l.words[D])+y),y=r>>>26;for(;0!==y&&D<u.length;D++)this.words[D]=67108863&(r=(0|u.words[D])+y),y=r>>>26;if(this.length=u.length,0!==y)this.words[this.length]=y,this.length++;else if(u!==this)for(;D<u.length;D++)this.words[D]=u.words[D];return this},a.prototype.add=function(i){var r;return 0!==i.negative&&0===this.negative?(i.negative=0,r=this.sub(i),i.negative^=1,r):0===i.negative&&0!==this.negative?(this.negative=0,r=i.sub(this),this.negative=1,r):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var l,y,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,y=i):(l=i,y=this);for(var D=0,k=0;k<y.length;k++)D=(r=(0|l.words[k])-(0|y.words[k])+D)>>26,this.words[k]=67108863&r;for(;0!==D&&k<l.length;k++)D=(r=(0|l.words[k])+D)>>26,this.words[k]=67108863&r;if(0===D&&k<l.length&&l!==this)for(;k<l.length;k++)this.words[k]=l.words[k];return this.length=Math.max(this.length,k),l!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,r,u){var b,n,_,l=i.words,y=r.words,D=u.words,k=0,W=0|l[0],P=8191&W,U=W>>>13,me=0|l[1],nt=8191&me,Pe=me>>>13,Oe=0|l[2],De=8191&Oe,ue=Oe>>>13,ve=0|l[3],Ie=8191&ve,$=ve>>>13,Ge=0|l[4],ut=8191&Ge,Ee=Ge>>>13,ye=0|l[5],he=8191&ye,de=ye>>>13,we=0|l[6],Y=8191&we,j=we>>>13,Ce=0|l[7],Se=8191&Ce,X=Ce>>>13,Ye=0|l[8],Le=8191&Ye,gt=Ye>>>13,Wt=0|l[9],Rt=8191&Wt,jt=Wt>>>13,hi=0|y[0],yt=8191&hi,Pt=hi>>>13,pt=0|y[1],vt=8191&pt,Ct=pt>>>13,At=0|y[2],dt=8191&At,ze=At>>>13,Ve=0|y[3],Fe=8191&Ve,be=Ve>>>13,xt=0|y[4],ct=8191&xt,Nt=xt>>>13,et=0|y[5],Ae=8191&et,rt=et>>>13,Qe=0|y[6],Ke=8191&Qe,mt=Qe>>>13,$t=0|y[7],Gt=8191&$t,zt=$t>>>13,Et=0|y[8],ht=8191&Et,at=Et>>>13,ei=0|y[9],Ut=8191&ei,qt=ei>>>13;u.negative=i.negative^r.negative,u.length=19;var Pi=(k+(b=Math.imul(P,yt))|0)+((8191&(n=(n=Math.imul(P,Pt))+Math.imul(U,yt)|0))<<13)|0;k=((_=Math.imul(U,Pt))+(n>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,b=Math.imul(nt,yt),n=(n=Math.imul(nt,Pt))+Math.imul(Pe,yt)|0,_=Math.imul(Pe,Pt);var Ii=(k+(b=b+Math.imul(P,vt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ct)|0)+Math.imul(U,vt)|0))<<13)|0;k=((_=_+Math.imul(U,Ct)|0)+(n>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,b=Math.imul(De,yt),n=(n=Math.imul(De,Pt))+Math.imul(ue,yt)|0,_=Math.imul(ue,Pt),b=b+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,Ct)|0)+Math.imul(Pe,vt)|0,_=_+Math.imul(Pe,Ct)|0;var Ei=(k+(b=b+Math.imul(P,dt)|0)|0)+((8191&(n=(n=n+Math.imul(P,ze)|0)+Math.imul(U,dt)|0))<<13)|0;k=((_=_+Math.imul(U,ze)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,b=Math.imul(Ie,yt),n=(n=Math.imul(Ie,Pt))+Math.imul($,yt)|0,_=Math.imul($,Pt),b=b+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,Ct)|0)+Math.imul(ue,vt)|0,_=_+Math.imul(ue,Ct)|0,b=b+Math.imul(nt,dt)|0,n=(n=n+Math.imul(nt,ze)|0)+Math.imul(Pe,dt)|0,_=_+Math.imul(Pe,ze)|0;var Vi=(k+(b=b+Math.imul(P,Fe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(U,Fe)|0))<<13)|0;k=((_=_+Math.imul(U,be)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,b=Math.imul(ut,yt),n=(n=Math.imul(ut,Pt))+Math.imul(Ee,yt)|0,_=Math.imul(Ee,Pt),b=b+Math.imul(Ie,vt)|0,n=(n=n+Math.imul(Ie,Ct)|0)+Math.imul($,vt)|0,_=_+Math.imul($,Ct)|0,b=b+Math.imul(De,dt)|0,n=(n=n+Math.imul(De,ze)|0)+Math.imul(ue,dt)|0,_=_+Math.imul(ue,ze)|0,b=b+Math.imul(nt,Fe)|0,n=(n=n+Math.imul(nt,be)|0)+Math.imul(Pe,Fe)|0,_=_+Math.imul(Pe,be)|0;var Be=(k+(b=b+Math.imul(P,ct)|0)|0)+((8191&(n=(n=n+Math.imul(P,Nt)|0)+Math.imul(U,ct)|0))<<13)|0;k=((_=_+Math.imul(U,Nt)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,b=Math.imul(he,yt),n=(n=Math.imul(he,Pt))+Math.imul(de,yt)|0,_=Math.imul(de,Pt),b=b+Math.imul(ut,vt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Ee,vt)|0,_=_+Math.imul(Ee,Ct)|0,b=b+Math.imul(Ie,dt)|0,n=(n=n+Math.imul(Ie,ze)|0)+Math.imul($,dt)|0,_=_+Math.imul($,ze)|0,b=b+Math.imul(De,Fe)|0,n=(n=n+Math.imul(De,be)|0)+Math.imul(ue,Fe)|0,_=_+Math.imul(ue,be)|0,b=b+Math.imul(nt,ct)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Pe,ct)|0,_=_+Math.imul(Pe,Nt)|0;var kt=(k+(b=b+Math.imul(P,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(P,rt)|0)+Math.imul(U,Ae)|0))<<13)|0;k=((_=_+Math.imul(U,rt)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,b=Math.imul(Y,yt),n=(n=Math.imul(Y,Pt))+Math.imul(j,yt)|0,_=Math.imul(j,Pt),b=b+Math.imul(he,vt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(de,vt)|0,_=_+Math.imul(de,Ct)|0,b=b+Math.imul(ut,dt)|0,n=(n=n+Math.imul(ut,ze)|0)+Math.imul(Ee,dt)|0,_=_+Math.imul(Ee,ze)|0,b=b+Math.imul(Ie,Fe)|0,n=(n=n+Math.imul(Ie,be)|0)+Math.imul($,Fe)|0,_=_+Math.imul($,be)|0,b=b+Math.imul(De,ct)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(ue,ct)|0,_=_+Math.imul(ue,Nt)|0,b=b+Math.imul(nt,Ae)|0,n=(n=n+Math.imul(nt,rt)|0)+Math.imul(Pe,Ae)|0,_=_+Math.imul(Pe,rt)|0;var _e=(k+(b=b+Math.imul(P,Ke)|0)|0)+((8191&(n=(n=n+Math.imul(P,mt)|0)+Math.imul(U,Ke)|0))<<13)|0;k=((_=_+Math.imul(U,mt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,b=Math.imul(Se,yt),n=(n=Math.imul(Se,Pt))+Math.imul(X,yt)|0,_=Math.imul(X,Pt),b=b+Math.imul(Y,vt)|0,n=(n=n+Math.imul(Y,Ct)|0)+Math.imul(j,vt)|0,_=_+Math.imul(j,Ct)|0,b=b+Math.imul(he,dt)|0,n=(n=n+Math.imul(he,ze)|0)+Math.imul(de,dt)|0,_=_+Math.imul(de,ze)|0,b=b+Math.imul(ut,Fe)|0,n=(n=n+Math.imul(ut,be)|0)+Math.imul(Ee,Fe)|0,_=_+Math.imul(Ee,be)|0,b=b+Math.imul(Ie,ct)|0,n=(n=n+Math.imul(Ie,Nt)|0)+Math.imul($,ct)|0,_=_+Math.imul($,Nt)|0,b=b+Math.imul(De,Ae)|0,n=(n=n+Math.imul(De,rt)|0)+Math.imul(ue,Ae)|0,_=_+Math.imul(ue,rt)|0,b=b+Math.imul(nt,Ke)|0,n=(n=n+Math.imul(nt,mt)|0)+Math.imul(Pe,Ke)|0,_=_+Math.imul(Pe,mt)|0;var Je=(k+(b=b+Math.imul(P,Gt)|0)|0)+((8191&(n=(n=n+Math.imul(P,zt)|0)+Math.imul(U,Gt)|0))<<13)|0;k=((_=_+Math.imul(U,zt)|0)+(n>>>13)|0)+(Je>>>26)|0,Je&=67108863,b=Math.imul(Le,yt),n=(n=Math.imul(Le,Pt))+Math.imul(gt,yt)|0,_=Math.imul(gt,Pt),b=b+Math.imul(Se,vt)|0,n=(n=n+Math.imul(Se,Ct)|0)+Math.imul(X,vt)|0,_=_+Math.imul(X,Ct)|0,b=b+Math.imul(Y,dt)|0,n=(n=n+Math.imul(Y,ze)|0)+Math.imul(j,dt)|0,_=_+Math.imul(j,ze)|0,b=b+Math.imul(he,Fe)|0,n=(n=n+Math.imul(he,be)|0)+Math.imul(de,Fe)|0,_=_+Math.imul(de,be)|0,b=b+Math.imul(ut,ct)|0,n=(n=n+Math.imul(ut,Nt)|0)+Math.imul(Ee,ct)|0,_=_+Math.imul(Ee,Nt)|0,b=b+Math.imul(Ie,Ae)|0,n=(n=n+Math.imul(Ie,rt)|0)+Math.imul($,Ae)|0,_=_+Math.imul($,rt)|0,b=b+Math.imul(De,Ke)|0,n=(n=n+Math.imul(De,mt)|0)+Math.imul(ue,Ke)|0,_=_+Math.imul(ue,mt)|0,b=b+Math.imul(nt,Gt)|0,n=(n=n+Math.imul(nt,zt)|0)+Math.imul(Pe,Gt)|0,_=_+Math.imul(Pe,zt)|0;var _t=(k+(b=b+Math.imul(P,ht)|0)|0)+((8191&(n=(n=n+Math.imul(P,at)|0)+Math.imul(U,ht)|0))<<13)|0;k=((_=_+Math.imul(U,at)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,b=Math.imul(Rt,yt),n=(n=Math.imul(Rt,Pt))+Math.imul(jt,yt)|0,_=Math.imul(jt,Pt),b=b+Math.imul(Le,vt)|0,n=(n=n+Math.imul(Le,Ct)|0)+Math.imul(gt,vt)|0,_=_+Math.imul(gt,Ct)|0,b=b+Math.imul(Se,dt)|0,n=(n=n+Math.imul(Se,ze)|0)+Math.imul(X,dt)|0,_=_+Math.imul(X,ze)|0,b=b+Math.imul(Y,Fe)|0,n=(n=n+Math.imul(Y,be)|0)+Math.imul(j,Fe)|0,_=_+Math.imul(j,be)|0,b=b+Math.imul(he,ct)|0,n=(n=n+Math.imul(he,Nt)|0)+Math.imul(de,ct)|0,_=_+Math.imul(de,Nt)|0,b=b+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Ee,Ae)|0,_=_+Math.imul(Ee,rt)|0,b=b+Math.imul(Ie,Ke)|0,n=(n=n+Math.imul(Ie,mt)|0)+Math.imul($,Ke)|0,_=_+Math.imul($,mt)|0,b=b+Math.imul(De,Gt)|0,n=(n=n+Math.imul(De,zt)|0)+Math.imul(ue,Gt)|0,_=_+Math.imul(ue,zt)|0,b=b+Math.imul(nt,ht)|0,n=(n=n+Math.imul(nt,at)|0)+Math.imul(Pe,ht)|0,_=_+Math.imul(Pe,at)|0;var se=(k+(b=b+Math.imul(P,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(P,qt)|0)+Math.imul(U,Ut)|0))<<13)|0;k=((_=_+Math.imul(U,qt)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,b=Math.imul(Rt,vt),n=(n=Math.imul(Rt,Ct))+Math.imul(jt,vt)|0,_=Math.imul(jt,Ct),b=b+Math.imul(Le,dt)|0,n=(n=n+Math.imul(Le,ze)|0)+Math.imul(gt,dt)|0,_=_+Math.imul(gt,ze)|0,b=b+Math.imul(Se,Fe)|0,n=(n=n+Math.imul(Se,be)|0)+Math.imul(X,Fe)|0,_=_+Math.imul(X,be)|0,b=b+Math.imul(Y,ct)|0,n=(n=n+Math.imul(Y,Nt)|0)+Math.imul(j,ct)|0,_=_+Math.imul(j,Nt)|0,b=b+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(de,Ae)|0,_=_+Math.imul(de,rt)|0,b=b+Math.imul(ut,Ke)|0,n=(n=n+Math.imul(ut,mt)|0)+Math.imul(Ee,Ke)|0,_=_+Math.imul(Ee,mt)|0,b=b+Math.imul(Ie,Gt)|0,n=(n=n+Math.imul(Ie,zt)|0)+Math.imul($,Gt)|0,_=_+Math.imul($,zt)|0,b=b+Math.imul(De,ht)|0,n=(n=n+Math.imul(De,at)|0)+Math.imul(ue,ht)|0,_=_+Math.imul(ue,at)|0;var Xe=(k+(b=b+Math.imul(nt,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(nt,qt)|0)+Math.imul(Pe,Ut)|0))<<13)|0;k=((_=_+Math.imul(Pe,qt)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,b=Math.imul(Rt,dt),n=(n=Math.imul(Rt,ze))+Math.imul(jt,dt)|0,_=Math.imul(jt,ze),b=b+Math.imul(Le,Fe)|0,n=(n=n+Math.imul(Le,be)|0)+Math.imul(gt,Fe)|0,_=_+Math.imul(gt,be)|0,b=b+Math.imul(Se,ct)|0,n=(n=n+Math.imul(Se,Nt)|0)+Math.imul(X,ct)|0,_=_+Math.imul(X,Nt)|0,b=b+Math.imul(Y,Ae)|0,n=(n=n+Math.imul(Y,rt)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,rt)|0,b=b+Math.imul(he,Ke)|0,n=(n=n+Math.imul(he,mt)|0)+Math.imul(de,Ke)|0,_=_+Math.imul(de,mt)|0,b=b+Math.imul(ut,Gt)|0,n=(n=n+Math.imul(ut,zt)|0)+Math.imul(Ee,Gt)|0,_=_+Math.imul(Ee,zt)|0,b=b+Math.imul(Ie,ht)|0,n=(n=n+Math.imul(Ie,at)|0)+Math.imul($,ht)|0,_=_+Math.imul($,at)|0;var bt=(k+(b=b+Math.imul(De,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(De,qt)|0)+Math.imul(ue,Ut)|0))<<13)|0;k=((_=_+Math.imul(ue,qt)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,b=Math.imul(Rt,Fe),n=(n=Math.imul(Rt,be))+Math.imul(jt,Fe)|0,_=Math.imul(jt,be),b=b+Math.imul(Le,ct)|0,n=(n=n+Math.imul(Le,Nt)|0)+Math.imul(gt,ct)|0,_=_+Math.imul(gt,Nt)|0,b=b+Math.imul(Se,Ae)|0,n=(n=n+Math.imul(Se,rt)|0)+Math.imul(X,Ae)|0,_=_+Math.imul(X,rt)|0,b=b+Math.imul(Y,Ke)|0,n=(n=n+Math.imul(Y,mt)|0)+Math.imul(j,Ke)|0,_=_+Math.imul(j,mt)|0,b=b+Math.imul(he,Gt)|0,n=(n=n+Math.imul(he,zt)|0)+Math.imul(de,Gt)|0,_=_+Math.imul(de,zt)|0,b=b+Math.imul(ut,ht)|0,n=(n=n+Math.imul(ut,at)|0)+Math.imul(Ee,ht)|0,_=_+Math.imul(Ee,at)|0;var Vt=(k+(b=b+Math.imul(Ie,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Ie,qt)|0)+Math.imul($,Ut)|0))<<13)|0;k=((_=_+Math.imul($,qt)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,b=Math.imul(Rt,ct),n=(n=Math.imul(Rt,Nt))+Math.imul(jt,ct)|0,_=Math.imul(jt,Nt),b=b+Math.imul(Le,Ae)|0,n=(n=n+Math.imul(Le,rt)|0)+Math.imul(gt,Ae)|0,_=_+Math.imul(gt,rt)|0,b=b+Math.imul(Se,Ke)|0,n=(n=n+Math.imul(Se,mt)|0)+Math.imul(X,Ke)|0,_=_+Math.imul(X,mt)|0,b=b+Math.imul(Y,Gt)|0,n=(n=n+Math.imul(Y,zt)|0)+Math.imul(j,Gt)|0,_=_+Math.imul(j,zt)|0,b=b+Math.imul(he,ht)|0,n=(n=n+Math.imul(he,at)|0)+Math.imul(de,ht)|0,_=_+Math.imul(de,at)|0;var mi=(k+(b=b+Math.imul(ut,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(ut,qt)|0)+Math.imul(Ee,Ut)|0))<<13)|0;k=((_=_+Math.imul(Ee,qt)|0)+(n>>>13)|0)+(mi>>>26)|0,mi&=67108863,b=Math.imul(Rt,Ae),n=(n=Math.imul(Rt,rt))+Math.imul(jt,Ae)|0,_=Math.imul(jt,rt),b=b+Math.imul(Le,Ke)|0,n=(n=n+Math.imul(Le,mt)|0)+Math.imul(gt,Ke)|0,_=_+Math.imul(gt,mt)|0,b=b+Math.imul(Se,Gt)|0,n=(n=n+Math.imul(Se,zt)|0)+Math.imul(X,Gt)|0,_=_+Math.imul(X,zt)|0,b=b+Math.imul(Y,ht)|0,n=(n=n+Math.imul(Y,at)|0)+Math.imul(j,ht)|0,_=_+Math.imul(j,at)|0;var Hi=(k+(b=b+Math.imul(he,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(he,qt)|0)+Math.imul(de,Ut)|0))<<13)|0;k=((_=_+Math.imul(de,qt)|0)+(n>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,b=Math.imul(Rt,Ke),n=(n=Math.imul(Rt,mt))+Math.imul(jt,Ke)|0,_=Math.imul(jt,mt),b=b+Math.imul(Le,Gt)|0,n=(n=n+Math.imul(Le,zt)|0)+Math.imul(gt,Gt)|0,_=_+Math.imul(gt,zt)|0,b=b+Math.imul(Se,ht)|0,n=(n=n+Math.imul(Se,at)|0)+Math.imul(X,ht)|0,_=_+Math.imul(X,at)|0;var Ui=(k+(b=b+Math.imul(Y,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Y,qt)|0)+Math.imul(j,Ut)|0))<<13)|0;k=((_=_+Math.imul(j,qt)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,b=Math.imul(Rt,Gt),n=(n=Math.imul(Rt,zt))+Math.imul(jt,Gt)|0,_=Math.imul(jt,zt),b=b+Math.imul(Le,ht)|0,n=(n=n+Math.imul(Le,at)|0)+Math.imul(gt,ht)|0,_=_+Math.imul(gt,at)|0;var Ji=(k+(b=b+Math.imul(Se,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Se,qt)|0)+Math.imul(X,Ut)|0))<<13)|0;k=((_=_+Math.imul(X,qt)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,b=Math.imul(Rt,ht),n=(n=Math.imul(Rt,at))+Math.imul(jt,ht)|0,_=Math.imul(jt,at);var an=(k+(b=b+Math.imul(Le,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Le,qt)|0)+Math.imul(gt,Ut)|0))<<13)|0;k=((_=_+Math.imul(gt,qt)|0)+(n>>>13)|0)+(an>>>26)|0,an&=67108863;var _n=(k+(b=Math.imul(Rt,Ut))|0)+((8191&(n=(n=Math.imul(Rt,qt))+Math.imul(jt,Ut)|0))<<13)|0;return k=((_=Math.imul(jt,qt))+(n>>>13)|0)+(_n>>>26)|0,_n&=67108863,D[0]=Pi,D[1]=Ii,D[2]=Ei,D[3]=Vi,D[4]=Be,D[5]=kt,D[6]=_e,D[7]=Je,D[8]=_t,D[9]=se,D[10]=Xe,D[11]=bt,D[12]=Vt,D[13]=mi,D[14]=Hi,D[15]=Ui,D[16]=Ji,D[17]=an,D[18]=_n,0!==k&&(D[19]=k,u.length++),u};function K(S,i,r){return(new Q).mulp(S,i,r)}function Q(S,i){this.x=S,this.y=i}Math.imul||(w=N),a.prototype.mulTo=function(i,r){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?w(this,i,r):l<63?N(this,i,r):l<1024?function G(S,i,r){r.negative=i.negative^S.negative,r.length=S.length+i.length;for(var u=0,l=0,y=0;y<r.length-1;y++){var D=l;l=0;for(var k=67108863&u,b=Math.min(y,i.length-1),n=Math.max(0,y-S.length+1);n<=b;n++){var U=(0|S.words[y-n])*(0|i.words[n]),me=67108863&U;k=67108863&(me=me+k|0),l+=(D=(D=D+(U/67108864|0)|0)+(me>>>26)|0)>>>26,D&=67108863}r.words[y]=k,u=D,D=l}return 0!==u?r.words[y]=u:r.length--,r.strip()}(this,i,r):K(this,i,r),u},Q.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,l=0;l<i;l++)r[l]=this.revBin(l,u,i);return r},Q.prototype.revBin=function(i,r,u){if(0===i||i===u-1)return i;for(var l=0,y=0;y<r;y++)l|=(1&i)<<r-y-1,i>>=1;return l},Q.prototype.permute=function(i,r,u,l,y,D){for(var k=0;k<D;k++)l[k]=r[i[k]],y[k]=u[i[k]]},Q.prototype.transform=function(i,r,u,l,y,D){this.permute(D,i,r,u,l,y);for(var k=1;k<y;k<<=1)for(var b=k<<1,n=Math.cos(2*Math.PI/b),_=Math.sin(2*Math.PI/b),W=0;W<y;W+=b)for(var P=n,U=_,me=0;me<k;me++){var nt=u[W+me],Pe=l[W+me],Oe=u[W+me+k],De=l[W+me+k],ue=P*Oe-U*De;De=P*De+U*Oe,u[W+me]=nt+(Oe=ue),l[W+me]=Pe+De,u[W+me+k]=nt-Oe,l[W+me+k]=Pe-De,me!==b&&(ue=n*P-_*U,U=n*U+_*P,P=ue)}},Q.prototype.guessLen13b=function(i,r){var u=1|Math.max(r,i),l=1&u,y=0;for(u=u/2|0;u;u>>>=1)y++;return 1<<y+1+l},Q.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var l=0;l<u/2;l++){var y=i[l];i[l]=i[u-l-1],i[u-l-1]=y,y=r[l],r[l]=-r[u-l-1],r[u-l-1]=-y}},Q.prototype.normalize13b=function(i,r){for(var u=0,l=0;l<r/2;l++){var y=8192*Math.round(i[2*l+1]/r)+Math.round(i[2*l]/r)+u;i[l]=67108863&y,u=y<67108864?0:y/67108864|0}return i},Q.prototype.convert13b=function(i,r,u,l){for(var y=0,D=0;D<r;D++)u[2*D]=8191&(y+=0|i[D]),u[2*D+1]=8191&(y>>>=13),y>>>=13;for(D=2*r;D<l;++D)u[D]=0;f(0===y),f(0==(-8192&y))},Q.prototype.stub=function(i){for(var r=new Array(i),u=0;u<i;u++)r[u]=0;return r},Q.prototype.mulp=function(i,r,u){var l=2*this.guessLen13b(i.length,r.length),y=this.makeRBT(l),D=this.stub(l),k=new Array(l),b=new Array(l),n=new Array(l),_=new Array(l),W=new Array(l),P=new Array(l),U=u.words;U.length=l,this.convert13b(i.words,i.length,k,l),this.convert13b(r.words,r.length,_,l),this.transform(k,D,b,n,l,y),this.transform(_,D,W,P,l,y);for(var me=0;me<l;me++){var nt=b[me]*W[me]-n[me]*P[me];n[me]=b[me]*P[me]+n[me]*W[me],b[me]=nt}return this.conjugate(b,n,l),this.transform(b,n,U,D,l,y),this.conjugate(U,D,l),this.normalize13b(U,l),u.negative=i.negative^r.negative,u.length=i.length+r.length,u.strip()},a.prototype.mul=function(i){var r=new a(null);return r.words=new Array(this.length+i.length),this.mulTo(i,r)},a.prototype.mulf=function(i){var r=new a(null);return r.words=new Array(this.length+i.length),K(this,i,r)},a.prototype.imul=function(i){return this.clone().mulTo(i,this)},a.prototype.imuln=function(i){f("number"==typeof i),f(i<67108864);for(var r=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,y=(67108863&l)+(67108863&r);r>>=26,r+=l/67108864|0,r+=y>>>26,this.words[u]=67108863&y}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function T(S){for(var i=new Array(S.bitLength()),r=0;r<i.length;r++){var l=r%26;i[r]=(S.words[r/26|0]&1<<l)>>>l}return i}(i);if(0===r.length)return new a(1);for(var u=this,l=0;l<r.length&&0===r[l];l++,u=u.sqr());if(++l<r.length)for(var y=u.sqr();l<r.length;l++,y=y.sqr())0!==r[l]&&(u=u.mul(y));return u},a.prototype.iushln=function(i){f("number"==typeof i&&i>=0);var y,r=i%26,u=(i-r)/26,l=67108863>>>26-r<<26-r;if(0!==r){var D=0;for(y=0;y<this.length;y++){var k=this.words[y]&l;this.words[y]=(0|this.words[y])-k<<r|D,D=k>>>26-r}D&&(this.words[y]=D,this.length++)}if(0!==u){for(y=this.length-1;y>=0;y--)this.words[y+u]=this.words[y];for(y=0;y<u;y++)this.words[y]=0;this.length+=u}return this.strip()},a.prototype.ishln=function(i){return f(0===this.negative),this.iushln(i)},a.prototype.iushrn=function(i,r,u){var l;f("number"==typeof i&&i>=0),l=r?(r-r%26)/26:0;var y=i%26,D=Math.min((i-y)/26,this.length),k=67108863^67108863>>>y<<y,b=u;if(l-=D,l=Math.max(0,l),b){for(var n=0;n<D;n++)b.words[n]=this.words[n];b.length=D}if(0!==D)if(this.length>D)for(this.length-=D,n=0;n<this.length;n++)this.words[n]=this.words[n+D];else this.words[0]=0,this.length=1;var _=0;for(n=this.length-1;n>=0&&(0!==_||n>=l);n--){var W=0|this.words[n];this.words[n]=_<<26-y|W>>>y,_=W&k}return b&&0!==_&&(b.words[b.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<<r))},a.prototype.imaskn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},a.prototype.maskn=function(i){return this.clone().imaskn(i)},a.prototype.iaddn=function(i){return f("number"==typeof i),f(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},a.prototype._iaddn=function(i){this.words[0]+=i;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(i){return this.clone().iaddn(i)},a.prototype.subn=function(i){return this.clone().isubn(i)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(i,r,u){var y;this._expand(i.length+u);var D,k=0;for(y=0;y<i.length;y++){D=(0|this.words[y+u])+k;var b=(0|i.words[y])*r;k=((D-=67108863&b)>>26)-(b/67108864|0),this.words[y+u]=67108863&D}for(;y<this.length-u;y++)k=(D=(0|this.words[y+u])+k)>>26,this.words[y+u]=67108863&D;if(0===k)return this.strip();for(f(-1===k),k=0,y=0;y<this.length;y++)k=(D=-(0|this.words[y])+k)>>26,this.words[y]=67108863&D;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,l=this.clone(),y=i,D=0|y.words[y.length-1];0!=(u=26-this._countBits(D))&&(y=y.ushln(u),l.iushln(u),D=0|y.words[y.length-1]);var n,b=l.length-y.length;if("mod"!==r){(n=new a(null)).length=b+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var W=l.clone()._ishlnsubmul(y,1,b);0===W.negative&&(l=W,n&&(n.words[b]=1));for(var P=b-1;P>=0;P--){var U=67108864*(0|l.words[y.length+P])+(0|l.words[y.length+P-1]);for(U=Math.min(U/D|0,67108863),l._ishlnsubmul(y,U,P);0!==l.negative;)U--,l.negative=0,l._ishlnsubmul(y,1,P),l.isZero()||(l.negative^=1);n&&(n.words[P]=U)}return n&&n.strip(),l.strip(),"div"!==r&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,r),"mod"!==r&&(l=D.div.neg()),"div"!==r&&(y=D.mod.neg(),u&&0!==y.negative&&y.iadd(i)),{div:l,mod:y}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),r),"mod"!==r&&(l=D.div.neg()),{div:l,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),r),"div"!==r&&(y=D.mod.neg(),u&&0!==y.negative&&y.isub(i)),{div:D.div,mod:y}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var l,y,D},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,l=i.ushrn(1),y=i.andln(1),D=u.cmp(l);return D<0||1===y&&0===D?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(r*u+(0|this.words[l]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*r;this.words[u]=l/i|0,r=l%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var l=new a(1),y=new a(0),D=new a(0),k=new a(1),b=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++b;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var W=0,P=1;0==(r.words[0]&P)&&W<26;++W,P<<=1);if(W>0)for(r.iushrn(W);W-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(n),y.isub(_)),l.iushrn(1),y.iushrn(1);for(var U=0,me=1;0==(u.words[0]&me)&&U<26;++U,me<<=1);if(U>0)for(u.iushrn(U);U-- >0;)(D.isOdd()||k.isOdd())&&(D.iadd(n),k.isub(_)),D.iushrn(1),k.iushrn(1);r.cmp(u)>=0?(r.isub(u),l.isub(D),y.isub(k)):(u.isub(r),D.isub(l),k.isub(y))}return{a:D,b:k,gcd:u.iushln(b)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var W,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var l=new a(1),y=new a(0),D=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var k=0,b=1;0==(r.words[0]&b)&&k<26;++k,b<<=1);if(k>0)for(r.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(D),l.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)y.isOdd()&&y.iadd(D),y.iushrn(1);r.cmp(u)>=0?(r.isub(u),l.isub(y)):(u.isub(r),y.isub(l))}return(W=0===r.cmpn(1)?l:y).cmpn(0)<0&&W.iadd(i),W},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var l=0;r.isEven()&&u.isEven();l++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var y=r.cmp(u);if(y<0){var D=r;r=u,u=D}else if(0===y||0===u.cmpn(1))break;r.isub(u)}return u.iushln(l)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,l=1<<r;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var y=l,D=u;0!==y&&D<this.length;D++){var k=0|this.words[D];y=(k+=y)>>>26,this.words[D]=k&=67108863}return 0!==y&&(this.words[D]=y,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},a.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var r=this.ucmp(i);return 0!==this.negative?0|-r:r},a.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var r=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],y=0|i.words[u];if(l!==y){l<y?r=-1:l>y&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new ee(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var re={k256:null,p224:null,p192:null,p25519:null};function ie(S,i){this.name=S,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ce(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ae(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ne(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(S){if("string"==typeof S){var i=a._prime(S);this.m=i.p,this.prime=i}else f(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function pe(S){ee.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ie.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:r.ucmp(this.p);return 0===l?(r.words[0]=0,r.length=1):l>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ie.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ie.prototype.imulK=function(i){return i.imul(this.k)},C(ce,ie),ce.prototype.split=function(i,r){for(var u=4194303,l=Math.min(i.length,9),y=0;y<l;y++)r.words[y]=i.words[y];if(r.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var D=i.words[9];for(r.words[r.length++]=D&u,y=10;y<i.length;y++){var k=0|i.words[y];i.words[y-10]=(k&u)<<4|D>>>22,D=k}i.words[y-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ce.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(r+=977*l),r=64*l+(r/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ae,ie),C(ne,ie),C(le,ie),le.prototype.imulK=function(i){for(var r=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+r,y=67108863&l;l>>>=26,i.words[u]=y,r=l}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(re[i])return re[i];var r;if("k256"===i)r=new ce;else if("p224"===i)r=new ae;else if("p192"===i)r=new ne;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new le}return re[i]=r,r},ee.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},ee.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},ee.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ee.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ee.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},ee.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},ee.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},ee.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},ee.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},ee.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},ee.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},ee.prototype.isqr=function(i){return this.imul(i,i.clone())},ee.prototype.sqr=function(i){return this.mul(i,i)},ee.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),y=0;!l.isZero()&&0===l.andln(1);)y++,l.iushrn(1);f(!l.isZero());var D=new a(1).toRed(this),k=D.redNeg(),b=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,b).cmp(k);)n.redIAdd(k);for(var _=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),P=this.pow(i,l),U=y;0!==P.cmp(D);){for(var me=P,nt=0;0!==me.cmp(D);nt++)me=me.redSqr();f(nt<U);var Pe=this.pow(_,new a(1).iushln(U-nt-1));W=W.redMul(Pe),_=Pe.redSqr(),P=P.redMul(_),U=nt}return W},ee.prototype.invm=function(i){var r=i._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},ee.prototype.pow=function(i,r){if(r.isZero())return new a(1).toRed(this);if(0===r.cmpn(1))return i.clone();var l=new Array(16);l[0]=new a(1).toRed(this),l[1]=i;for(var y=2;y<l.length;y++)l[y]=this.mul(l[y-1],i);var D=l[0],k=0,b=0,n=r.bitLength()%26;for(0===n&&(n=26),y=r.length-1;y>=0;y--){for(var _=r.words[y],W=n-1;W>=0;W--){var P=_>>W&1;D!==l[0]&&(D=this.sqr(D)),0!==P||0!==k?(k<<=1,k|=P,(4==++b||0===y&&0===W)&&(D=this.mul(D,l[k]),b=0,k=0)):b=0}n=26}return D},ee.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},ee.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new pe(i)},C(pe,ee),pe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},pe.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},pe.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),D=y;return y.cmp(this.m)>=0?D=y.isub(this.m):y.cmpn(0)<0&&(D=y.iadd(this.m)),D._forceRed(this)},pe.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),D=y;return y.cmp(this.m)>=0?D=y.isub(this.m):y.cmpn(0)<0&&(D=y.iadd(this.m)),D._forceRed(this)},pe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=p.nmd(ke),this)},2391:ke=>{function J(p,t){if(!p)throw new Error(t||"Assertion failed")}ke.exports=J,J.equal=function(t,e,f){if(t!=e)throw new Error(f||"Assertion failed: "+t+" != "+e)}},8195:(ke,J)=>{"use strict";var p=J;function e(C){return 1===C.length?"0"+C:C}function f(C){for(var a="",M=0;M<C.length;M++)a+=e(C[M].toString(16));return a}p.toArray=function t(C,a){if(Array.isArray(C))return C.slice();if(!C)return[];var M=[];if("string"!=typeof C){for(var d=0;d<C.length;d++)M[d]=0|C[d];return M}if("hex"===a)for((C=C.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(C="0"+C),d=0;d<C.length;d+=2)M.push(parseInt(C[d]+C[d+1],16));else for(d=0;d<C.length;d++){var R=C.charCodeAt(d),h=R>>8,I=255&R;h?M.push(h,I):M.push(I)}return M},p.zero2=e,p.toHex=f,p.encode=function(a,M){return"hex"===M?f(a):a}},5768:(ke,J,p)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});var t=p(842);Object.keys(t).forEach(function(e){"default"!==e&&Object.defineProperty(J,e,{enumerable:!0,get:function(){return t[e]}})})},2999:(ke,J,p)=>{"use strict";var t=p(7977);J.certificate=p(2390);var e=t.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});J.RSAPrivateKey=e;var f=t.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});J.RSAPublicKey=f;var C=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});J.PublicKey=C;var a=t.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),M=t.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});J.PrivateKey=M;var d=t.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});J.EncryptedPrivateKey=d;var R=t.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});J.DSAPrivateKey=R,J.DSAparam=t.define("DSAparam",function(){this.int()});var h=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(I),this.key("publicKey").optional().explicit(1).bitstr())});J.ECPrivateKey=h;var I=t.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});J.signature=t.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(ke,J,p)=>{"use strict";var t=p(7977),e=t.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),f=t.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),C=t.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(C),this.key("subjectPublicKey").bitstr())}),M=t.define("RelativeDistinguishedName",function(){this.setof(f)}),d=t.define("RDNSequence",function(){this.seqof(M)}),R=t.define("Name",function(){this.choice({rdnSequence:this.use(d)})}),h=t.define("Validity",function(){this.seq().obj(this.key("notBefore").use(e),this.key("notAfter").use(e))}),I=t.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),E=t.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(C),this.key("issuer").use(R),this.key("validity").use(h),this.key("subject").use(R),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(I).optional())}),L=t.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(E),this.key("signatureAlgorithm").use(C),this.key("signatureValue").bitstr())});ke.exports=L},5269:(ke,J,p)=>{var t=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,e=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,f=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,C=p(347),a=p(4330),M=p(3502).Buffer;ke.exports=function(d,R){var E,h=d.toString(),I=h.match(t);if(I){var T="aes"+I[1],N=M.from(I[2],"hex"),w=M.from(I[3].replace(/[\r\n]/g,""),"base64"),G=C(R,N.slice(0,8),parseInt(I[1],10)).key,K=[],Q=a.createDecipheriv(T,G,N);K.push(Q.update(w)),K.push(Q.final()),E=M.concat(K)}else{var L=h.match(f);E=M.from(L[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(e)[1],data:E}}},2772:(ke,J,p)=>{var t=p(2999),e=p(2562),f=p(5269),C=p(4330),a=p(9357),M=p(3502).Buffer;function d(h){var I;"object"==typeof h&&!M.isBuffer(h)&&(I=h.passphrase,h=h.key),"string"==typeof h&&(h=M.from(h));var N,w,E=f(h,I),L=E.tag,T=E.data;switch(L){case"CERTIFICATE":w=t.certificate.decode(T,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=t.PublicKey.decode(T,"der")),N=w.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=t.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw new Error("unknown key id "+N)}case"ENCRYPTED PRIVATE KEY":T=function R(h,I){var E=h.algorithm.decrypt.kde.kdeparams.salt,L=parseInt(h.algorithm.decrypt.kde.kdeparams.iters.toString(),10),T=e[h.algorithm.decrypt.cipher.algo.join(".")],N=h.algorithm.decrypt.cipher.iv,w=h.subjectPrivateKey,G=parseInt(T.split("-")[1],10)/8,K=a.pbkdf2Sync(I,E,L,G,"sha1"),Q=C.createDecipheriv(T,K,N),re=[];return re.push(Q.update(w)),re.push(Q.final()),M.concat(re)}(T=t.EncryptedPrivateKey.decode(T,"der"),I);case"PRIVATE KEY":switch(N=(w=t.PrivateKey.decode(T,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:t.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=t.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw new Error("unknown key id "+N)}case"RSA PUBLIC KEY":return t.RSAPublicKey.decode(T,"der");case"RSA PRIVATE KEY":return t.RSAPrivateKey.decode(T,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:t.DSAPrivateKey.decode(T,"der")};case"EC PRIVATE KEY":return{curve:(T=t.ECPrivateKey.decode(T,"der")).parameters.value,privateKey:T.privateKey};default:throw new Error("unknown key type "+L)}}ke.exports=d,d.signature=t.signature},9357:(ke,J,p)=>{J.pbkdf2=p(415),J.pbkdf2Sync=p(7472)},415:(ke,J,p)=>{var M,E,t=p(3502).Buffer,e=p(2697),f=p(8867),C=p(7472),a=p(4566),d=global.crypto&&global.crypto.subtle,R={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function L(){return E||(E=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function T(w,G,K,Q,re){return d.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ie){return d.deriveBits({name:"PBKDF2",salt:G,iterations:K,hash:{name:re}},ie,Q<<3)}).then(function(ie){return t.from(ie)})}ke.exports=function(w,G,K,Q,re,ie){"function"==typeof re&&(ie=re,re=void 0);var ce=R[(re=re||"sha1").toLowerCase()];if(ce&&"function"==typeof global.Promise){if(e(K,Q),w=a(w,f,"Password"),G=a(G,f,"Salt"),"function"!=typeof ie)throw new Error("No callback provided to pbkdf2");!function N(w,G){w.then(function(K){L()(function(){G(null,K)})},function(K){L()(function(){G(K)})})}(function I(w){if(global.process&&!global.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==h[w])return h[w];var G=T(M=M||t.alloc(8),M,10,128,w).then(function(){return!0}).catch(function(){return!1});return h[w]=G,G}(ce).then(function(ae){return ae?T(w,G,K,Q,ce):C(w,G,K,Q,re)}),ie)}else L()(function(){var ae;try{ae=C(w,G,K,Q,re)}catch(ne){return ie(ne)}ie(null,ae)})}},8867:ke=>{var J;J=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=J},2697:ke=>{var J=Math.pow(2,30)-1;ke.exports=function(p,t){if("number"!=typeof p)throw new TypeError("Iterations not a number");if(p<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>J||t!=t)throw new TypeError("Bad key length")}},7472:(ke,J,p)=>{var t=p(5640),e=p(5634),f=p(5244),C=p(3502).Buffer,a=p(2697),M=p(8867),d=p(4566),R=C.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function I(T,N,w){var G=function E(T){return"rmd160"===T||"ripemd160"===T?function w(G){return(new e).update(G).digest()}:"md5"===T?t:function N(G){return f(T).update(G).digest()}}(T),K="sha512"===T||"sha384"===T?128:64;N.length>K?N=G(N):N.length<K&&(N=C.concat([N,R],K));for(var Q=C.allocUnsafe(K+h[T]),re=C.allocUnsafe(K+h[T]),ie=0;ie<K;ie++)Q[ie]=54^N[ie],re[ie]=92^N[ie];var ce=C.allocUnsafe(K+w+4);Q.copy(ce,0,0,K),this.ipad1=ce,this.ipad2=Q,this.opad=re,this.alg=T,this.blocksize=K,this.hash=G,this.size=h[T]}I.prototype.run=function(T,N){return T.copy(N,this.blocksize),this.hash(N).copy(this.opad,this.blocksize),this.hash(this.opad)},ke.exports=function L(T,N,w,G,K){a(w,G);var Q=new I(K=K||"sha1",T=d(T,M,"Password"),(N=d(N,M,"Salt")).length),re=C.allocUnsafe(G),ie=C.allocUnsafe(N.length+4);N.copy(ie,0,0,N.length);for(var ce=0,ae=h[K],ne=Math.ceil(G/ae),le=1;le<=ne;le++){ie.writeUInt32BE(le,N.length);for(var ee=Q.run(ie,Q.ipad1),pe=ee,S=1;S<w;S++){pe=Q.run(pe,Q.ipad2);for(var i=0;i<ae;i++)ee[i]^=pe[i]}ee.copy(re,ce),ce+=ae}return re}},4566:(ke,J,p)=>{var t=p(3502).Buffer;ke.exports=function(e,f,C){if(t.isBuffer(e))return e;if("string"==typeof e)return t.from(e,f);if(ArrayBuffer.isView(e))return t.from(e.buffer);throw new TypeError(C+" must be a string, a Buffer, a typed array or a DataView")}},3701:(ke,J,p)=>{J.publicEncrypt=p(6562),J.privateDecrypt=p(6705),J.privateEncrypt=function(e,f){return J.publicEncrypt(e,f,!0)},J.publicDecrypt=function(e,f){return J.privateDecrypt(e,f,!0)}},6945:(ke,J,p)=>{var t=p(6386),e=p(3502).Buffer;function f(C){var a=e.allocUnsafe(4);return a.writeUInt32BE(C,0),a}ke.exports=function(C,a){for(var R,M=e.alloc(0),d=0;M.length<a;)R=f(d++),M=e.concat([M,t("sha1").update(C).update(R).digest()]);return M.slice(0,a)}},2057:function(ke,J,p){!function(t,e){"use strict";function f(S,i){if(!S)throw new Error(i||"Assertion failed")}function C(S,i){S.super_=i;var r=function(){};r.prototype=i.prototype,S.prototype=new r,S.prototype.constructor=S}function a(S,i,r){if(a.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,null!==S&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(S||0,i||10,r||"be"))}var M;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{M=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:p(7108).Buffer}catch{}function d(S,i){var r=S.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(S,i,r){var u=d(S,r);return r-1>=i&&(u|=d(S,r-1)<<4),u}function h(S,i,r,u){for(var l=0,y=Math.min(S.length,r),D=i;D<y;D++){var k=S.charCodeAt(D)-48;l*=u,l+=k>=49?k-49+10:k>=17?k-17+10:k}return l}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===r?this._parseHex(i,l,u):(this._parseBase(i,r,l),"le"===u&&this._initArray(this.toArray(),r,u)))},a.prototype._initNumber=function(i,r,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(f(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),r,u)},a.prototype._initArray=function(i,r,u){if(f("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var y,D,k=0;if("be"===u)for(l=i.length-1,y=0;l>=0;l-=3)this.words[y]|=(D=i[l]|i[l-1]<<8|i[l-2]<<16)<<k&67108863,this.words[y+1]=D>>>26-k&67108863,(k+=24)>=26&&(k-=26,y++);else if("le"===u)for(l=0,y=0;l<i.length;l+=3)this.words[y]|=(D=i[l]|i[l+1]<<8|i[l+2]<<16)<<k&67108863,this.words[y+1]=D>>>26-k&67108863,(k+=24)>=26&&(k-=26,y++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var k,y=0,D=0;if("be"===u)for(l=i.length-1;l>=r;l-=2)k=R(i,r,l)<<y,this.words[D]|=67108863&k,y>=18?(y-=18,this.words[D+=1]|=k>>>26):y+=8;else for(l=(i.length-r)%2==0?r+1:r;l<i.length;l+=2)k=R(i,r,l)<<y,this.words[D]|=67108863&k,y>=18?(y-=18,this.words[D+=1]|=k>>>26):y+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=r)l++;l--,y=y/r|0;for(var D=i.length-u,k=D%l,b=Math.min(D,D-k)+u,n=0,_=u;_<b;_+=l)n=h(i,_,_+l,r),this.imuln(y),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==k){var W=1;for(n=h(i,_,i.length,r),_=0;_<k;_++)W*=r;this.imuln(W),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},a.prototype.copy=function(i){i.words=new Array(this.length);for(var r=0;r<this.length;r++)i.words[r]=this.words[r];i.length=this.length,i.negative=this.negative,i.red=this.red},a.prototype.clone=function(){var i=new a(null);return this.copy(i),i},a.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var I=["","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"],E=[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],L=[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 N(S,i,r){r.negative=i.negative^S.negative;var u=S.length+i.length|0;r.length=u,u=u-1|0;var l=0|S.words[0],y=0|i.words[0],D=l*y,b=D/67108864|0;r.words[0]=67108863&D;for(var n=1;n<u;n++){for(var _=b>>>26,W=67108863&b,P=Math.min(n,i.length-1),U=Math.max(0,n-S.length+1);U<=P;U++)_+=(D=(l=0|S.words[n-U|0])*(y=0|i.words[U])+W)/67108864|0,W=67108863&D;r.words[n]=0|W,b=0|_}return 0!==b?r.words[n]=0|b:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,y=0,D=0;D<this.length;D++){var k=this.words[D],b=(16777215&(k<<l|y)).toString(16);u=0!=(y=k>>>24-l&16777215)||D!==this.length-1?I[6-b.length]+b+u:b+u,(l+=2)>=26&&(l-=26,D--)}for(0!==y&&(u=y.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=E[i],_=L[i];u="";var W=this.clone();for(W.negative=0;!W.isZero();){var P=W.modn(_).toString(i);u=(W=W.idivn(_)).isZero()?P+u:I[n-P.length]+P+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(typeof M<"u"),this.toArrayLike(M,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var l=this.byteLength(),y=u||Math.max(1,l);f(l<=y,"byte array longer than desired length"),f(y>0,"Requested array length <= 0"),this.strip();var b,n,D="le"===r,k=new i(y),_=this.clone();if(D){for(n=0;!_.isZero();n++)b=_.andln(255),_.iushrn(8),k[n]=b;for(;n<y;n++)k[n]=0}else{for(n=0;n<y-l;n++)k[n]=0;for(n=0;!_.isZero();n++)b=_.andln(255),_.iushrn(8),k[y-n-1]=b}return k},a.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;r<this.length;r++){var u=this._zeroBits(this.words[r]);if(i+=u,26!==u)break}return i},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},a.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var r=0;r<i.length;r++)this.words[r]=this.words[r]|i.words[r];return this.strip()},a.prototype.ior=function(i){return f(0==(this.negative|i.negative)),this.iuor(i)},a.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;u<r.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=r.length,this.strip()},a.prototype.iand=function(i){return f(0==(this.negative|i.negative)),this.iuand(i)},a.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=r.words[l]^u.words[l];if(this!==r)for(;l<r.length;l++)this.words[l]=r.words[l];return this.length=r.length,this.strip()},a.prototype.ixor=function(i){return f(0==(this.negative|i.negative)),this.iuxor(i)},a.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var l=0;l<r;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},a.prototype.iadd=function(i){var r,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,r=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,r=this.isub(i),i.negative=1,r._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var y=0,D=0;D<l.length;D++)this.words[D]=67108863&(r=(0|u.words[D])+(0|l.words[D])+y),y=r>>>26;for(;0!==y&&D<u.length;D++)this.words[D]=67108863&(r=(0|u.words[D])+y),y=r>>>26;if(this.length=u.length,0!==y)this.words[this.length]=y,this.length++;else if(u!==this)for(;D<u.length;D++)this.words[D]=u.words[D];return this},a.prototype.add=function(i){var r;return 0!==i.negative&&0===this.negative?(i.negative=0,r=this.sub(i),i.negative^=1,r):0===i.negative&&0!==this.negative?(this.negative=0,r=i.sub(this),this.negative=1,r):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var l,y,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,y=i):(l=i,y=this);for(var D=0,k=0;k<y.length;k++)D=(r=(0|l.words[k])-(0|y.words[k])+D)>>26,this.words[k]=67108863&r;for(;0!==D&&k<l.length;k++)D=(r=(0|l.words[k])+D)>>26,this.words[k]=67108863&r;if(0===D&&k<l.length&&l!==this)for(;k<l.length;k++)this.words[k]=l.words[k];return this.length=Math.max(this.length,k),l!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,r,u){var b,n,_,l=i.words,y=r.words,D=u.words,k=0,W=0|l[0],P=8191&W,U=W>>>13,me=0|l[1],nt=8191&me,Pe=me>>>13,Oe=0|l[2],De=8191&Oe,ue=Oe>>>13,ve=0|l[3],Ie=8191&ve,$=ve>>>13,Ge=0|l[4],ut=8191&Ge,Ee=Ge>>>13,ye=0|l[5],he=8191&ye,de=ye>>>13,we=0|l[6],Y=8191&we,j=we>>>13,Ce=0|l[7],Se=8191&Ce,X=Ce>>>13,Ye=0|l[8],Le=8191&Ye,gt=Ye>>>13,Wt=0|l[9],Rt=8191&Wt,jt=Wt>>>13,hi=0|y[0],yt=8191&hi,Pt=hi>>>13,pt=0|y[1],vt=8191&pt,Ct=pt>>>13,At=0|y[2],dt=8191&At,ze=At>>>13,Ve=0|y[3],Fe=8191&Ve,be=Ve>>>13,xt=0|y[4],ct=8191&xt,Nt=xt>>>13,et=0|y[5],Ae=8191&et,rt=et>>>13,Qe=0|y[6],Ke=8191&Qe,mt=Qe>>>13,$t=0|y[7],Gt=8191&$t,zt=$t>>>13,Et=0|y[8],ht=8191&Et,at=Et>>>13,ei=0|y[9],Ut=8191&ei,qt=ei>>>13;u.negative=i.negative^r.negative,u.length=19;var Pi=(k+(b=Math.imul(P,yt))|0)+((8191&(n=(n=Math.imul(P,Pt))+Math.imul(U,yt)|0))<<13)|0;k=((_=Math.imul(U,Pt))+(n>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,b=Math.imul(nt,yt),n=(n=Math.imul(nt,Pt))+Math.imul(Pe,yt)|0,_=Math.imul(Pe,Pt);var Ii=(k+(b=b+Math.imul(P,vt)|0)|0)+((8191&(n=(n=n+Math.imul(P,Ct)|0)+Math.imul(U,vt)|0))<<13)|0;k=((_=_+Math.imul(U,Ct)|0)+(n>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,b=Math.imul(De,yt),n=(n=Math.imul(De,Pt))+Math.imul(ue,yt)|0,_=Math.imul(ue,Pt),b=b+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,Ct)|0)+Math.imul(Pe,vt)|0,_=_+Math.imul(Pe,Ct)|0;var Ei=(k+(b=b+Math.imul(P,dt)|0)|0)+((8191&(n=(n=n+Math.imul(P,ze)|0)+Math.imul(U,dt)|0))<<13)|0;k=((_=_+Math.imul(U,ze)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,b=Math.imul(Ie,yt),n=(n=Math.imul(Ie,Pt))+Math.imul($,yt)|0,_=Math.imul($,Pt),b=b+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,Ct)|0)+Math.imul(ue,vt)|0,_=_+Math.imul(ue,Ct)|0,b=b+Math.imul(nt,dt)|0,n=(n=n+Math.imul(nt,ze)|0)+Math.imul(Pe,dt)|0,_=_+Math.imul(Pe,ze)|0;var Vi=(k+(b=b+Math.imul(P,Fe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(U,Fe)|0))<<13)|0;k=((_=_+Math.imul(U,be)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,b=Math.imul(ut,yt),n=(n=Math.imul(ut,Pt))+Math.imul(Ee,yt)|0,_=Math.imul(Ee,Pt),b=b+Math.imul(Ie,vt)|0,n=(n=n+Math.imul(Ie,Ct)|0)+Math.imul($,vt)|0,_=_+Math.imul($,Ct)|0,b=b+Math.imul(De,dt)|0,n=(n=n+Math.imul(De,ze)|0)+Math.imul(ue,dt)|0,_=_+Math.imul(ue,ze)|0,b=b+Math.imul(nt,Fe)|0,n=(n=n+Math.imul(nt,be)|0)+Math.imul(Pe,Fe)|0,_=_+Math.imul(Pe,be)|0;var Be=(k+(b=b+Math.imul(P,ct)|0)|0)+((8191&(n=(n=n+Math.imul(P,Nt)|0)+Math.imul(U,ct)|0))<<13)|0;k=((_=_+Math.imul(U,Nt)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,b=Math.imul(he,yt),n=(n=Math.imul(he,Pt))+Math.imul(de,yt)|0,_=Math.imul(de,Pt),b=b+Math.imul(ut,vt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Ee,vt)|0,_=_+Math.imul(Ee,Ct)|0,b=b+Math.imul(Ie,dt)|0,n=(n=n+Math.imul(Ie,ze)|0)+Math.imul($,dt)|0,_=_+Math.imul($,ze)|0,b=b+Math.imul(De,Fe)|0,n=(n=n+Math.imul(De,be)|0)+Math.imul(ue,Fe)|0,_=_+Math.imul(ue,be)|0,b=b+Math.imul(nt,ct)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Pe,ct)|0,_=_+Math.imul(Pe,Nt)|0;var kt=(k+(b=b+Math.imul(P,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(P,rt)|0)+Math.imul(U,Ae)|0))<<13)|0;k=((_=_+Math.imul(U,rt)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,b=Math.imul(Y,yt),n=(n=Math.imul(Y,Pt))+Math.imul(j,yt)|0,_=Math.imul(j,Pt),b=b+Math.imul(he,vt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(de,vt)|0,_=_+Math.imul(de,Ct)|0,b=b+Math.imul(ut,dt)|0,n=(n=n+Math.imul(ut,ze)|0)+Math.imul(Ee,dt)|0,_=_+Math.imul(Ee,ze)|0,b=b+Math.imul(Ie,Fe)|0,n=(n=n+Math.imul(Ie,be)|0)+Math.imul($,Fe)|0,_=_+Math.imul($,be)|0,b=b+Math.imul(De,ct)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(ue,ct)|0,_=_+Math.imul(ue,Nt)|0,b=b+Math.imul(nt,Ae)|0,n=(n=n+Math.imul(nt,rt)|0)+Math.imul(Pe,Ae)|0,_=_+Math.imul(Pe,rt)|0;var _e=(k+(b=b+Math.imul(P,Ke)|0)|0)+((8191&(n=(n=n+Math.imul(P,mt)|0)+Math.imul(U,Ke)|0))<<13)|0;k=((_=_+Math.imul(U,mt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,b=Math.imul(Se,yt),n=(n=Math.imul(Se,Pt))+Math.imul(X,yt)|0,_=Math.imul(X,Pt),b=b+Math.imul(Y,vt)|0,n=(n=n+Math.imul(Y,Ct)|0)+Math.imul(j,vt)|0,_=_+Math.imul(j,Ct)|0,b=b+Math.imul(he,dt)|0,n=(n=n+Math.imul(he,ze)|0)+Math.imul(de,dt)|0,_=_+Math.imul(de,ze)|0,b=b+Math.imul(ut,Fe)|0,n=(n=n+Math.imul(ut,be)|0)+Math.imul(Ee,Fe)|0,_=_+Math.imul(Ee,be)|0,b=b+Math.imul(Ie,ct)|0,n=(n=n+Math.imul(Ie,Nt)|0)+Math.imul($,ct)|0,_=_+Math.imul($,Nt)|0,b=b+Math.imul(De,Ae)|0,n=(n=n+Math.imul(De,rt)|0)+Math.imul(ue,Ae)|0,_=_+Math.imul(ue,rt)|0,b=b+Math.imul(nt,Ke)|0,n=(n=n+Math.imul(nt,mt)|0)+Math.imul(Pe,Ke)|0,_=_+Math.imul(Pe,mt)|0;var Je=(k+(b=b+Math.imul(P,Gt)|0)|0)+((8191&(n=(n=n+Math.imul(P,zt)|0)+Math.imul(U,Gt)|0))<<13)|0;k=((_=_+Math.imul(U,zt)|0)+(n>>>13)|0)+(Je>>>26)|0,Je&=67108863,b=Math.imul(Le,yt),n=(n=Math.imul(Le,Pt))+Math.imul(gt,yt)|0,_=Math.imul(gt,Pt),b=b+Math.imul(Se,vt)|0,n=(n=n+Math.imul(Se,Ct)|0)+Math.imul(X,vt)|0,_=_+Math.imul(X,Ct)|0,b=b+Math.imul(Y,dt)|0,n=(n=n+Math.imul(Y,ze)|0)+Math.imul(j,dt)|0,_=_+Math.imul(j,ze)|0,b=b+Math.imul(he,Fe)|0,n=(n=n+Math.imul(he,be)|0)+Math.imul(de,Fe)|0,_=_+Math.imul(de,be)|0,b=b+Math.imul(ut,ct)|0,n=(n=n+Math.imul(ut,Nt)|0)+Math.imul(Ee,ct)|0,_=_+Math.imul(Ee,Nt)|0,b=b+Math.imul(Ie,Ae)|0,n=(n=n+Math.imul(Ie,rt)|0)+Math.imul($,Ae)|0,_=_+Math.imul($,rt)|0,b=b+Math.imul(De,Ke)|0,n=(n=n+Math.imul(De,mt)|0)+Math.imul(ue,Ke)|0,_=_+Math.imul(ue,mt)|0,b=b+Math.imul(nt,Gt)|0,n=(n=n+Math.imul(nt,zt)|0)+Math.imul(Pe,Gt)|0,_=_+Math.imul(Pe,zt)|0;var _t=(k+(b=b+Math.imul(P,ht)|0)|0)+((8191&(n=(n=n+Math.imul(P,at)|0)+Math.imul(U,ht)|0))<<13)|0;k=((_=_+Math.imul(U,at)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,b=Math.imul(Rt,yt),n=(n=Math.imul(Rt,Pt))+Math.imul(jt,yt)|0,_=Math.imul(jt,Pt),b=b+Math.imul(Le,vt)|0,n=(n=n+Math.imul(Le,Ct)|0)+Math.imul(gt,vt)|0,_=_+Math.imul(gt,Ct)|0,b=b+Math.imul(Se,dt)|0,n=(n=n+Math.imul(Se,ze)|0)+Math.imul(X,dt)|0,_=_+Math.imul(X,ze)|0,b=b+Math.imul(Y,Fe)|0,n=(n=n+Math.imul(Y,be)|0)+Math.imul(j,Fe)|0,_=_+Math.imul(j,be)|0,b=b+Math.imul(he,ct)|0,n=(n=n+Math.imul(he,Nt)|0)+Math.imul(de,ct)|0,_=_+Math.imul(de,Nt)|0,b=b+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Ee,Ae)|0,_=_+Math.imul(Ee,rt)|0,b=b+Math.imul(Ie,Ke)|0,n=(n=n+Math.imul(Ie,mt)|0)+Math.imul($,Ke)|0,_=_+Math.imul($,mt)|0,b=b+Math.imul(De,Gt)|0,n=(n=n+Math.imul(De,zt)|0)+Math.imul(ue,Gt)|0,_=_+Math.imul(ue,zt)|0,b=b+Math.imul(nt,ht)|0,n=(n=n+Math.imul(nt,at)|0)+Math.imul(Pe,ht)|0,_=_+Math.imul(Pe,at)|0;var se=(k+(b=b+Math.imul(P,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(P,qt)|0)+Math.imul(U,Ut)|0))<<13)|0;k=((_=_+Math.imul(U,qt)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,b=Math.imul(Rt,vt),n=(n=Math.imul(Rt,Ct))+Math.imul(jt,vt)|0,_=Math.imul(jt,Ct),b=b+Math.imul(Le,dt)|0,n=(n=n+Math.imul(Le,ze)|0)+Math.imul(gt,dt)|0,_=_+Math.imul(gt,ze)|0,b=b+Math.imul(Se,Fe)|0,n=(n=n+Math.imul(Se,be)|0)+Math.imul(X,Fe)|0,_=_+Math.imul(X,be)|0,b=b+Math.imul(Y,ct)|0,n=(n=n+Math.imul(Y,Nt)|0)+Math.imul(j,ct)|0,_=_+Math.imul(j,Nt)|0,b=b+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(de,Ae)|0,_=_+Math.imul(de,rt)|0,b=b+Math.imul(ut,Ke)|0,n=(n=n+Math.imul(ut,mt)|0)+Math.imul(Ee,Ke)|0,_=_+Math.imul(Ee,mt)|0,b=b+Math.imul(Ie,Gt)|0,n=(n=n+Math.imul(Ie,zt)|0)+Math.imul($,Gt)|0,_=_+Math.imul($,zt)|0,b=b+Math.imul(De,ht)|0,n=(n=n+Math.imul(De,at)|0)+Math.imul(ue,ht)|0,_=_+Math.imul(ue,at)|0;var Xe=(k+(b=b+Math.imul(nt,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(nt,qt)|0)+Math.imul(Pe,Ut)|0))<<13)|0;k=((_=_+Math.imul(Pe,qt)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,b=Math.imul(Rt,dt),n=(n=Math.imul(Rt,ze))+Math.imul(jt,dt)|0,_=Math.imul(jt,ze),b=b+Math.imul(Le,Fe)|0,n=(n=n+Math.imul(Le,be)|0)+Math.imul(gt,Fe)|0,_=_+Math.imul(gt,be)|0,b=b+Math.imul(Se,ct)|0,n=(n=n+Math.imul(Se,Nt)|0)+Math.imul(X,ct)|0,_=_+Math.imul(X,Nt)|0,b=b+Math.imul(Y,Ae)|0,n=(n=n+Math.imul(Y,rt)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,rt)|0,b=b+Math.imul(he,Ke)|0,n=(n=n+Math.imul(he,mt)|0)+Math.imul(de,Ke)|0,_=_+Math.imul(de,mt)|0,b=b+Math.imul(ut,Gt)|0,n=(n=n+Math.imul(ut,zt)|0)+Math.imul(Ee,Gt)|0,_=_+Math.imul(Ee,zt)|0,b=b+Math.imul(Ie,ht)|0,n=(n=n+Math.imul(Ie,at)|0)+Math.imul($,ht)|0,_=_+Math.imul($,at)|0;var bt=(k+(b=b+Math.imul(De,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(De,qt)|0)+Math.imul(ue,Ut)|0))<<13)|0;k=((_=_+Math.imul(ue,qt)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,b=Math.imul(Rt,Fe),n=(n=Math.imul(Rt,be))+Math.imul(jt,Fe)|0,_=Math.imul(jt,be),b=b+Math.imul(Le,ct)|0,n=(n=n+Math.imul(Le,Nt)|0)+Math.imul(gt,ct)|0,_=_+Math.imul(gt,Nt)|0,b=b+Math.imul(Se,Ae)|0,n=(n=n+Math.imul(Se,rt)|0)+Math.imul(X,Ae)|0,_=_+Math.imul(X,rt)|0,b=b+Math.imul(Y,Ke)|0,n=(n=n+Math.imul(Y,mt)|0)+Math.imul(j,Ke)|0,_=_+Math.imul(j,mt)|0,b=b+Math.imul(he,Gt)|0,n=(n=n+Math.imul(he,zt)|0)+Math.imul(de,Gt)|0,_=_+Math.imul(de,zt)|0,b=b+Math.imul(ut,ht)|0,n=(n=n+Math.imul(ut,at)|0)+Math.imul(Ee,ht)|0,_=_+Math.imul(Ee,at)|0;var Vt=(k+(b=b+Math.imul(Ie,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Ie,qt)|0)+Math.imul($,Ut)|0))<<13)|0;k=((_=_+Math.imul($,qt)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,b=Math.imul(Rt,ct),n=(n=Math.imul(Rt,Nt))+Math.imul(jt,ct)|0,_=Math.imul(jt,Nt),b=b+Math.imul(Le,Ae)|0,n=(n=n+Math.imul(Le,rt)|0)+Math.imul(gt,Ae)|0,_=_+Math.imul(gt,rt)|0,b=b+Math.imul(Se,Ke)|0,n=(n=n+Math.imul(Se,mt)|0)+Math.imul(X,Ke)|0,_=_+Math.imul(X,mt)|0,b=b+Math.imul(Y,Gt)|0,n=(n=n+Math.imul(Y,zt)|0)+Math.imul(j,Gt)|0,_=_+Math.imul(j,zt)|0,b=b+Math.imul(he,ht)|0,n=(n=n+Math.imul(he,at)|0)+Math.imul(de,ht)|0,_=_+Math.imul(de,at)|0;var mi=(k+(b=b+Math.imul(ut,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(ut,qt)|0)+Math.imul(Ee,Ut)|0))<<13)|0;k=((_=_+Math.imul(Ee,qt)|0)+(n>>>13)|0)+(mi>>>26)|0,mi&=67108863,b=Math.imul(Rt,Ae),n=(n=Math.imul(Rt,rt))+Math.imul(jt,Ae)|0,_=Math.imul(jt,rt),b=b+Math.imul(Le,Ke)|0,n=(n=n+Math.imul(Le,mt)|0)+Math.imul(gt,Ke)|0,_=_+Math.imul(gt,mt)|0,b=b+Math.imul(Se,Gt)|0,n=(n=n+Math.imul(Se,zt)|0)+Math.imul(X,Gt)|0,_=_+Math.imul(X,zt)|0,b=b+Math.imul(Y,ht)|0,n=(n=n+Math.imul(Y,at)|0)+Math.imul(j,ht)|0,_=_+Math.imul(j,at)|0;var Hi=(k+(b=b+Math.imul(he,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(he,qt)|0)+Math.imul(de,Ut)|0))<<13)|0;k=((_=_+Math.imul(de,qt)|0)+(n>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,b=Math.imul(Rt,Ke),n=(n=Math.imul(Rt,mt))+Math.imul(jt,Ke)|0,_=Math.imul(jt,mt),b=b+Math.imul(Le,Gt)|0,n=(n=n+Math.imul(Le,zt)|0)+Math.imul(gt,Gt)|0,_=_+Math.imul(gt,zt)|0,b=b+Math.imul(Se,ht)|0,n=(n=n+Math.imul(Se,at)|0)+Math.imul(X,ht)|0,_=_+Math.imul(X,at)|0;var Ui=(k+(b=b+Math.imul(Y,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Y,qt)|0)+Math.imul(j,Ut)|0))<<13)|0;k=((_=_+Math.imul(j,qt)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,b=Math.imul(Rt,Gt),n=(n=Math.imul(Rt,zt))+Math.imul(jt,Gt)|0,_=Math.imul(jt,zt),b=b+Math.imul(Le,ht)|0,n=(n=n+Math.imul(Le,at)|0)+Math.imul(gt,ht)|0,_=_+Math.imul(gt,at)|0;var Ji=(k+(b=b+Math.imul(Se,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Se,qt)|0)+Math.imul(X,Ut)|0))<<13)|0;k=((_=_+Math.imul(X,qt)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,b=Math.imul(Rt,ht),n=(n=Math.imul(Rt,at))+Math.imul(jt,ht)|0,_=Math.imul(jt,at);var an=(k+(b=b+Math.imul(Le,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(Le,qt)|0)+Math.imul(gt,Ut)|0))<<13)|0;k=((_=_+Math.imul(gt,qt)|0)+(n>>>13)|0)+(an>>>26)|0,an&=67108863;var _n=(k+(b=Math.imul(Rt,Ut))|0)+((8191&(n=(n=Math.imul(Rt,qt))+Math.imul(jt,Ut)|0))<<13)|0;return k=((_=Math.imul(jt,qt))+(n>>>13)|0)+(_n>>>26)|0,_n&=67108863,D[0]=Pi,D[1]=Ii,D[2]=Ei,D[3]=Vi,D[4]=Be,D[5]=kt,D[6]=_e,D[7]=Je,D[8]=_t,D[9]=se,D[10]=Xe,D[11]=bt,D[12]=Vt,D[13]=mi,D[14]=Hi,D[15]=Ui,D[16]=Ji,D[17]=an,D[18]=_n,0!==k&&(D[19]=k,u.length++),u};function K(S,i,r){return(new Q).mulp(S,i,r)}function Q(S,i){this.x=S,this.y=i}Math.imul||(w=N),a.prototype.mulTo=function(i,r){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?w(this,i,r):l<63?N(this,i,r):l<1024?function G(S,i,r){r.negative=i.negative^S.negative,r.length=S.length+i.length;for(var u=0,l=0,y=0;y<r.length-1;y++){var D=l;l=0;for(var k=67108863&u,b=Math.min(y,i.length-1),n=Math.max(0,y-S.length+1);n<=b;n++){var U=(0|S.words[y-n])*(0|i.words[n]),me=67108863&U;k=67108863&(me=me+k|0),l+=(D=(D=D+(U/67108864|0)|0)+(me>>>26)|0)>>>26,D&=67108863}r.words[y]=k,u=D,D=l}return 0!==u?r.words[y]=u:r.length--,r.strip()}(this,i,r):K(this,i,r),u},Q.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,l=0;l<i;l++)r[l]=this.revBin(l,u,i);return r},Q.prototype.revBin=function(i,r,u){if(0===i||i===u-1)return i;for(var l=0,y=0;y<r;y++)l|=(1&i)<<r-y-1,i>>=1;return l},Q.prototype.permute=function(i,r,u,l,y,D){for(var k=0;k<D;k++)l[k]=r[i[k]],y[k]=u[i[k]]},Q.prototype.transform=function(i,r,u,l,y,D){this.permute(D,i,r,u,l,y);for(var k=1;k<y;k<<=1)for(var b=k<<1,n=Math.cos(2*Math.PI/b),_=Math.sin(2*Math.PI/b),W=0;W<y;W+=b)for(var P=n,U=_,me=0;me<k;me++){var nt=u[W+me],Pe=l[W+me],Oe=u[W+me+k],De=l[W+me+k],ue=P*Oe-U*De;De=P*De+U*Oe,u[W+me]=nt+(Oe=ue),l[W+me]=Pe+De,u[W+me+k]=nt-Oe,l[W+me+k]=Pe-De,me!==b&&(ue=n*P-_*U,U=n*U+_*P,P=ue)}},Q.prototype.guessLen13b=function(i,r){var u=1|Math.max(r,i),l=1&u,y=0;for(u=u/2|0;u;u>>>=1)y++;return 1<<y+1+l},Q.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var l=0;l<u/2;l++){var y=i[l];i[l]=i[u-l-1],i[u-l-1]=y,y=r[l],r[l]=-r[u-l-1],r[u-l-1]=-y}},Q.prototype.normalize13b=function(i,r){for(var u=0,l=0;l<r/2;l++){var y=8192*Math.round(i[2*l+1]/r)+Math.round(i[2*l]/r)+u;i[l]=67108863&y,u=y<67108864?0:y/67108864|0}return i},Q.prototype.convert13b=function(i,r,u,l){for(var y=0,D=0;D<r;D++)u[2*D]=8191&(y+=0|i[D]),u[2*D+1]=8191&(y>>>=13),y>>>=13;for(D=2*r;D<l;++D)u[D]=0;f(0===y),f(0==(-8192&y))},Q.prototype.stub=function(i){for(var r=new Array(i),u=0;u<i;u++)r[u]=0;return r},Q.prototype.mulp=function(i,r,u){var l=2*this.guessLen13b(i.length,r.length),y=this.makeRBT(l),D=this.stub(l),k=new Array(l),b=new Array(l),n=new Array(l),_=new Array(l),W=new Array(l),P=new Array(l),U=u.words;U.length=l,this.convert13b(i.words,i.length,k,l),this.convert13b(r.words,r.length,_,l),this.transform(k,D,b,n,l,y),this.transform(_,D,W,P,l,y);for(var me=0;me<l;me++){var nt=b[me]*W[me]-n[me]*P[me];n[me]=b[me]*P[me]+n[me]*W[me],b[me]=nt}return this.conjugate(b,n,l),this.transform(b,n,U,D,l,y),this.conjugate(U,D,l),this.normalize13b(U,l),u.negative=i.negative^r.negative,u.length=i.length+r.length,u.strip()},a.prototype.mul=function(i){var r=new a(null);return r.words=new Array(this.length+i.length),this.mulTo(i,r)},a.prototype.mulf=function(i){var r=new a(null);return r.words=new Array(this.length+i.length),K(this,i,r)},a.prototype.imul=function(i){return this.clone().mulTo(i,this)},a.prototype.imuln=function(i){f("number"==typeof i),f(i<67108864);for(var r=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,y=(67108863&l)+(67108863&r);r>>=26,r+=l/67108864|0,r+=y>>>26,this.words[u]=67108863&y}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function T(S){for(var i=new Array(S.bitLength()),r=0;r<i.length;r++){var l=r%26;i[r]=(S.words[r/26|0]&1<<l)>>>l}return i}(i);if(0===r.length)return new a(1);for(var u=this,l=0;l<r.length&&0===r[l];l++,u=u.sqr());if(++l<r.length)for(var y=u.sqr();l<r.length;l++,y=y.sqr())0!==r[l]&&(u=u.mul(y));return u},a.prototype.iushln=function(i){f("number"==typeof i&&i>=0);var y,r=i%26,u=(i-r)/26,l=67108863>>>26-r<<26-r;if(0!==r){var D=0;for(y=0;y<this.length;y++){var k=this.words[y]&l;this.words[y]=(0|this.words[y])-k<<r|D,D=k>>>26-r}D&&(this.words[y]=D,this.length++)}if(0!==u){for(y=this.length-1;y>=0;y--)this.words[y+u]=this.words[y];for(y=0;y<u;y++)this.words[y]=0;this.length+=u}return this.strip()},a.prototype.ishln=function(i){return f(0===this.negative),this.iushln(i)},a.prototype.iushrn=function(i,r,u){var l;f("number"==typeof i&&i>=0),l=r?(r-r%26)/26:0;var y=i%26,D=Math.min((i-y)/26,this.length),k=67108863^67108863>>>y<<y,b=u;if(l-=D,l=Math.max(0,l),b){for(var n=0;n<D;n++)b.words[n]=this.words[n];b.length=D}if(0!==D)if(this.length>D)for(this.length-=D,n=0;n<this.length;n++)this.words[n]=this.words[n+D];else this.words[0]=0,this.length=1;var _=0;for(n=this.length-1;n>=0&&(0!==_||n>=l);n--){var W=0|this.words[n];this.words[n]=_<<26-y|W>>>y,_=W&k}return b&&0!==_&&(b.words[b.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<<r))},a.prototype.imaskn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},a.prototype.maskn=function(i){return this.clone().imaskn(i)},a.prototype.iaddn=function(i){return f("number"==typeof i),f(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},a.prototype._iaddn=function(i){this.words[0]+=i;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(i){return this.clone().iaddn(i)},a.prototype.subn=function(i){return this.clone().isubn(i)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(i,r,u){var y;this._expand(i.length+u);var D,k=0;for(y=0;y<i.length;y++){D=(0|this.words[y+u])+k;var b=(0|i.words[y])*r;k=((D-=67108863&b)>>26)-(b/67108864|0),this.words[y+u]=67108863&D}for(;y<this.length-u;y++)k=(D=(0|this.words[y+u])+k)>>26,this.words[y+u]=67108863&D;if(0===k)return this.strip();for(f(-1===k),k=0,y=0;y<this.length;y++)k=(D=-(0|this.words[y])+k)>>26,this.words[y]=67108863&D;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,l=this.clone(),y=i,D=0|y.words[y.length-1];0!=(u=26-this._countBits(D))&&(y=y.ushln(u),l.iushln(u),D=0|y.words[y.length-1]);var n,b=l.length-y.length;if("mod"!==r){(n=new a(null)).length=b+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var W=l.clone()._ishlnsubmul(y,1,b);0===W.negative&&(l=W,n&&(n.words[b]=1));for(var P=b-1;P>=0;P--){var U=67108864*(0|l.words[y.length+P])+(0|l.words[y.length+P-1]);for(U=Math.min(U/D|0,67108863),l._ishlnsubmul(y,U,P);0!==l.negative;)U--,l.negative=0,l._ishlnsubmul(y,1,P),l.isZero()||(l.negative^=1);n&&(n.words[P]=U)}return n&&n.strip(),l.strip(),"div"!==r&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,r),"mod"!==r&&(l=D.div.neg()),"div"!==r&&(y=D.mod.neg(),u&&0!==y.negative&&y.iadd(i)),{div:l,mod:y}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),r),"mod"!==r&&(l=D.div.neg()),{div:l,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),r),"div"!==r&&(y=D.mod.neg(),u&&0!==y.negative&&y.isub(i)),{div:D.div,mod:y}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var l,y,D},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,l=i.ushrn(1),y=i.andln(1),D=u.cmp(l);return D<0||1===y&&0===D?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(r*u+(0|this.words[l]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*r;this.words[u]=l/i|0,r=l%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var l=new a(1),y=new a(0),D=new a(0),k=new a(1),b=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++b;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var W=0,P=1;0==(r.words[0]&P)&&W<26;++W,P<<=1);if(W>0)for(r.iushrn(W);W-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(n),y.isub(_)),l.iushrn(1),y.iushrn(1);for(var U=0,me=1;0==(u.words[0]&me)&&U<26;++U,me<<=1);if(U>0)for(u.iushrn(U);U-- >0;)(D.isOdd()||k.isOdd())&&(D.iadd(n),k.isub(_)),D.iushrn(1),k.iushrn(1);r.cmp(u)>=0?(r.isub(u),l.isub(D),y.isub(k)):(u.isub(r),D.isub(l),k.isub(y))}return{a:D,b:k,gcd:u.iushln(b)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var W,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var l=new a(1),y=new a(0),D=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var k=0,b=1;0==(r.words[0]&b)&&k<26;++k,b<<=1);if(k>0)for(r.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(D),l.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)y.isOdd()&&y.iadd(D),y.iushrn(1);r.cmp(u)>=0?(r.isub(u),l.isub(y)):(u.isub(r),y.isub(l))}return(W=0===r.cmpn(1)?l:y).cmpn(0)<0&&W.iadd(i),W},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var l=0;r.isEven()&&u.isEven();l++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var y=r.cmp(u);if(y<0){var D=r;r=u,u=D}else if(0===y||0===u.cmpn(1))break;r.isub(u)}return u.iushln(l)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,l=1<<r;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var y=l,D=u;0!==y&&D<this.length;D++){var k=0|this.words[D];y=(k+=y)>>>26,this.words[D]=k&=67108863}return 0!==y&&(this.words[D]=y,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},a.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var r=this.ucmp(i);return 0!==this.negative?0|-r:r},a.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var r=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],y=0|i.words[u];if(l!==y){l<y?r=-1:l>y&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new ee(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var re={k256:null,p224:null,p192:null,p25519:null};function ie(S,i){this.name=S,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ce(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ae(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ne(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(S){if("string"==typeof S){var i=a._prime(S);this.m=i.p,this.prime=i}else f(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function pe(S){ee.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ie.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:r.ucmp(this.p);return 0===l?(r.words[0]=0,r.length=1):l>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ie.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ie.prototype.imulK=function(i){return i.imul(this.k)},C(ce,ie),ce.prototype.split=function(i,r){for(var u=4194303,l=Math.min(i.length,9),y=0;y<l;y++)r.words[y]=i.words[y];if(r.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var D=i.words[9];for(r.words[r.length++]=D&u,y=10;y<i.length;y++){var k=0|i.words[y];i.words[y-10]=(k&u)<<4|D>>>22,D=k}i.words[y-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ce.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(r+=977*l),r=64*l+(r/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ae,ie),C(ne,ie),C(le,ie),le.prototype.imulK=function(i){for(var r=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+r,y=67108863&l;l>>>=26,i.words[u]=y,r=l}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(re[i])return re[i];var r;if("k256"===i)r=new ce;else if("p224"===i)r=new ae;else if("p192"===i)r=new ne;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new le}return re[i]=r,r},ee.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},ee.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},ee.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ee.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ee.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},ee.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},ee.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},ee.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},ee.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},ee.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},ee.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},ee.prototype.isqr=function(i){return this.imul(i,i.clone())},ee.prototype.sqr=function(i){return this.mul(i,i)},ee.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),y=0;!l.isZero()&&0===l.andln(1);)y++,l.iushrn(1);f(!l.isZero());var D=new a(1).toRed(this),k=D.redNeg(),b=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,b).cmp(k);)n.redIAdd(k);for(var _=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),P=this.pow(i,l),U=y;0!==P.cmp(D);){for(var me=P,nt=0;0!==me.cmp(D);nt++)me=me.redSqr();f(nt<U);var Pe=this.pow(_,new a(1).iushln(U-nt-1));W=W.redMul(Pe),_=Pe.redSqr(),P=P.redMul(_),U=nt}return W},ee.prototype.invm=function(i){var r=i._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},ee.prototype.pow=function(i,r){if(r.isZero())return new a(1).toRed(this);if(0===r.cmpn(1))return i.clone();var l=new Array(16);l[0]=new a(1).toRed(this),l[1]=i;for(var y=2;y<l.length;y++)l[y]=this.mul(l[y-1],i);var D=l[0],k=0,b=0,n=r.bitLength()%26;for(0===n&&(n=26),y=r.length-1;y>=0;y--){for(var _=r.words[y],W=n-1;W>=0;W--){var P=_>>W&1;D!==l[0]&&(D=this.sqr(D)),0!==P||0!==k?(k<<=1,k|=P,(4==++b||0===y&&0===W)&&(D=this.mul(D,l[k]),b=0,k=0)):b=0}n=26}return D},ee.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},ee.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new pe(i)},C(pe,ee),pe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},pe.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},pe.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),D=y;return y.cmp(this.m)>=0?D=y.isub(this.m):y.cmpn(0)<0&&(D=y.iadd(this.m)),D._forceRed(this)},pe.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),D=y;return y.cmp(this.m)>=0?D=y.isub(this.m):y.cmpn(0)<0&&(D=y.iadd(this.m)),D._forceRed(this)},pe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=p.nmd(ke),this)},6705:(ke,J,p)=>{var t=p(2772),e=p(6945),f=p(9401),C=p(2057),a=p(8466),M=p(6386),d=p(8651),R=p(3502).Buffer;ke.exports=function(T,N,w){var G;G=T.padding?T.padding:w?1:4;var re,K=t(T),Q=K.modulus.byteLength();if(N.length>Q||new C(N).cmp(K.modulus)>=0)throw new Error("decryption error");re=w?d(new C(N),K):a(N,K);var ie=R.alloc(Q-re.length);if(re=R.concat([ie,re],Q),4===G)return function h(L,T){var N=L.modulus.byteLength(),w=M("sha1").update(R.alloc(0)).digest(),G=w.length;if(0!==T[0])throw new Error("decryption error");var K=T.slice(1,G+1),Q=T.slice(G+1),re=f(K,e(Q,G)),ie=f(Q,e(re,N-G-1));if(function E(L,T){L=R.from(L),T=R.from(T);var N=0,w=L.length;L.length!==T.length&&(N++,w=Math.min(L.length,T.length));for(var G=-1;++G<w;)N+=L[G]^T[G];return N}(w,ie.slice(0,G)))throw new Error("decryption error");for(var ce=G;0===ie[ce];)ce++;if(1!==ie[ce++])throw new Error("decryption error");return ie.slice(ce)}(K,re);if(1===G)return function I(L,T,N){for(var w=T.slice(0,2),G=2,K=0;0!==T[G++];)if(G>=T.length){K++;break}var Q=T.slice(2,G-1);if(("0002"!==w.toString("hex")&&!N||"0001"!==w.toString("hex")&&N)&&K++,Q.length<8&&K++,K)throw new Error("decryption error");return T.slice(G)}(0,re,w);if(3===G)return re;throw new Error("unknown padding")}},6562:(ke,J,p)=>{var t=p(2772),e=p(3753),f=p(6386),C=p(6945),a=p(9401),M=p(2057),d=p(8651),R=p(8466),h=p(3502).Buffer;ke.exports=function(N,w,G){var K;K=N.padding?N.padding:G?1:4;var re,Q=t(N);if(4===K)re=function I(T,N){var w=T.modulus.byteLength(),G=N.length,K=f("sha1").update(h.alloc(0)).digest(),Q=K.length,re=2*Q;if(G>w-re-2)throw new Error("message too long");var ie=h.alloc(w-G-re-2),ce=w-Q-1,ae=e(Q),ne=a(h.concat([K,ie,h.alloc(1,1),N],ce),C(ae,ce)),le=a(ae,C(ne,Q));return new M(h.concat([h.alloc(1),le,ne],w))}(Q,w);else if(1===K)re=function E(T,N,w){var Q,G=N.length,K=T.modulus.byteLength();if(G>K-11)throw new Error("message too long");return Q=w?h.alloc(K-G-3,255):function L(T){for(var Q,N=h.allocUnsafe(T),w=0,G=e(2*T),K=0;w<T;)K===G.length&&(G=e(2*T),K=0),(Q=G[K++])&&(N[w++]=Q);return N}(K-G-3),new M(h.concat([h.from([0,w?1:2]),Q,h.alloc(1),N],K))}(Q,w,G);else{if(3!==K)throw new Error("unknown padding");if((re=new M(w)).cmp(Q.modulus)>=0)throw new Error("data too long for modulus")}return G?R(re,Q):d(re,Q)}},8651:(ke,J,p)=>{var t=p(2057),e=p(3502).Buffer;ke.exports=function f(C,a){return e.from(C.toRed(t.mont(a.modulus)).redPow(new t(a.publicExponent)).fromRed().toArray())}},9401:ke=>{ke.exports=function(p,t){for(var e=p.length,f=-1;++f<e;)p[f]^=t[f];return p}},3259:(ke,J,p)=>{const t=p(8695),e=p(1465),f=p(3210),C=p(2334);function a(M,d,R,h,I){const E=[].slice.call(arguments,1),L=E.length,T="function"==typeof E[L-1];if(!T&&!t())throw new Error("Callback required as last argument");if(!T){if(L<1)throw new Error("Too few arguments provided");return 1===L?(R=d,d=h=void 0):2===L&&!d.getContext&&(h=R,R=d,d=void 0),new Promise(function(N,w){try{const G=e.create(R,h);N(M(G,d,h))}catch(G){w(G)}})}if(L<2)throw new Error("Too few arguments provided");2===L?(I=R,R=d,d=h=void 0):3===L&&(d.getContext&&typeof I>"u"?(I=h,h=void 0):(I=h,h=R,R=d,d=void 0));try{const N=e.create(R,h);I(null,M(N,d,h))}catch(N){I(N)}}J.create=e.create,J.toCanvas=a.bind(null,f.render),J.toDataURL=a.bind(null,f.renderToDataURL),J.toString=a.bind(null,function(M,d,R){return C.render(M,R)})},8695:ke=>{ke.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(ke,J,p)=>{const t=p(4792).getSymbolSize;J.getRowColCoords=function(f){if(1===f)return[];const C=Math.floor(f/7)+2,a=t(f),M=145===a?26:2*Math.ceil((a-13)/(2*C-2)),d=[a-7];for(let R=1;R<C-1;R++)d[R]=d[R-1]-M;return d.push(6),d.reverse()},J.getPositions=function(f){const C=[],a=J.getRowColCoords(f),M=a.length;for(let d=0;d<M;d++)for(let R=0;R<M;R++)0===d&&0===R||0===d&&R===M-1||d===M-1&&0===R||C.push([a[d],a[R]]);return C}},2424:(ke,J,p)=>{const t=p(4016),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function f(C){this.mode=t.ALPHANUMERIC,this.data=C}f.getBitsLength=function(a){return 11*Math.floor(a/2)+a%2*6},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(a){let M;for(M=0;M+2<=this.data.length;M+=2){let d=45*e.indexOf(this.data[M]);d+=e.indexOf(this.data[M+1]),a.put(d,11)}this.data.length%2&&a.put(e.indexOf(this.data[M]),6)},ke.exports=f},2118:ke=>{function J(){this.buffer=[],this.length=0}J.prototype={get:function(p){const t=Math.floor(p/8);return 1==(this.buffer[t]>>>7-p%8&1)},put:function(p,t){for(let e=0;e<t;e++)this.putBit(1==(p>>>t-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(p){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),p&&(this.buffer[t]|=128>>>this.length%8),this.length++}},ke.exports=J},4425:ke=>{function J(p){if(!p||p<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=p,this.data=new Uint8Array(p*p),this.reservedBit=new Uint8Array(p*p)}J.prototype.set=function(p,t,e,f){const C=p*this.size+t;this.data[C]=e,f&&(this.reservedBit[C]=!0)},J.prototype.get=function(p,t){return this.data[p*this.size+t]},J.prototype.xor=function(p,t,e){this.data[p*this.size+t]^=e},J.prototype.isReserved=function(p,t){return this.reservedBit[p*this.size+t]},ke.exports=J},5663:(ke,J,p)=>{const t=p(8419),e=p(4016);function f(C){this.mode=e.BYTE,"string"==typeof C&&(C=t(C)),this.data=new Uint8Array(C)}f.getBitsLength=function(a){return 8*a},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(C){for(let a=0,M=this.data.length;a<M;a++)C.put(this.data[a],8)},ke.exports=f},4655:(ke,J,p)=>{const t=p(2259),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],f=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];J.getBlocksCount=function(a,M){switch(M){case t.L:return e[4*(a-1)+0];case t.M:return e[4*(a-1)+1];case t.Q:return e[4*(a-1)+2];case t.H:return e[4*(a-1)+3];default:return}},J.getTotalCodewordsCount=function(a,M){switch(M){case t.L:return f[4*(a-1)+0];case t.M:return f[4*(a-1)+1];case t.Q:return f[4*(a-1)+2];case t.H:return f[4*(a-1)+3];default:return}}},2259:(ke,J)=>{J.L={bit:1},J.M={bit:0},J.Q={bit:3},J.H={bit:2},J.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},J.from=function(e,f){if(J.isValid(e))return e;try{return function p(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return J.L;case"m":case"medium":return J.M;case"q":case"quartile":return J.Q;case"h":case"high":return J.H;default:throw new Error("Unknown EC Level: "+t)}}(e)}catch{return f}}},3114:(ke,J,p)=>{const t=p(4792).getSymbolSize;J.getPositions=function(C){const a=t(C);return[[0,0],[a-7,0],[0,a-7]]}},7078:(ke,J,p)=>{const t=p(4792),C=t.getBCHDigit(1335);J.getEncodedBits=function(M,d){const R=M.bit<<3|d;let h=R<<10;for(;t.getBCHDigit(h)-C>=0;)h^=1335<<t.getBCHDigit(h)-C;return 21522^(R<<10|h)}},5339:(ke,J)=>{const p=new Uint8Array(512),t=new Uint8Array(256);(function(){let f=1;for(let C=0;C<255;C++)p[C]=f,t[f]=C,f<<=1,256&f&&(f^=285);for(let C=255;C<512;C++)p[C]=p[C-255]})(),J.log=function(f){if(f<1)throw new Error("log("+f+")");return t[f]},J.exp=function(f){return p[f]},J.mul=function(f,C){return 0===f||0===C?0:p[t[f]+t[C]]}},449:(ke,J,p)=>{const t=p(4016),e=p(4792);function f(C){this.mode=t.KANJI,this.data=C}f.getBitsLength=function(a){return 13*a},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(C){let a;for(a=0;a<this.data.length;a++){let M=e.toSJIS(this.data[a]);if(M>=33088&&M<=40956)M-=33088;else{if(!(M>=57408&&M<=60351))throw new Error("Invalid SJIS character: "+this.data[a]+"\nMake sure your charset is UTF-8");M-=49472}M=192*(M>>>8&255)+(255&M),C.put(M,13)}},ke.exports=f},3667:(ke,J)=>{J.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function t(e,f,C){switch(e){case J.Patterns.PATTERN000:return(f+C)%2==0;case J.Patterns.PATTERN001:return f%2==0;case J.Patterns.PATTERN010:return C%3==0;case J.Patterns.PATTERN011:return(f+C)%3==0;case J.Patterns.PATTERN100:return(Math.floor(f/2)+Math.floor(C/3))%2==0;case J.Patterns.PATTERN101:return f*C%2+f*C%3==0;case J.Patterns.PATTERN110:return(f*C%2+f*C%3)%2==0;case J.Patterns.PATTERN111:return(f*C%3+(f+C)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}J.isValid=function(f){return null!=f&&""!==f&&!isNaN(f)&&f>=0&&f<=7},J.from=function(f){return J.isValid(f)?parseInt(f,10):void 0},J.getPenaltyN1=function(f){const C=f.size;let a=0,M=0,d=0,R=null,h=null;for(let I=0;I<C;I++){M=d=0,R=h=null;for(let E=0;E<C;E++){let L=f.get(I,E);L===R?M++:(M>=5&&(a+=M-5+3),R=L,M=1),L=f.get(E,I),L===h?d++:(d>=5&&(a+=d-5+3),h=L,d=1)}M>=5&&(a+=M-5+3),d>=5&&(a+=d-5+3)}return a},J.getPenaltyN2=function(f){const C=f.size;let a=0;for(let M=0;M<C-1;M++)for(let d=0;d<C-1;d++){const R=f.get(M,d)+f.get(M,d+1)+f.get(M+1,d)+f.get(M+1,d+1);(4===R||0===R)&&a++}return 3*a},J.getPenaltyN3=function(f){const C=f.size;let a=0,M=0,d=0;for(let R=0;R<C;R++){M=d=0;for(let h=0;h<C;h++)M=M<<1&2047|f.get(R,h),h>=10&&(1488===M||93===M)&&a++,d=d<<1&2047|f.get(h,R),h>=10&&(1488===d||93===d)&&a++}return 40*a},J.getPenaltyN4=function(f){let C=0;const a=f.data.length;for(let d=0;d<a;d++)C+=f.data[d];return 10*Math.abs(Math.ceil(100*C/a/5)-10)},J.applyMask=function(f,C){const a=C.size;for(let M=0;M<a;M++)for(let d=0;d<a;d++)C.isReserved(d,M)||C.xor(d,M,t(f,d,M))},J.getBestMask=function(f,C){const a=Object.keys(J.Patterns).length;let M=0,d=1/0;for(let R=0;R<a;R++){C(R),J.applyMask(R,f);const h=J.getPenaltyN1(f)+J.getPenaltyN2(f)+J.getPenaltyN3(f)+J.getPenaltyN4(f);J.applyMask(R,f),h<d&&(d=h,M=R)}return M}},4016:(ke,J,p)=>{const t=p(4406),e=p(2699);J.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},J.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},J.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},J.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},J.MIXED={bit:-1},J.getCharCountIndicator=function(a,M){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(M))throw new Error("Invalid version: "+M);return M>=1&&M<10?a.ccBits[0]:M<27?a.ccBits[1]:a.ccBits[2]},J.getBestModeForData=function(a){return e.testNumeric(a)?J.NUMERIC:e.testAlphanumeric(a)?J.ALPHANUMERIC:e.testKanji(a)?J.KANJI:J.BYTE},J.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},J.isValid=function(a){return a&&a.bit&&a.ccBits},J.from=function(a,M){if(J.isValid(a))return a;try{return function f(C){if("string"!=typeof C)throw new Error("Param is not a string");switch(C.toLowerCase()){case"numeric":return J.NUMERIC;case"alphanumeric":return J.ALPHANUMERIC;case"kanji":return J.KANJI;case"byte":return J.BYTE;default:throw new Error("Unknown mode: "+C)}}(a)}catch{return M}}},7783:(ke,J,p)=>{const t=p(4016);function e(f){this.mode=t.NUMERIC,this.data=f.toString()}e.getBitsLength=function(C){return 10*Math.floor(C/3)+(C%3?C%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(C){let a,M,d;for(a=0;a+3<=this.data.length;a+=3)M=this.data.substr(a,3),d=parseInt(M,10),C.put(d,10);const R=this.data.length-a;R>0&&(M=this.data.substr(a),d=parseInt(M,10),C.put(d,3*R+1))},ke.exports=e},1106:(ke,J,p)=>{const t=p(5339);J.mul=function(f,C){const a=new Uint8Array(f.length+C.length-1);for(let M=0;M<f.length;M++)for(let d=0;d<C.length;d++)a[M+d]^=t.mul(f[M],C[d]);return a},J.mod=function(f,C){let a=new Uint8Array(f);for(;a.length-C.length>=0;){const M=a[0];for(let R=0;R<C.length;R++)a[R]^=t.mul(C[R],M);let d=0;for(;d<a.length&&0===a[d];)d++;a=a.slice(d)}return a},J.generateECPolynomial=function(f){let C=new Uint8Array([1]);for(let a=0;a<f;a++)C=J.mul(C,new Uint8Array([1,t.exp(a)]));return C}},1465:(ke,J,p)=>{const t=p(4792),e=p(2259),f=p(2118),C=p(4425),a=p(6221),M=p(3114),d=p(3667),R=p(4655),h=p(2636),I=p(2088),E=p(7078),L=p(4016),T=p(2033);function Q(ne,le,ee){const pe=ne.size,S=E.getEncodedBits(le,ee);let i,r;for(i=0;i<15;i++)r=1==(S>>i&1),ne.set(i<6?i:i<8?i+1:pe-15+i,8,r,!0),ne.set(8,i<8?pe-i-1:i<9?15-i-1+1:15-i-1,r,!0);ne.set(pe-8,8,1,!0)}function ae(ne,le,ee,pe){let S;if(Array.isArray(ne))S=T.fromArray(ne);else{if("string"!=typeof ne)throw new Error("Invalid data");{let y=le;if(!y){const D=T.rawSplit(ne);y=I.getBestVersionForData(D,ee)}S=T.fromString(ne,y||40)}}const i=I.getBestVersionForData(S,ee);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(le){if(le<i)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+i+".\n")}else le=i;const r=function ie(ne,le,ee){const pe=new f;ee.forEach(function(l){pe.put(l.mode.bit,4),pe.put(l.getLength(),L.getCharCountIndicator(l.mode,ne)),l.write(pe)});const r=8*(t.getSymbolTotalCodewords(ne)-R.getTotalCodewordsCount(ne,le));for(pe.getLengthInBits()+4<=r&&pe.put(0,4);pe.getLengthInBits()%8!=0;)pe.putBit(0);const u=(r-pe.getLengthInBits())/8;for(let l=0;l<u;l++)pe.put(l%2?17:236,8);return function ce(ne,le,ee){const pe=t.getSymbolTotalCodewords(le),i=pe-R.getTotalCodewordsCount(le,ee),r=R.getBlocksCount(le,ee),l=r-pe%r,y=Math.floor(pe/r),D=Math.floor(i/r),k=D+1,b=y-D,n=new h(b);let _=0;const W=new Array(r),P=new Array(r);let U=0;const me=new Uint8Array(ne.buffer);for(let ue=0;ue<r;ue++){const ve=ue<l?D:k;W[ue]=me.slice(_,_+ve),P[ue]=n.encode(W[ue]),_+=ve,U=Math.max(U,ve)}const nt=new Uint8Array(pe);let Oe,De,Pe=0;for(Oe=0;Oe<U;Oe++)for(De=0;De<r;De++)Oe<W[De].length&&(nt[Pe++]=W[De][Oe]);for(Oe=0;Oe<b;Oe++)for(De=0;De<r;De++)nt[Pe++]=P[De][Oe];return nt}(pe,ne,le)}(le,ee,S),u=t.getSymbolSize(le),l=new C(u);return function N(ne,le){const ee=ne.size,pe=M.getPositions(le);for(let S=0;S<pe.length;S++){const i=pe[S][0],r=pe[S][1];for(let u=-1;u<=7;u++)if(!(i+u<=-1||ee<=i+u))for(let l=-1;l<=7;l++)r+l<=-1||ee<=r+l||ne.set(i+u,r+l,u>=0&&u<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===u||6===u)||u>=2&&u<=4&&l>=2&&l<=4,!0)}}(l,le),function w(ne){const le=ne.size;for(let ee=8;ee<le-8;ee++){const pe=ee%2==0;ne.set(ee,6,pe,!0),ne.set(6,ee,pe,!0)}}(l),function G(ne,le){const ee=a.getPositions(le);for(let pe=0;pe<ee.length;pe++){const S=ee[pe][0],i=ee[pe][1];for(let r=-2;r<=2;r++)for(let u=-2;u<=2;u++)ne.set(S+r,i+u,-2===r||2===r||-2===u||2===u||0===r&&0===u,!0)}}(l,le),Q(l,ee,0),le>=7&&function K(ne,le){const ee=ne.size,pe=I.getEncodedBits(le);let S,i,r;for(let u=0;u<18;u++)S=Math.floor(u/3),i=u%3+ee-8-3,r=1==(pe>>u&1),ne.set(S,i,r,!0),ne.set(i,S,r,!0)}(l,le),function re(ne,le){const ee=ne.size;let pe=-1,S=ee-1,i=7,r=0;for(let u=ee-1;u>0;u-=2)for(6===u&&u--;;){for(let l=0;l<2;l++)if(!ne.isReserved(S,u-l)){let y=!1;r<le.length&&(y=1==(le[r]>>>i&1)),ne.set(S,u-l,y),i--,-1===i&&(r++,i=7)}if(S+=pe,S<0||ee<=S){S-=pe,pe=-pe;break}}}(l,r),isNaN(pe)&&(pe=d.getBestMask(l,Q.bind(null,l,ee))),d.applyMask(pe,l),Q(l,ee,pe),{modules:l,version:le,errorCorrectionLevel:ee,maskPattern:pe,segments:S}}J.create=function(le,ee){if(typeof le>"u"||""===le)throw new Error("No input text");let S,i,pe=e.M;return typeof ee<"u"&&(pe=e.from(ee.errorCorrectionLevel,e.M),S=I.from(ee.version),i=d.from(ee.maskPattern),ee.toSJISFunc&&t.setToSJISFunction(ee.toSJISFunc)),ae(le,S,pe,i)}},2636:(ke,J,p)=>{const t=p(1106);function e(f){this.genPoly=void 0,this.degree=f,this.degree&&this.initialize(this.degree)}e.prototype.initialize=function(C){this.degree=C,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(C){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(C.length+this.degree);a.set(C);const M=t.mod(a,this.genPoly),d=this.degree-M.length;if(d>0){const R=new Uint8Array(this.degree);return R.set(M,d),R}return M},ke.exports=e},2699:(ke,J)=>{const p="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const f="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";J.KANJI=new RegExp(e,"g"),J.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),J.BYTE=new RegExp(f,"g"),J.NUMERIC=new RegExp(p,"g"),J.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const C=new RegExp("^"+e+"$"),a=new RegExp("^"+p+"$"),M=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");J.testKanji=function(R){return C.test(R)},J.testNumeric=function(R){return a.test(R)},J.testAlphanumeric=function(R){return M.test(R)}},2033:(ke,J,p)=>{const t=p(4016),e=p(7783),f=p(2424),C=p(5663),a=p(449),M=p(2699),d=p(4792),R=p(4901);function h(K){return unescape(encodeURIComponent(K)).length}function I(K,Q,re){const ie=[];let ce;for(;null!==(ce=K.exec(re));)ie.push({data:ce[0],index:ce.index,mode:Q,length:ce[0].length});return ie}function E(K){const Q=I(M.NUMERIC,t.NUMERIC,K),re=I(M.ALPHANUMERIC,t.ALPHANUMERIC,K);let ie,ce;return d.isKanjiModeEnabled()?(ie=I(M.BYTE,t.BYTE,K),ce=I(M.KANJI,t.KANJI,K)):(ie=I(M.BYTE_KANJI,t.BYTE,K),ce=[]),Q.concat(re,ie,ce).sort(function(ne,le){return ne.index-le.index}).map(function(ne){return{data:ne.data,mode:ne.mode,length:ne.length}})}function L(K,Q){switch(Q){case t.NUMERIC:return e.getBitsLength(K);case t.ALPHANUMERIC:return f.getBitsLength(K);case t.KANJI:return a.getBitsLength(K);case t.BYTE:return C.getBitsLength(K)}}function G(K,Q){let re;const ie=t.getBestModeForData(K);if(re=t.from(Q,ie),re!==t.BYTE&&re.bit<ie.bit)throw new Error('"'+K+'" cannot be encoded with mode '+t.toString(re)+".\n Suggested mode is: "+t.toString(ie));switch(re===t.KANJI&&!d.isKanjiModeEnabled()&&(re=t.BYTE),re){case t.NUMERIC:return new e(K);case t.ALPHANUMERIC:return new f(K);case t.KANJI:return new a(K);case t.BYTE:return new C(K)}}J.fromArray=function(Q){return Q.reduce(function(re,ie){return"string"==typeof ie?re.push(G(ie,null)):ie.data&&re.push(G(ie.data,ie.mode)),re},[])},J.fromString=function(Q,re){const ce=function N(K){const Q=[];for(let re=0;re<K.length;re++){const ie=K[re];switch(ie.mode){case t.NUMERIC:Q.push([ie,{data:ie.data,mode:t.ALPHANUMERIC,length:ie.length},{data:ie.data,mode:t.BYTE,length:ie.length}]);break;case t.ALPHANUMERIC:Q.push([ie,{data:ie.data,mode:t.BYTE,length:ie.length}]);break;case t.KANJI:Q.push([ie,{data:ie.data,mode:t.BYTE,length:h(ie.data)}]);break;case t.BYTE:Q.push([{data:ie.data,mode:t.BYTE,length:h(ie.data)}])}}return Q}(E(Q,d.isKanjiModeEnabled())),ae=function w(K,Q){const re={},ie={start:{}};let ce=["start"];for(let ae=0;ae<K.length;ae++){const ne=K[ae],le=[];for(let ee=0;ee<ne.length;ee++){const pe=ne[ee],S=""+ae+ee;le.push(S),re[S]={node:pe,lastCount:0},ie[S]={};for(let i=0;i<ce.length;i++){const r=ce[i];re[r]&&re[r].node.mode===pe.mode?(ie[r][S]=L(re[r].lastCount+pe.length,pe.mode)-L(re[r].lastCount,pe.mode),re[r].lastCount+=pe.length):(re[r]&&(re[r].lastCount=pe.length),ie[r][S]=L(pe.length,pe.mode)+4+t.getCharCountIndicator(pe.mode,Q))}}ce=le}for(let ae=0;ae<ce.length;ae++)ie[ce[ae]].end=0;return{map:ie,table:re}}(ce,re),ne=R.find_path(ae.map,"start","end"),le=[];for(let ee=1;ee<ne.length-1;ee++)le.push(ae.table[ne[ee]].node);return J.fromArray(function T(K){return K.reduce(function(Q,re){const ie=Q.length-1>=0?Q[Q.length-1]:null;return ie&&ie.mode===re.mode?(Q[Q.length-1].data+=re.data,Q):(Q.push(re),Q)},[])}(le))},J.rawSplit=function(Q){return J.fromArray(E(Q,d.isKanjiModeEnabled()))}},4792:(ke,J)=>{let p;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];J.getSymbolSize=function(f){if(!f)throw new Error('"version" cannot be null or undefined');if(f<1||f>40)throw new Error('"version" should be in range from 1 to 40');return 4*f+17},J.getSymbolTotalCodewords=function(f){return t[f]},J.getBCHDigit=function(e){let f=0;for(;0!==e;)f++,e>>>=1;return f},J.setToSJISFunction=function(f){if("function"!=typeof f)throw new Error('"toSJISFunc" is not a valid function.');p=f},J.isKanjiModeEnabled=function(){return typeof p<"u"},J.toSJIS=function(f){return p(f)}},4406:(ke,J)=>{J.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},2088:(ke,J,p)=>{const t=p(4792),e=p(4655),f=p(2259),C=p(4016),a=p(4406),d=t.getBCHDigit(7973);function h(L,T){return C.getCharCountIndicator(L,T)+4}function I(L,T){let N=0;return L.forEach(function(w){N+=h(w.mode,T)+w.getBitsLength()}),N}J.from=function(T,N){return a.isValid(T)?parseInt(T,10):N},J.getCapacity=function(T,N,w){if(!a.isValid(T))throw new Error("Invalid QR Code version");typeof w>"u"&&(w=C.BYTE);const Q=8*(t.getSymbolTotalCodewords(T)-e.getTotalCodewordsCount(T,N));if(w===C.MIXED)return Q;const re=Q-h(w,T);switch(w){case C.NUMERIC:return Math.floor(re/10*3);case C.ALPHANUMERIC:return Math.floor(re/11*2);case C.KANJI:return Math.floor(re/13);default:return Math.floor(re/8)}},J.getBestVersionForData=function(T,N){let w;const G=f.from(N,f.M);if(Array.isArray(T)){if(T.length>1)return function E(L,T){for(let N=1;N<=40;N++)if(I(L,N)<=J.getCapacity(N,T,C.MIXED))return N}(T,G);if(0===T.length)return 1;w=T[0]}else w=T;return function R(L,T,N){for(let w=1;w<=40;w++)if(T<=J.getCapacity(w,N,L))return w}(w.mode,w.getLength(),G)},J.getEncodedBits=function(T){if(!a.isValid(T)||T<7)throw new Error("Invalid QR Code version");let N=T<<12;for(;t.getBCHDigit(N)-d>=0;)N^=7973<<t.getBCHDigit(N)-d;return T<<12|N}},3210:(ke,J,p)=>{const t=p(6355);J.render=function(a,M,d){let R=d,h=M;typeof R>"u"&&(!M||!M.getContext)&&(R=M,M=void 0),M||(h=function f(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),R=t.getOptions(R);const I=t.getImageWidth(a.modules.size,R),E=h.getContext("2d"),L=E.createImageData(I,I);return t.qrToImageData(L.data,a,R),function e(C,a,M){C.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=M,a.width=M,a.style.height=M+"px",a.style.width=M+"px"}(E,h,I),E.putImageData(L,0,0),h},J.renderToDataURL=function(a,M,d){let R=d;return typeof R>"u"&&(!M||!M.getContext)&&(R=M,M=void 0),R||(R={}),J.render(a,M,R).toDataURL(R.type||"image/png",(R.rendererOpts||{}).quality)}},2334:(ke,J,p)=>{const t=p(6355);function e(a,M){const d=a.a/255,R=M+'="'+a.hex+'"';return d<1?R+" "+M+'-opacity="'+d.toFixed(2).slice(1)+'"':R}function f(a,M,d){let R=a+M;return typeof d<"u"&&(R+=" "+d),R}J.render=function(M,d,R){const h=t.getOptions(d),I=M.modules.size,E=M.modules.data,L=I+2*h.margin,T=h.color.light.a?"<path "+e(h.color.light,"fill")+' d="M0 0h'+L+"v"+L+'H0z"/>':"",N="<path "+e(h.color.dark,"stroke")+' d="'+function C(a,M,d){let R="",h=0,I=!1,E=0;for(let L=0;L<a.length;L++){const T=Math.floor(L%M),N=Math.floor(L/M);!T&&!I&&(I=!0),a[L]?(E++,L>0&&T>0&&a[L-1]||(R+=I?f("M",T+d,.5+N+d):f("m",h,0),h=0,I=!1),T+1<M&&a[L+1]||(R+=f("h",E),E=0)):h++}return R}(E,I,h.margin)+'"/>',K='<svg xmlns="http://www.w3.org/2000/svg" '+(h.width?'width="'+h.width+'" height="'+h.width+'" ':"")+'viewBox="0 0 '+L+" "+L+'" shape-rendering="crispEdges">'+T+N+"</svg>\n";return"function"==typeof R&&R(null,K),K}},6355:(ke,J)=>{function p(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);(3===e.length||4===e.length)&&(e=Array.prototype.concat.apply([],e.map(function(C){return[C,C]}))),6===e.length&&e.push("F","F");const f=parseInt(e.join(""),16);return{r:f>>24&255,g:f>>16&255,b:f>>8&255,a:255&f,hex:"#"+e.slice(0,6).join("")}}J.getOptions=function(e){e||(e={}),e.color||(e.color={});const C=e.width&&e.width>=21?e.width:void 0;return{width:C,scale:C?4:e.scale||4,margin:typeof e.margin>"u"||null===e.margin||e.margin<0?4:e.margin,color:{dark:p(e.color.dark||"#000000ff"),light:p(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},J.getScale=function(e,f){return f.width&&f.width>=e+2*f.margin?f.width/(e+2*f.margin):f.scale},J.getImageWidth=function(e,f){const C=J.getScale(e,f);return Math.floor((e+2*f.margin)*C)},J.qrToImageData=function(e,f,C){const a=f.modules.size,M=f.modules.data,d=J.getScale(a,C),R=Math.floor((a+2*C.margin)*d),h=C.margin*d,I=[C.color.light,C.color.dark];for(let E=0;E<R;E++)for(let L=0;L<R;L++){let T=4*(E*R+L),N=C.color.light;E>=h&&L>=h&&E<R-h&&L<R-h&&(N=I[M[Math.floor((E-h)/d)*a+Math.floor((L-h)/d)]?1:0]),e[T++]=N.r,e[T++]=N.g,e[T++]=N.b,e[T]=N.a}}},3753:(ke,J,p)=>{"use strict";var t=65536,C=p(3502).Buffer,a=global.crypto||global.msCrypto;ke.exports=a&&a.getRandomValues?function M(d,R){if(d>4294967295)throw new RangeError("requested too many random bytes");var h=C.allocUnsafe(d);if(d>0)if(d>t)for(var I=0;I<d;I+=t)a.getRandomValues(h.slice(I,I+t));else a.getRandomValues(h);return"function"==typeof R?process.nextTick(function(){R(null,h)}):h}:function f(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},4275:(ke,J,p)=>{"use strict";function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=p(3502),f=p(3753),C=e.Buffer,a=e.kMaxLength,M=global.crypto||global.msCrypto,d=Math.pow(2,32)-1;function R(T,N){if("number"!=typeof T||T!=T)throw new TypeError("offset must be a number");if(T>d||T<0)throw new TypeError("offset must be a uint32");if(T>a||T>N)throw new RangeError("offset out of range")}function h(T,N,w){if("number"!=typeof T||T!=T)throw new TypeError("size must be a number");if(T>d||T<0)throw new TypeError("size must be a uint32");if(T+N>w||T>a)throw new RangeError("buffer too small")}function E(T,N,w,G){if(process.browser){var Q=new Uint8Array(T.buffer,N,w);return M.getRandomValues(Q),G?void process.nextTick(function(){G(null,T)}):T}if(!G)return f(w).copy(T,N),T;f(w,function(ie,ce){if(ie)return G(ie);ce.copy(T,N),G(null,T)})}M&&M.getRandomValues||!process.browser?(J.randomFill=function I(T,N,w,G){if(!(C.isBuffer(T)||T instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof N)G=N,N=0,w=T.length;else if("function"==typeof w)G=w,w=T.length-N;else if("function"!=typeof G)throw new TypeError('"cb" argument must be a function');return R(N,T.length),h(w,N,T.length),E(T,N,w,G)},J.randomFillSync=function L(T,N,w){if(typeof N>"u"&&(N=0),!(C.isBuffer(T)||T instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return R(N,T.length),void 0===w&&(w=T.length-N),h(w,N,T.length),E(T,N,w)}):(J.randomFill=t,J.randomFillSync=t)},891:ke=>{"use strict";var p={};function t(M,d,R){R||(R=Error);var I=function(E){function L(T,N,w){return E.call(this,function h(E,L,T){return"string"==typeof d?d:d(E,L,T)}(T,N,w))||this}return function J(M,d){M.prototype=Object.create(d.prototype),M.prototype.constructor=M,M.__proto__=d}(L,E),L}(R);I.prototype.name=R.name,I.prototype.code=M,p[M]=I}function e(M,d){if(Array.isArray(M)){var R=M.length;return M=M.map(function(h){return String(h)}),R>2?"one of ".concat(d," ").concat(M.slice(0,R-1).join(", "),", or ")+M[R-1]:2===R?"one of ".concat(d," ").concat(M[0]," or ").concat(M[1]):"of ".concat(d," ").concat(M[0])}return"of ".concat(d," ").concat(String(M))}t("ERR_INVALID_OPT_VALUE",function(M,d){return'The value "'+d+'" is invalid for option "'+M+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(M,d,R){var h,I;if("string"==typeof d&&function f(M,d,R){return M.substr(!R||R<0?0:+R,d.length)===d}(d,"not ")?(h="must not be",d=d.replace(/^not /,"")):h="must be",function C(M,d,R){return(void 0===R||R>M.length)&&(R=M.length),M.substring(R-d.length,R)===d}(M," argument"))I="The ".concat(M," ").concat(h," ").concat(e(d,"type"));else{var E=function a(M,d,R){return"number"!=typeof R&&(R=0),!(R+d.length>M.length)&&-1!==M.indexOf(d,R)}(M,".")?"property":"argument";I='The "'.concat(M,'" ').concat(E," ").concat(h," ").concat(e(d,"type"))}return I+". Received type ".concat(typeof R)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(M){return"The "+M+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(M){return"Cannot call "+M+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(M){return"Unknown encoding: "+M},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ke.exports.q=p},1339:(ke,J,p)=>{"use strict";var t=Object.keys||function(I){var E=[];for(var L in I)E.push(L);return E};ke.exports=d;var e=p(3154),f=p(520);p(3894)(d,e);for(var C=t(f.prototype),a=0;a<C.length;a++){var M=C[a];d.prototype[M]||(d.prototype[M]=f.prototype[M])}function d(I){if(!(this instanceof d))return new d(I);e.call(this,I),f.call(this,I),this.allowHalfOpen=!0,I&&(!1===I.readable&&(this.readable=!1),!1===I.writable&&(this.writable=!1),!1===I.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",R)))}function R(){this._writableState.ended||process.nextTick(h,this)}function h(I){I.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(d.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(E){void 0===this._readableState||void 0===this._writableState||(this._readableState.destroyed=E,this._writableState.destroyed=E)}})},6071:(ke,J,p)=>{"use strict";ke.exports=e;var t=p(6025);function e(f){if(!(this instanceof e))return new e(f);t.call(this,f)}p(3894)(e,t),e.prototype._transform=function(f,C,a){a(null,f)}},3154:(ke,J,p)=>{"use strict";var t;ke.exports=S,S.ReadableState=pe,p(9069);var I,f=function(Ge,ut){return Ge.listeners(ut).length},C=p(4970),a=p(3172).Buffer,M=global.Uint8Array||function(){},h=p(4616);I=h&&h.debuglog?h.debuglog("stream"):function(){};var ie,ce,ae,E=p(5019),L=p(1920),N=p(7102).getHighWaterMark,w=p(891).q,G=w.ERR_INVALID_ARG_TYPE,K=w.ERR_STREAM_PUSH_AFTER_EOF,Q=w.ERR_METHOD_NOT_IMPLEMENTED,re=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;p(3894)(S,C);var ne=L.errorOrDestroy,le=["error","close","destroy","pause","resume"];function pe($,Ge,ut){t=t||p(1339),"boolean"!=typeof ut&&(ut=Ge instanceof t),this.objectMode=!!($=$||{}).objectMode,ut&&(this.objectMode=this.objectMode||!!$.readableObjectMode),this.highWaterMark=N(this,$,"readableHighWaterMark",ut),this.buffer=new E,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==$.emitClose,this.autoDestroy=!!$.autoDestroy,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding&&(ie||(ie=p(3054).s),this.decoder=new ie($.encoding),this.encoding=$.encoding)}function S($){if(t=t||p(1339),!(this instanceof S))return new S($);this._readableState=new pe($,this,this instanceof t),this.readable=!0,$&&("function"==typeof $.read&&(this._read=$.read),"function"==typeof $.destroy&&(this._destroy=$.destroy)),C.call(this)}function i($,Ge,ut,Ee,ye){I("readableAddChunk",Ge);var de,he=$._readableState;if(null===Ge)he.reading=!1,function k($,Ge){if(I("onEofChunk"),!Ge.ended){if(Ge.decoder){var ut=Ge.decoder.end();ut&&ut.length&&(Ge.buffer.push(ut),Ge.length+=Ge.objectMode?1:ut.length)}Ge.ended=!0,Ge.sync?b($):(Ge.needReadable=!1,Ge.emittedReadable||(Ge.emittedReadable=!0,n($)))}}($,he);else if(ye||(de=function u($,Ge){var ut;return!function R($){return a.isBuffer($)||$ instanceof M}(Ge)&&"string"!=typeof Ge&&void 0!==Ge&&!$.objectMode&&(ut=new G("chunk",["string","Buffer","Uint8Array"],Ge)),ut}(he,Ge)),de)ne($,de);else if(he.objectMode||Ge&&Ge.length>0)if("string"!=typeof Ge&&!he.objectMode&&Object.getPrototypeOf(Ge)!==a.prototype&&(Ge=function d($){return a.from($)}(Ge)),Ee)he.endEmitted?ne($,new re):r($,he,Ge,!0);else if(he.ended)ne($,new K);else{if(he.destroyed)return!1;he.reading=!1,he.decoder&&!ut?(Ge=he.decoder.write(Ge),he.objectMode||0!==Ge.length?r($,he,Ge,!1):_($,he)):r($,he,Ge,!1)}else Ee||(he.reading=!1,_($,he));return!he.ended&&(he.length<he.highWaterMark||0===he.length)}function r($,Ge,ut,Ee){Ge.flowing&&0===Ge.length&&!Ge.sync?(Ge.awaitDrain=0,$.emit("data",ut)):(Ge.length+=Ge.objectMode?1:ut.length,Ee?Ge.buffer.unshift(ut):Ge.buffer.push(ut),Ge.needReadable&&b($)),_($,Ge)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(Ge){!this._readableState||(this._readableState.destroyed=Ge)}}),S.prototype.destroy=L.destroy,S.prototype._undestroy=L.undestroy,S.prototype._destroy=function($,Ge){Ge($)},S.prototype.push=function($,Ge){var Ee,ut=this._readableState;return ut.objectMode?Ee=!0:"string"==typeof $&&((Ge=Ge||ut.defaultEncoding)!==ut.encoding&&($=a.from($,Ge),Ge=""),Ee=!0),i(this,$,Ge,!1,Ee)},S.prototype.unshift=function($){return i(this,$,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function($){ie||(ie=p(3054).s);var Ge=new ie($);this._readableState.decoder=Ge,this._readableState.encoding=this._readableState.decoder.encoding;for(var ut=this._readableState.buffer.head,Ee="";null!==ut;)Ee+=Ge.write(ut.data),ut=ut.next;return this._readableState.buffer.clear(),""!==Ee&&this._readableState.buffer.push(Ee),this._readableState.length=Ee.length,this};var l=1073741824;function D($,Ge){return $<=0||0===Ge.length&&Ge.ended?0:Ge.objectMode?1:$!=$?Ge.flowing&&Ge.length?Ge.buffer.head.data.length:Ge.length:($>Ge.highWaterMark&&(Ge.highWaterMark=function y($){return $>=l?$=l:($--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++),$}($)),$<=Ge.length?$:Ge.ended?Ge.length:(Ge.needReadable=!0,0))}function b($){var Ge=$._readableState;I("emitReadable",Ge.needReadable,Ge.emittedReadable),Ge.needReadable=!1,Ge.emittedReadable||(I("emitReadable",Ge.flowing),Ge.emittedReadable=!0,process.nextTick(n,$))}function n($){var Ge=$._readableState;I("emitReadable_",Ge.destroyed,Ge.length,Ge.ended),!Ge.destroyed&&(Ge.length||Ge.ended)&&($.emit("readable"),Ge.emittedReadable=!1),Ge.needReadable=!Ge.flowing&&!Ge.ended&&Ge.length<=Ge.highWaterMark,Oe($)}function _($,Ge){Ge.readingMore||(Ge.readingMore=!0,process.nextTick(W,$,Ge))}function W($,Ge){for(;!Ge.reading&&!Ge.ended&&(Ge.length<Ge.highWaterMark||Ge.flowing&&0===Ge.length);){var ut=Ge.length;if(I("maybeReadMore read 0"),$.read(0),ut===Ge.length)break}Ge.readingMore=!1}function U($){var Ge=$._readableState;Ge.readableListening=$.listenerCount("readable")>0,Ge.resumeScheduled&&!Ge.paused?Ge.flowing=!0:$.listenerCount("data")>0&&$.resume()}function me($){I("readable nexttick read 0"),$.read(0)}function Pe($,Ge){I("resume",Ge.reading),Ge.reading||$.read(0),Ge.resumeScheduled=!1,$.emit("resume"),Oe($),Ge.flowing&&!Ge.reading&&$.read(0)}function Oe($){var Ge=$._readableState;for(I("flow",Ge.flowing);Ge.flowing&&null!==$.read(););}function De($,Ge){return 0===Ge.length?null:(Ge.objectMode?ut=Ge.buffer.shift():!$||$>=Ge.length?(ut=Ge.decoder?Ge.buffer.join(""):1===Ge.buffer.length?Ge.buffer.first():Ge.buffer.concat(Ge.length),Ge.buffer.clear()):ut=Ge.buffer.consume($,Ge.decoder),ut);var ut}function ue($){var Ge=$._readableState;I("endReadable",Ge.endEmitted),Ge.endEmitted||(Ge.ended=!0,process.nextTick(ve,Ge,$))}function ve($,Ge){if(I("endReadableNT",$.endEmitted,$.length),!$.endEmitted&&0===$.length&&($.endEmitted=!0,Ge.readable=!1,Ge.emit("end"),$.autoDestroy)){var ut=Ge._writableState;(!ut||ut.autoDestroy&&ut.finished)&&Ge.destroy()}}function Ie($,Ge){for(var ut=0,Ee=$.length;ut<Ee;ut++)if($[ut]===Ge)return ut;return-1}S.prototype.read=function($){I("read",$),$=parseInt($,10);var Ge=this._readableState,ut=$;if(0!==$&&(Ge.emittedReadable=!1),0===$&&Ge.needReadable&&((0!==Ge.highWaterMark?Ge.length>=Ge.highWaterMark:Ge.length>0)||Ge.ended))return I("read: emitReadable",Ge.length,Ge.ended),0===Ge.length&&Ge.ended?ue(this):b(this),null;if(0===($=D($,Ge))&&Ge.ended)return 0===Ge.length&&ue(this),null;var ye,Ee=Ge.needReadable;return I("need readable",Ee),(0===Ge.length||Ge.length-$<Ge.highWaterMark)&&I("length less than watermark",Ee=!0),Ge.ended||Ge.reading?I("reading or ended",Ee=!1):Ee&&(I("do read"),Ge.reading=!0,Ge.sync=!0,0===Ge.length&&(Ge.needReadable=!0),this._read(Ge.highWaterMark),Ge.sync=!1,Ge.reading||($=D(ut,Ge))),null===(ye=$>0?De($,Ge):null)?(Ge.needReadable=Ge.length<=Ge.highWaterMark,$=0):(Ge.length-=$,Ge.awaitDrain=0),0===Ge.length&&(Ge.ended||(Ge.needReadable=!0),ut!==$&&Ge.ended&&ue(this)),null!==ye&&this.emit("data",ye),ye},S.prototype._read=function($){ne(this,new Q("_read()"))},S.prototype.pipe=function($,Ge){var ut=this,Ee=this._readableState;switch(Ee.pipesCount){case 0:Ee.pipes=$;break;case 1:Ee.pipes=[Ee.pipes,$];break;default:Ee.pipes.push($)}Ee.pipesCount+=1,I("pipe count=%d opts=%j",Ee.pipesCount,Ge);var he=Ge&&!1===Ge.end||$===process.stdout||$===process.stderr?gt:we;function we(){I("onend"),$.end()}Ee.endEmitted?process.nextTick(he):ut.once("end",he),$.on("unpipe",function de(Wt,Rt){I("onunpipe"),Wt===ut&&Rt&&!1===Rt.hasUnpiped&&(Rt.hasUnpiped=!0,function Ce(){I("cleanup"),$.removeListener("close",Ye),$.removeListener("finish",Le),$.removeListener("drain",Y),$.removeListener("error",X),$.removeListener("unpipe",de),ut.removeListener("end",we),ut.removeListener("end",gt),ut.removeListener("data",Se),j=!0,Ee.awaitDrain&&(!$._writableState||$._writableState.needDrain)&&Y()}())});var Y=function P($){return function(){var ut=$._readableState;I("pipeOnDrain",ut.awaitDrain),ut.awaitDrain&&ut.awaitDrain--,0===ut.awaitDrain&&f($,"data")&&(ut.flowing=!0,Oe($))}}(ut);$.on("drain",Y);var j=!1;function Se(Wt){I("ondata");var Rt=$.write(Wt);I("dest.write",Rt),!1===Rt&&((1===Ee.pipesCount&&Ee.pipes===$||Ee.pipesCount>1&&-1!==Ie(Ee.pipes,$))&&!j&&(I("false write response, pause",Ee.awaitDrain),Ee.awaitDrain++),ut.pause())}function X(Wt){I("onerror",Wt),gt(),$.removeListener("error",X),0===f($,"error")&&ne($,Wt)}function Ye(){$.removeListener("finish",Le),gt()}function Le(){I("onfinish"),$.removeListener("close",Ye),gt()}function gt(){I("unpipe"),ut.unpipe($)}return ut.on("data",Se),function ee($,Ge,ut){if("function"==typeof $.prependListener)return $.prependListener(Ge,ut);$._events&&$._events[Ge]?Array.isArray($._events[Ge])?$._events[Ge].unshift(ut):$._events[Ge]=[ut,$._events[Ge]]:$.on(Ge,ut)}($,"error",X),$.once("close",Ye),$.once("finish",Le),$.emit("pipe",ut),Ee.flowing||(I("pipe resume"),ut.resume()),$},S.prototype.unpipe=function($){var Ge=this._readableState,ut={hasUnpiped:!1};if(0===Ge.pipesCount)return this;if(1===Ge.pipesCount)return $&&$!==Ge.pipes||($||($=Ge.pipes),Ge.pipes=null,Ge.pipesCount=0,Ge.flowing=!1,$&&$.emit("unpipe",this,ut)),this;if(!$){var Ee=Ge.pipes,ye=Ge.pipesCount;Ge.pipes=null,Ge.pipesCount=0,Ge.flowing=!1;for(var he=0;he<ye;he++)Ee[he].emit("unpipe",this,{hasUnpiped:!1});return this}var de=Ie(Ge.pipes,$);return-1===de||(Ge.pipes.splice(de,1),Ge.pipesCount-=1,1===Ge.pipesCount&&(Ge.pipes=Ge.pipes[0]),$.emit("unpipe",this,ut)),this},S.prototype.addListener=S.prototype.on=function($,Ge){var ut=C.prototype.on.call(this,$,Ge),Ee=this._readableState;return"data"===$?(Ee.readableListening=this.listenerCount("readable")>0,!1!==Ee.flowing&&this.resume()):"readable"===$&&!Ee.endEmitted&&!Ee.readableListening&&(Ee.readableListening=Ee.needReadable=!0,Ee.flowing=!1,Ee.emittedReadable=!1,I("on readable",Ee.length,Ee.reading),Ee.length?b(this):Ee.reading||process.nextTick(me,this)),ut},S.prototype.removeListener=function($,Ge){var ut=C.prototype.removeListener.call(this,$,Ge);return"readable"===$&&process.nextTick(U,this),ut},S.prototype.removeAllListeners=function($){var Ge=C.prototype.removeAllListeners.apply(this,arguments);return("readable"===$||void 0===$)&&process.nextTick(U,this),Ge},S.prototype.resume=function(){var $=this._readableState;return $.flowing||(I("resume"),$.flowing=!$.readableListening,function nt($,Ge){Ge.resumeScheduled||(Ge.resumeScheduled=!0,process.nextTick(Pe,$,Ge))}(this,$)),$.paused=!1,this},S.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function($){var Ge=this,ut=this._readableState,Ee=!1;for(var ye in $.on("end",function(){if(I("wrapped end"),ut.decoder&&!ut.ended){var de=ut.decoder.end();de&&de.length&&Ge.push(de)}Ge.push(null)}),$.on("data",function(de){I("wrapped data"),ut.decoder&&(de=ut.decoder.write(de)),ut.objectMode&&null==de||!(ut.objectMode||de&&de.length)||Ge.push(de)||(Ee=!0,$.pause())}),$)void 0===this[ye]&&"function"==typeof $[ye]&&(this[ye]=function(we){return function(){return $[we].apply($,arguments)}}(ye));for(var he=0;he<le.length;he++)$.on(le[he],this.emit.bind(this,le[he]));return this._read=function(de){I("wrapped _read",de),Ee&&(Ee=!1,$.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===ce&&(ce=p(3872)),ce(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ge){this._readableState&&(this._readableState.flowing=Ge)}}),S._fromList=De,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function($,Ge){return void 0===ae&&(ae=p(7412)),ae(S,$,Ge)})},6025:(ke,J,p)=>{"use strict";ke.exports=R;var t=p(891).q,e=t.ERR_METHOD_NOT_IMPLEMENTED,f=t.ERR_MULTIPLE_CALLBACK,C=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=t.ERR_TRANSFORM_WITH_LENGTH_0,M=p(1339);function d(E,L){var T=this._transformState;T.transforming=!1;var N=T.writecb;if(null===N)return this.emit("error",new f);T.writechunk=null,T.writecb=null,null!=L&&this.push(L),N(E);var w=this._readableState;w.reading=!1,(w.needReadable||w.length<w.highWaterMark)&&this._read(w.highWaterMark)}function R(E){if(!(this instanceof R))return new R(E);M.call(this,E),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,E&&("function"==typeof E.transform&&(this._transform=E.transform),"function"==typeof E.flush&&(this._flush=E.flush)),this.on("prefinish",h)}function h(){var E=this;"function"!=typeof this._flush||this._readableState.destroyed?I(this,null,null):this._flush(function(L,T){I(E,L,T)})}function I(E,L,T){if(L)return E.emit("error",L);if(null!=T&&E.push(T),E._writableState.length)throw new a;if(E._transformState.transforming)throw new C;return E.push(null)}p(3894)(R,M),R.prototype.push=function(E,L){return this._transformState.needTransform=!1,M.prototype.push.call(this,E,L)},R.prototype._transform=function(E,L,T){T(new e("_transform()"))},R.prototype._write=function(E,L,T){var N=this._transformState;if(N.writecb=T,N.writechunk=E,N.writeencoding=L,!N.transforming){var w=this._readableState;(N.needTransform||w.needReadable||w.length<w.highWaterMark)&&this._read(w.highWaterMark)}},R.prototype._read=function(E){var L=this._transformState;null===L.writechunk||L.transforming?L.needTransform=!0:(L.transforming=!0,this._transform(L.writechunk,L.writeencoding,L.afterTransform))},R.prototype._destroy=function(E,L){M.prototype._destroy.call(this,E,function(T){L(T)})}},520:(ke,J,p)=>{"use strict";function e(Oe){var De=this;this.next=null,this.entry=null,this.finish=function(){!function Pe(Oe,De,ue){var ve=Oe.entry;for(Oe.entry=null;ve;){var Ie=ve.callback;De.pendingcb--,Ie(ue),ve=ve.next}De.corkedRequestsFree.next=Oe}(De,Oe)}}var f;ke.exports=pe,pe.WritableState=le;var ee,C={deprecate:p(4364)},a=p(4970),M=p(3172).Buffer,d=global.Uint8Array||function(){},I=p(1920),L=p(7102).getHighWaterMark,T=p(891).q,N=T.ERR_INVALID_ARG_TYPE,w=T.ERR_METHOD_NOT_IMPLEMENTED,G=T.ERR_MULTIPLE_CALLBACK,K=T.ERR_STREAM_CANNOT_PIPE,Q=T.ERR_STREAM_DESTROYED,re=T.ERR_STREAM_NULL_VALUES,ie=T.ERR_STREAM_WRITE_AFTER_END,ce=T.ERR_UNKNOWN_ENCODING,ae=I.errorOrDestroy;function ne(){}function le(Oe,De,ue){f=f||p(1339),"boolean"!=typeof ue&&(ue=De instanceof f),this.objectMode=!!(Oe=Oe||{}).objectMode,ue&&(this.objectMode=this.objectMode||!!Oe.writableObjectMode),this.highWaterMark=L(this,Oe,"writableHighWaterMark",ue),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===Oe.decodeStrings),this.defaultEncoding=Oe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ie){!function k(Oe,De){var ue=Oe._writableState,ve=ue.sync,Ie=ue.writecb;if("function"!=typeof Ie)throw new G;if(function D(Oe){Oe.writing=!1,Oe.writecb=null,Oe.length-=Oe.writelen,Oe.writelen=0}(ue),De)!function y(Oe,De,ue,ve,Ie){--De.pendingcb,ue?(process.nextTick(Ie,ve),process.nextTick(me,Oe,De),Oe._writableState.errorEmitted=!0,ae(Oe,ve)):(Ie(ve),Oe._writableState.errorEmitted=!0,ae(Oe,ve),me(Oe,De))}(Oe,ue,ve,De,Ie);else{var $=W(ue)||Oe.destroyed;!$&&!ue.corked&&!ue.bufferProcessing&&ue.bufferedRequest&&_(Oe,ue),ve?process.nextTick(b,Oe,ue,$,Ie):b(Oe,ue,$,Ie)}}(De,Ie)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==Oe.emitClose,this.autoDestroy=!!Oe.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function pe(Oe){var De=this instanceof(f=f||p(1339));if(!De&&!ee.call(pe,this))return new pe(Oe);this._writableState=new le(Oe,this,De),this.writable=!0,Oe&&("function"==typeof Oe.write&&(this._write=Oe.write),"function"==typeof Oe.writev&&(this._writev=Oe.writev),"function"==typeof Oe.destroy&&(this._destroy=Oe.destroy),"function"==typeof Oe.final&&(this._final=Oe.final)),a.call(this)}function l(Oe,De,ue,ve,Ie,$,Ge){De.writelen=ve,De.writecb=Ge,De.writing=!0,De.sync=!0,De.destroyed?De.onwrite(new Q("write")):ue?Oe._writev(Ie,De.onwrite):Oe._write(Ie,$,De.onwrite),De.sync=!1}function b(Oe,De,ue,ve){ue||function n(Oe,De){0===De.length&&De.needDrain&&(De.needDrain=!1,Oe.emit("drain"))}(Oe,De),De.pendingcb--,ve(),me(Oe,De)}function _(Oe,De){De.bufferProcessing=!0;var ue=De.bufferedRequest;if(Oe._writev&&ue&&ue.next){var Ie=new Array(De.bufferedRequestCount),$=De.corkedRequestsFree;$.entry=ue;for(var Ge=0,ut=!0;ue;)Ie[Ge]=ue,ue.isBuf||(ut=!1),ue=ue.next,Ge+=1;Ie.allBuffers=ut,l(Oe,De,!0,De.length,Ie,"",$.finish),De.pendingcb++,De.lastBufferedRequest=null,$.next?(De.corkedRequestsFree=$.next,$.next=null):De.corkedRequestsFree=new e(De),De.bufferedRequestCount=0}else{for(;ue;){var Ee=ue.chunk;if(l(Oe,De,!1,De.objectMode?1:Ee.length,Ee,ue.encoding,ue.callback),ue=ue.next,De.bufferedRequestCount--,De.writing)break}null===ue&&(De.lastBufferedRequest=null)}De.bufferedRequest=ue,De.bufferProcessing=!1}function W(Oe){return Oe.ending&&0===Oe.length&&null===Oe.bufferedRequest&&!Oe.finished&&!Oe.writing}function P(Oe,De){Oe._final(function(ue){De.pendingcb--,ue&&ae(Oe,ue),De.prefinished=!0,Oe.emit("prefinish"),me(Oe,De)})}function me(Oe,De){var ue=W(De);if(ue&&(function U(Oe,De){!De.prefinished&&!De.finalCalled&&("function"!=typeof Oe._final||De.destroyed?(De.prefinished=!0,Oe.emit("prefinish")):(De.pendingcb++,De.finalCalled=!0,process.nextTick(P,Oe,De)))}(Oe,De),0===De.pendingcb&&(De.finished=!0,Oe.emit("finish"),De.autoDestroy))){var ve=Oe._readableState;(!ve||ve.autoDestroy&&ve.endEmitted)&&Oe.destroy()}return ue}p(3894)(pe,a),le.prototype.getBuffer=function(){for(var De=this.bufferedRequest,ue=[];De;)ue.push(De),De=De.next;return ue},function(){try{Object.defineProperty(le.prototype,"buffer",{get:C.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]?(ee=Function.prototype[Symbol.hasInstance],Object.defineProperty(pe,Symbol.hasInstance,{value:function(De){return!!ee.call(this,De)||this===pe&&De&&De._writableState instanceof le}})):ee=function(De){return De instanceof this},pe.prototype.pipe=function(){ae(this,new K)},pe.prototype.write=function(Oe,De,ue){var ve=this._writableState,Ie=!1,$=!ve.objectMode&&function h(Oe){return M.isBuffer(Oe)||Oe instanceof d}(Oe);return $&&!M.isBuffer(Oe)&&(Oe=function R(Oe){return M.from(Oe)}(Oe)),"function"==typeof De&&(ue=De,De=null),$?De="buffer":De||(De=ve.defaultEncoding),"function"!=typeof ue&&(ue=ne),ve.ending?function S(Oe,De){var ue=new ie;ae(Oe,ue),process.nextTick(De,ue)}(this,ue):($||function i(Oe,De,ue,ve){var Ie;return null===ue?Ie=new re:"string"!=typeof ue&&!De.objectMode&&(Ie=new N("chunk",["string","Buffer"],ue)),!Ie||(ae(Oe,Ie),process.nextTick(ve,Ie),!1)}(this,ve,Oe,ue))&&(ve.pendingcb++,Ie=function u(Oe,De,ue,ve,Ie,$){if(!ue){var Ge=function r(Oe,De,ue){return!Oe.objectMode&&!1!==Oe.decodeStrings&&"string"==typeof De&&(De=M.from(De,ue)),De}(De,ve,Ie);ve!==Ge&&(ue=!0,Ie="buffer",ve=Ge)}var ut=De.objectMode?1:ve.length;De.length+=ut;var Ee=De.length<De.highWaterMark;if(Ee||(De.needDrain=!0),De.writing||De.corked){var ye=De.lastBufferedRequest;De.lastBufferedRequest={chunk:ve,encoding:Ie,isBuf:ue,callback:$,next:null},ye?ye.next=De.lastBufferedRequest:De.bufferedRequest=De.lastBufferedRequest,De.bufferedRequestCount+=1}else l(Oe,De,!1,ut,ve,Ie,$);return Ee}(this,ve,$,Oe,De,ue)),Ie},pe.prototype.cork=function(){this._writableState.corked++},pe.prototype.uncork=function(){var Oe=this._writableState;Oe.corked&&(Oe.corked--,!Oe.writing&&!Oe.corked&&!Oe.bufferProcessing&&Oe.bufferedRequest&&_(this,Oe))},pe.prototype.setDefaultEncoding=function(De){if("string"==typeof De&&(De=De.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((De+"").toLowerCase())>-1))throw new ce(De);return this._writableState.defaultEncoding=De,this},Object.defineProperty(pe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(pe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),pe.prototype._write=function(Oe,De,ue){ue(new w("_write()"))},pe.prototype._writev=null,pe.prototype.end=function(Oe,De,ue){var ve=this._writableState;return"function"==typeof Oe?(ue=Oe,Oe=null,De=null):"function"==typeof De&&(ue=De,De=null),null!=Oe&&this.write(Oe,De),ve.corked&&(ve.corked=1,this.uncork()),ve.ending||function nt(Oe,De,ue){De.ending=!0,me(Oe,De),ue&&(De.finished?process.nextTick(ue):Oe.once("finish",ue)),De.ended=!0,Oe.writable=!1}(this,ve,ue),this},Object.defineProperty(pe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(pe.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(De){!this._writableState||(this._writableState.destroyed=De)}}),pe.prototype.destroy=I.destroy,pe.prototype._undestroy=I.undestroy,pe.prototype._destroy=function(Oe,De){De(Oe)}},3872:(ke,J,p)=>{"use strict";var t;function e(Q,re,ie){return re in Q?Object.defineProperty(Q,re,{value:ie,enumerable:!0,configurable:!0,writable:!0}):Q[re]=ie,Q}var f=p(7542),C=Symbol("lastResolve"),a=Symbol("lastReject"),M=Symbol("error"),d=Symbol("ended"),R=Symbol("lastPromise"),h=Symbol("handlePromise"),I=Symbol("stream");function E(Q,re){return{value:Q,done:re}}function L(Q){var re=Q[C];if(null!==re){var ie=Q[I].read();null!==ie&&(Q[R]=null,Q[C]=null,Q[a]=null,re(E(ie,!1)))}}function T(Q){process.nextTick(L,Q)}var w=Object.getPrototypeOf(function(){}),G=Object.setPrototypeOf((e(t={get stream(){return this[I]},next:function(){var re=this,ie=this[M];if(null!==ie)return Promise.reject(ie);if(this[d])return Promise.resolve(E(void 0,!0));if(this[I].destroyed)return new Promise(function(le,ee){process.nextTick(function(){re[M]?ee(re[M]):le(E(void 0,!0))})});var ae,ce=this[R];if(ce)ae=new Promise(function N(Q,re){return function(ie,ce){Q.then(function(){re[d]?ie(E(void 0,!0)):re[h](ie,ce)},ce)}}(ce,this));else{var ne=this[I].read();if(null!==ne)return Promise.resolve(E(ne,!1));ae=new Promise(this[h])}return this[R]=ae,ae}},Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var re=this;return new Promise(function(ie,ce){re[I].destroy(null,function(ae){ae?ce(ae):ie(E(void 0,!0))})})}),t),w);ke.exports=function(re){var ie,ce=Object.create(G,(e(ie={},I,{value:re,writable:!0}),e(ie,C,{value:null,writable:!0}),e(ie,a,{value:null,writable:!0}),e(ie,M,{value:null,writable:!0}),e(ie,d,{value:re._readableState.endEmitted,writable:!0}),e(ie,h,{value:function(ne,le){var ee=ce[I].read();ee?(ce[R]=null,ce[C]=null,ce[a]=null,ne(E(ee,!1))):(ce[C]=ne,ce[a]=le)},writable:!0}),ie));return ce[R]=null,f(re,function(ae){if(ae&&"ERR_STREAM_PREMATURE_CLOSE"!==ae.code){var ne=ce[a];return null!==ne&&(ce[R]=null,ce[C]=null,ce[a]=null,ne(ae)),void(ce[M]=ae)}var le=ce[C];null!==le&&(ce[R]=null,ce[C]=null,ce[a]=null,le(E(void 0,!0))),ce[d]=!0}),re.on("readable",T.bind(null,ce)),ce}},5019:(ke,J,p)=>{"use strict";function t(T,N){var w=Object.keys(T);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(T);N&&(G=G.filter(function(K){return Object.getOwnPropertyDescriptor(T,K).enumerable})),w.push.apply(w,G)}return w}function f(T,N,w){return N in T?Object.defineProperty(T,N,{value:w,enumerable:!0,configurable:!0,writable:!0}):T[N]=w,T}function a(T,N){for(var w=0;w<N.length;w++){var G=N[w];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(T,G.key,G)}}var R=p(3172).Buffer,I=p(2361).inspect,E=I&&I.custom||"inspect";function L(T,N,w){R.prototype.copy.call(T,N,w)}ke.exports=function(){function T(){(function C(T,N){if(!(T instanceof N))throw new TypeError("Cannot call a class as a function")})(this,T),this.head=null,this.tail=null,this.length=0}return function M(T,N,w){N&&a(T.prototype,N),w&&a(T,w)}(T,[{key:"push",value:function(w){var G={data:w,next:null};this.length>0?this.tail.next=G:this.head=G,this.tail=G,++this.length}},{key:"unshift",value:function(w){var G={data:w,next:this.head};0===this.length&&(this.tail=G),this.head=G,++this.length}},{key:"shift",value:function(){if(0!==this.length){var w=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,w}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(w){if(0===this.length)return"";for(var G=this.head,K=""+G.data;G=G.next;)K+=w+G.data;return K}},{key:"concat",value:function(w){if(0===this.length)return R.alloc(0);for(var G=R.allocUnsafe(w>>>0),K=this.head,Q=0;K;)L(K.data,G,Q),Q+=K.data.length,K=K.next;return G}},{key:"consume",value:function(w,G){var K;return w<this.head.data.length?(K=this.head.data.slice(0,w),this.head.data=this.head.data.slice(w)):K=w===this.head.data.length?this.shift():G?this._getString(w):this._getBuffer(w),K}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(w){var G=this.head,K=1,Q=G.data;for(w-=Q.length;G=G.next;){var re=G.data,ie=w>re.length?re.length:w;if(Q+=ie===re.length?re:re.slice(0,w),0==(w-=ie)){ie===re.length?(++K,this.head=G.next?G.next:this.tail=null):(this.head=G,G.data=re.slice(ie));break}++K}return this.length-=K,Q}},{key:"_getBuffer",value:function(w){var G=R.allocUnsafe(w),K=this.head,Q=1;for(K.data.copy(G),w-=K.data.length;K=K.next;){var re=K.data,ie=w>re.length?re.length:w;if(re.copy(G,G.length-w,0,ie),0==(w-=ie)){ie===re.length?(++Q,this.head=K.next?K.next:this.tail=null):(this.head=K,K.data=re.slice(ie));break}++Q}return this.length-=Q,G}},{key:E,value:function(w,G){return I(this,function e(T){for(var N=1;N<arguments.length;N++){var w=null!=arguments[N]?arguments[N]:{};N%2?t(Object(w),!0).forEach(function(G){f(T,G,w[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(w)):t(Object(w)).forEach(function(G){Object.defineProperty(T,G,Object.getOwnPropertyDescriptor(w,G))})}return T}({},G,{depth:0,customInspect:!1}))}}]),T}()},1920:ke=>{"use strict";function p(a,M){f(a,M),t(a)}function t(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function f(a,M){a.emit("error",M)}ke.exports={destroy:function J(a,M){var d=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(M?M(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(f,this,a)):process.nextTick(f,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(I){!M&&I?d._writableState?d._writableState.errorEmitted?process.nextTick(t,d):(d._writableState.errorEmitted=!0,process.nextTick(p,d,I)):process.nextTick(p,d,I):M?(process.nextTick(t,d),M(I)):process.nextTick(t,d)}),this)},undestroy:function e(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function C(a,M){var d=a._readableState,R=a._writableState;d&&d.autoDestroy||R&&R.autoDestroy?a.destroy(M):a.emit("error",M)}}},7542:(ke,J,p)=>{"use strict";var t=p(891).q.ERR_STREAM_PREMATURE_CLOSE;function f(){}ke.exports=function a(M,d,R){if("function"==typeof d)return a(M,null,d);d||(d={}),R=function e(M){var d=!1;return function(){if(!d){d=!0;for(var R=arguments.length,h=new Array(R),I=0;I<R;I++)h[I]=arguments[I];M.apply(this,h)}}}(R||f);var h=d.readable||!1!==d.readable&&M.readable,I=d.writable||!1!==d.writable&&M.writable,E=function(){M.writable||T()},L=M._writableState&&M._writableState.finished,T=function(){I=!1,L=!0,h||R.call(M)},N=M._readableState&&M._readableState.endEmitted,w=function(){h=!1,N=!0,I||R.call(M)},G=function(ie){R.call(M,ie)},K=function(){var ie;return h&&!N?((!M._readableState||!M._readableState.ended)&&(ie=new t),R.call(M,ie)):I&&!L?((!M._writableState||!M._writableState.ended)&&(ie=new t),R.call(M,ie)):void 0},Q=function(){M.req.on("finish",T)};return function C(M){return M.setHeader&&"function"==typeof M.abort}(M)?(M.on("complete",T),M.on("abort",K),M.req?Q():M.on("request",Q)):I&&!M._writableState&&(M.on("end",E),M.on("close",E)),M.on("end",w),M.on("finish",T),!1!==d.error&&M.on("error",G),M.on("close",K),function(){M.removeListener("complete",T),M.removeListener("abort",K),M.removeListener("request",Q),M.req&&M.req.removeListener("finish",T),M.removeListener("end",E),M.removeListener("close",E),M.removeListener("finish",T),M.removeListener("end",w),M.removeListener("error",G),M.removeListener("close",K)}}},7412:ke=>{ke.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(ke,J,p)=>{"use strict";var t,f=p(891).q,C=f.ERR_MISSING_ARGS,a=f.ERR_STREAM_DESTROYED;function M(T){if(T)throw T}function R(T,N,w,G){G=function e(T){var N=!1;return function(){N||(N=!0,T.apply(void 0,arguments))}}(G);var K=!1;T.on("close",function(){K=!0}),void 0===t&&(t=p(7542)),t(T,{readable:N,writable:w},function(re){if(re)return G(re);K=!0,G()});var Q=!1;return function(re){if(!K&&!Q){if(Q=!0,function d(T){return T.setHeader&&"function"==typeof T.abort}(T))return T.abort();if("function"==typeof T.destroy)return T.destroy();G(re||new a("pipe"))}}}function h(T){T()}function I(T,N){return T.pipe(N)}function E(T){return T.length&&"function"==typeof T[T.length-1]?T.pop():M}ke.exports=function L(){for(var T=arguments.length,N=new Array(T),w=0;w<T;w++)N[w]=arguments[w];var G=E(N);if(Array.isArray(N[0])&&(N=N[0]),N.length<2)throw new C("streams");var K,Q=N.map(function(re,ie){var ce=ie<N.length-1;return R(re,ce,ie>0,function(ne){K||(K=ne),ne&&Q.forEach(h),!ce&&(Q.forEach(h),G(K))})});return N.reduce(I)}},7102:(ke,J,p)=>{"use strict";var t=p(891).q.ERR_INVALID_OPT_VALUE;ke.exports={getHighWaterMark:function f(C,a,M,d){var R=function e(C,a,M){return null!=C.highWaterMark?C.highWaterMark:a?C[M]:null}(a,d,M);if(null!=R){if(!isFinite(R)||Math.floor(R)!==R||R<0)throw new t(d?M:"highWaterMark",R);return Math.floor(R)}return C.objectMode?16:16384}}},4970:(ke,J,p)=>{ke.exports=p(9069).EventEmitter},5685:(ke,J,p)=>{(J=ke.exports=p(3154)).Stream=J,J.Readable=J,J.Writable=p(520),J.Duplex=p(1339),J.Transform=p(6025),J.PassThrough=p(6071),J.finished=p(7542),J.pipeline=p(954)},5634:(ke,J,p)=>{"use strict";var t=p(3172).Buffer,e=p(3894),f=p(9650),C=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],M=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],R=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],h=[0,1518500249,1859775393,2400959708,2840853838],I=[1352829926,1548603684,1836072691,2053994217,0];function E(){f.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function L(Q,re){return Q<<re|Q>>>32-re}function T(Q,re,ie,ce,ae,ne,le,ee){return L(Q+(re^ie^ce)+ne+le|0,ee)+ae|0}function N(Q,re,ie,ce,ae,ne,le,ee){return L(Q+(re&ie|~re&ce)+ne+le|0,ee)+ae|0}function w(Q,re,ie,ce,ae,ne,le,ee){return L(Q+((re|~ie)^ce)+ne+le|0,ee)+ae|0}function G(Q,re,ie,ce,ae,ne,le,ee){return L(Q+(re&ce|ie&~ce)+ne+le|0,ee)+ae|0}function K(Q,re,ie,ce,ae,ne,le,ee){return L(Q+(re^(ie|~ce))+ne+le|0,ee)+ae|0}e(E,f),E.prototype._update=function(){for(var Q=C,re=0;re<16;++re)Q[re]=this._block.readInt32LE(4*re);for(var ie=0|this._a,ce=0|this._b,ae=0|this._c,ne=0|this._d,le=0|this._e,ee=0|this._a,pe=0|this._b,S=0|this._c,i=0|this._d,r=0|this._e,u=0;u<80;u+=1){var l,y;u<16?(l=T(ie,ce,ae,ne,le,Q[a[u]],h[0],d[u]),y=K(ee,pe,S,i,r,Q[M[u]],I[0],R[u])):u<32?(l=N(ie,ce,ae,ne,le,Q[a[u]],h[1],d[u]),y=G(ee,pe,S,i,r,Q[M[u]],I[1],R[u])):u<48?(l=w(ie,ce,ae,ne,le,Q[a[u]],h[2],d[u]),y=w(ee,pe,S,i,r,Q[M[u]],I[2],R[u])):u<64?(l=G(ie,ce,ae,ne,le,Q[a[u]],h[3],d[u]),y=N(ee,pe,S,i,r,Q[M[u]],I[3],R[u])):(l=K(ie,ce,ae,ne,le,Q[a[u]],h[4],d[u]),y=T(ee,pe,S,i,r,Q[M[u]],I[4],R[u])),ie=le,le=ne,ne=L(ae,10),ae=ce,ce=l,ee=r,r=i,i=L(S,10),S=pe,pe=y}var D=this._b+ae+i|0;this._b=this._c+ne+r|0,this._c=this._d+le+ee|0,this._d=this._e+ie+pe|0,this._e=this._a+ce+S|0,this._a=D},E.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 Q=t.alloc?t.alloc(20):new t(20);return Q.writeInt32LE(this._a,0),Q.writeInt32LE(this._b,4),Q.writeInt32LE(this._c,8),Q.writeInt32LE(this._d,12),Q.writeInt32LE(this._e,16),Q},ke.exports=E},1135:(ke,J,p)=>{"use strict";p.d(J,{X:()=>e});var t=p(7579);class e extends t.x{constructor(C){super(),this._value=C}get value(){return this.getValue()}_subscribe(C){const a=super._subscribe(C);return!a.closed&&C.next(this._value),a}getValue(){const{hasError:C,thrownError:a,_value:M}=this;if(C)throw a;return this._throwIfClosed(),M}next(C){super.next(this._value=C)}}},9751:(ke,J,p)=>{"use strict";p.d(J,{y:()=>R});var t=p(930),e=p(727),f=p(8822),C=p(9635),a=p(2416),M=p(576),d=p(2806);let R=(()=>{class L{constructor(N){N&&(this._subscribe=N)}lift(N){const w=new L;return w.source=this,w.operator=N,w}subscribe(N,w,G){const K=function E(L){return L&&L instanceof t.Lv||function I(L){return L&&(0,M.m)(L.next)&&(0,M.m)(L.error)&&(0,M.m)(L.complete)}(L)&&(0,e.Nn)(L)}(N)?N:new t.Hp(N,w,G);return(0,d.x)(()=>{const{operator:Q,source:re}=this;K.add(Q?Q.call(K,re):re?this._subscribe(K):this._trySubscribe(K))}),K}_trySubscribe(N){try{return this._subscribe(N)}catch(w){N.error(w)}}forEach(N,w){return new(w=h(w))((G,K)=>{const Q=new t.Hp({next:re=>{try{N(re)}catch(ie){K(ie),Q.unsubscribe()}},error:K,complete:G});this.subscribe(Q)})}_subscribe(N){var w;return null===(w=this.source)||void 0===w?void 0:w.subscribe(N)}[f.L](){return this}pipe(...N){return(0,C.U)(N)(this)}toPromise(N){return new(N=h(N))((w,G)=>{let K;this.subscribe(Q=>K=Q,Q=>G(Q),()=>w(K))})}}return L.create=T=>new L(T),L})();function h(L){var T;return null!==(T=L??a.v.Promise)&&void 0!==T?T:Promise}},4707:(ke,J,p)=>{"use strict";p.d(J,{t:()=>f});var t=p(7579),e=p(6063);class f extends t.x{constructor(a=1/0,M=1/0,d=e.l){super(),this._bufferSize=a,this._windowTime=M,this._timestampProvider=d,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=M===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,M)}next(a){const{isStopped:M,_buffer:d,_infiniteTimeWindow:R,_timestampProvider:h,_windowTime:I}=this;M||(d.push(a),!R&&d.push(h.now()+I)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const M=this._innerSubscribe(a),{_infiniteTimeWindow:d,_buffer:R}=this,h=R.slice();for(let I=0;I<h.length&&!a.closed;I+=d?1:2)a.next(h[I]);return this._checkFinalizedStatuses(a),M}_trimBuffer(){const{_bufferSize:a,_timestampProvider:M,_buffer:d,_infiniteTimeWindow:R}=this,h=(R?1:2)*a;if(a<1/0&&h<d.length&&d.splice(0,d.length-h),!R){const I=M.now();let E=0;for(let L=1;L<d.length&&d[L]<=I;L+=2)E=L;E&&d.splice(0,E+1)}}}},7579:(ke,J,p)=>{"use strict";p.d(J,{u:()=>R,x:()=>d});var t=p(9751),e=p(727);const C=(0,p(3888).d)(h=>function(){h(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var a=p(8737),M=p(2806);let d=(()=>{class h extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(E){const L=new R(this,this);return L.operator=E,L}_throwIfClosed(){if(this.closed)throw new C}next(E){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const L of this.currentObservers)L.next(E)}})}error(E){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=E;const{observers:L}=this;for(;L.length;)L.shift().error(E)}})}complete(){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:E}=this;for(;E.length;)E.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var E;return(null===(E=this.observers)||void 0===E?void 0:E.length)>0}_trySubscribe(E){return this._throwIfClosed(),super._trySubscribe(E)}_subscribe(E){return this._throwIfClosed(),this._checkFinalizedStatuses(E),this._innerSubscribe(E)}_innerSubscribe(E){const{hasError:L,isStopped:T,observers:N}=this;return L||T?e.Lc:(this.currentObservers=null,N.push(E),new e.w0(()=>{this.currentObservers=null,(0,a.P)(N,E)}))}_checkFinalizedStatuses(E){const{hasError:L,thrownError:T,isStopped:N}=this;L?E.error(T):N&&E.complete()}asObservable(){const E=new t.y;return E.source=this,E}}return h.create=(I,E)=>new R(I,E),h})();class R extends d{constructor(I,E){super(),this.destination=I,this.source=E}next(I){var E,L;null===(L=null===(E=this.destination)||void 0===E?void 0:E.next)||void 0===L||L.call(E,I)}error(I){var E,L;null===(L=null===(E=this.destination)||void 0===E?void 0:E.error)||void 0===L||L.call(E,I)}complete(){var I,E;null===(E=null===(I=this.destination)||void 0===I?void 0:I.complete)||void 0===E||E.call(I)}_subscribe(I){var E,L;return null!==(L=null===(E=this.source)||void 0===E?void 0:E.subscribe(I))&&void 0!==L?L:e.Lc}}},930:(ke,J,p)=>{"use strict";p.d(J,{Hp:()=>G,Lv:()=>L});var t=p(576),e=p(727),f=p(2416),C=p(7849),a=p(5032);const M=h("C",void 0,void 0);function h(ce,ae,ne){return{kind:ce,value:ae,error:ne}}var I=p(3410),E=p(2806);class L extends e.w0{constructor(ae){super(),this.isStopped=!1,ae?(this.destination=ae,(0,e.Nn)(ae)&&ae.add(this)):this.destination=ie}static create(ae,ne,le){return new G(ae,ne,le)}next(ae){this.isStopped?re(function R(ce){return h("N",ce,void 0)}(ae),this):this._next(ae)}error(ae){this.isStopped?re(function d(ce){return h("E",void 0,ce)}(ae),this):(this.isStopped=!0,this._error(ae))}complete(){this.isStopped?re(M,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ae){this.destination.next(ae)}_error(ae){try{this.destination.error(ae)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const T=Function.prototype.bind;function N(ce,ae){return T.call(ce,ae)}class w{constructor(ae){this.partialObserver=ae}next(ae){const{partialObserver:ne}=this;if(ne.next)try{ne.next(ae)}catch(le){K(le)}}error(ae){const{partialObserver:ne}=this;if(ne.error)try{ne.error(ae)}catch(le){K(le)}else K(ae)}complete(){const{partialObserver:ae}=this;if(ae.complete)try{ae.complete()}catch(ne){K(ne)}}}class G extends L{constructor(ae,ne,le){let ee;if(super(),(0,t.m)(ae)||!ae)ee={next:ae??void 0,error:ne??void 0,complete:le??void 0};else{let pe;this&&f.v.useDeprecatedNextContext?(pe=Object.create(ae),pe.unsubscribe=()=>this.unsubscribe(),ee={next:ae.next&&N(ae.next,pe),error:ae.error&&N(ae.error,pe),complete:ae.complete&&N(ae.complete,pe)}):ee=ae}this.destination=new w(ee)}}function K(ce){f.v.useDeprecatedSynchronousErrorHandling?(0,E.O)(ce):(0,C.h)(ce)}function re(ce,ae){const{onStoppedNotification:ne}=f.v;ne&&I.z.setTimeout(()=>ne(ce,ae))}const ie={closed:!0,next:a.Z,error:function Q(ce){throw ce},complete:a.Z}},727:(ke,J,p)=>{"use strict";p.d(J,{Lc:()=>M,w0:()=>a,Nn:()=>d});var t=p(576);const f=(0,p(3888).d)(h=>function(E){h(this),this.message=E?`${E.length} errors occurred during unsubscription:\n${E.map((L,T)=>`${T+1}) ${L.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=E});var C=p(8737);class a{constructor(I){this.initialTeardown=I,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let I;if(!this.closed){this.closed=!0;const{_parentage:E}=this;if(E)if(this._parentage=null,Array.isArray(E))for(const N of E)N.remove(this);else E.remove(this);const{initialTeardown:L}=this;if((0,t.m)(L))try{L()}catch(N){I=N instanceof f?N.errors:[N]}const{_finalizers:T}=this;if(T){this._finalizers=null;for(const N of T)try{R(N)}catch(w){I=I??[],w instanceof f?I=[...I,...w.errors]:I.push(w)}}if(I)throw new f(I)}}add(I){var E;if(I&&I!==this)if(this.closed)R(I);else{if(I instanceof a){if(I.closed||I._hasParent(this))return;I._addParent(this)}(this._finalizers=null!==(E=this._finalizers)&&void 0!==E?E:[]).push(I)}}_hasParent(I){const{_parentage:E}=this;return E===I||Array.isArray(E)&&E.includes(I)}_addParent(I){const{_parentage:E}=this;this._parentage=Array.isArray(E)?(E.push(I),E):E?[E,I]:I}_removeParent(I){const{_parentage:E}=this;E===I?this._parentage=null:Array.isArray(E)&&(0,C.P)(E,I)}remove(I){const{_finalizers:E}=this;E&&(0,C.P)(E,I),I instanceof a&&I._removeParent(this)}}a.EMPTY=(()=>{const h=new a;return h.closed=!0,h})();const M=a.EMPTY;function d(h){return h instanceof a||h&&"closed"in h&&(0,t.m)(h.remove)&&(0,t.m)(h.add)&&(0,t.m)(h.unsubscribe)}function R(h){(0,t.m)(h)?h():h.unsubscribe()}},2416:(ke,J,p)=>{"use strict";p.d(J,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4033:(ke,J,p)=>{"use strict";p.d(J,{c:()=>M});var t=p(9751),e=p(727),f=p(8343),C=p(5403),a=p(4482);class M extends t.y{constructor(R,h){super(),this.source=R,this.subjectFactory=h,this._subject=null,this._refCount=0,this._connection=null,(0,a.A)(R)&&(this.lift=R.lift)}_subscribe(R){return this.getSubject().subscribe(R)}getSubject(){const R=this._subject;return(!R||R.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:R}=this;this._subject=this._connection=null,R?.unsubscribe()}connect(){let R=this._connection;if(!R){R=this._connection=new e.w0;const h=this.getSubject();R.add(this.source.subscribe((0,C.x)(h,void 0,()=>{this._teardown(),h.complete()},I=>{this._teardown(),h.error(I)},()=>this._teardown()))),R.closed&&(this._connection=null,R=e.w0.EMPTY)}return R}refCount(){return(0,f.x)()(this)}}},9841:(ke,J,p)=>{"use strict";p.d(J,{a:()=>I});var t=p(9751),e=p(4742),f=p(457),C=p(4671),a=p(3268),M=p(3269),d=p(1810),R=p(5403),h=p(9672);function I(...T){const N=(0,M.yG)(T),w=(0,M.jO)(T),{args:G,keys:K}=(0,e.D)(T);if(0===G.length)return(0,f.D)([],N);const Q=new t.y(function E(T,N,w=C.y){return G=>{L(N,()=>{const{length:K}=T,Q=new Array(K);let re=K,ie=K;for(let ce=0;ce<K;ce++)L(N,()=>{const ae=(0,f.D)(T[ce],N);let ne=!1;ae.subscribe((0,R.x)(G,le=>{Q[ce]=le,ne||(ne=!0,ie--),ie||G.next(w(Q.slice()))},()=>{--re||G.complete()}))},G)},G)}}(G,N,K?re=>(0,d.n)(K,re):C.y));return w?Q.pipe((0,a.Z)(w)):Q}function L(T,N,w){T?(0,h.f)(w,T,N):N()}},7272:(ke,J,p)=>{"use strict";p.d(J,{z:()=>a});var t=p(8189),f=p(3269),C=p(457);function a(...M){return function e(){return(0,t.J)(1)}()((0,C.D)(M,(0,f.yG)(M)))}},9770:(ke,J,p)=>{"use strict";p.d(J,{P:()=>f});var t=p(9751),e=p(8421);function f(C){return new t.y(a=>{(0,e.Xf)(C()).subscribe(a)})}},515:(ke,J,p)=>{"use strict";p.d(J,{E:()=>e});const e=new(p(9751).y)(a=>a.complete())},4128:(ke,J,p)=>{"use strict";p.d(J,{D:()=>R});var t=p(9751),e=p(4742),f=p(8421),C=p(3269),a=p(5403),M=p(3268),d=p(1810);function R(...h){const I=(0,C.jO)(h),{args:E,keys:L}=(0,e.D)(h),T=new t.y(N=>{const{length:w}=E;if(!w)return void N.complete();const G=new Array(w);let K=w,Q=w;for(let re=0;re<w;re++){let ie=!1;(0,f.Xf)(E[re]).subscribe((0,a.x)(N,ce=>{ie||(ie=!0,Q--),G[re]=ce},()=>K--,void 0,()=>{(!K||!ie)&&(Q||N.next(L?(0,d.n)(L,G):G),N.complete())}))}});return I?T.pipe((0,M.Z)(I)):T}},457:(ke,J,p)=>{"use strict";p.d(J,{D:()=>ne});var t=p(8421),e=p(5363),f=p(4482);function C(le,ee=0){return(0,f.e)((pe,S)=>{S.add(le.schedule(()=>pe.subscribe(S),ee))})}var d=p(9751),h=p(2202),I=p(576),E=p(9672);function T(le,ee){if(!le)throw new Error("Iterable cannot be null");return new d.y(pe=>{(0,E.f)(pe,ee,()=>{const S=le[Symbol.asyncIterator]();(0,E.f)(pe,ee,()=>{S.next().then(i=>{i.done?pe.complete():pe.next(i.value)})},0,!0)})})}var N=p(3670),w=p(8239),G=p(1144),K=p(6495),Q=p(2206),re=p(4532),ie=p(3260);function ne(le,ee){return ee?function ae(le,ee){if(null!=le){if((0,N.c)(le))return function a(le,ee){return(0,t.Xf)(le).pipe(C(ee),(0,e.Q)(ee))}(le,ee);if((0,G.z)(le))return function R(le,ee){return new d.y(pe=>{let S=0;return ee.schedule(function(){S===le.length?pe.complete():(pe.next(le[S++]),pe.closed||this.schedule())})})}(le,ee);if((0,w.t)(le))return function M(le,ee){return(0,t.Xf)(le).pipe(C(ee),(0,e.Q)(ee))}(le,ee);if((0,Q.D)(le))return T(le,ee);if((0,K.T)(le))return function L(le,ee){return new d.y(pe=>{let S;return(0,E.f)(pe,ee,()=>{S=le[h.h](),(0,E.f)(pe,ee,()=>{let i,r;try{({value:i,done:r}=S.next())}catch(u){return void pe.error(u)}r?pe.complete():pe.next(i)},0,!0)}),()=>(0,I.m)(S?.return)&&S.return()})}(le,ee);if((0,ie.L)(le))return function ce(le,ee){return T((0,ie.Q)(le),ee)}(le,ee)}throw(0,re.z)(le)}(le,ee):(0,t.Xf)(le)}},4968:(ke,J,p)=>{"use strict";p.d(J,{R:()=>I});var t=p(8421),e=p(9751),f=p(5577),C=p(1144),a=p(576),M=p(3268);const d=["addListener","removeListener"],R=["addEventListener","removeEventListener"],h=["on","off"];function I(w,G,K,Q){if((0,a.m)(K)&&(Q=K,K=void 0),Q)return I(w,G,K).pipe((0,M.Z)(Q));const[re,ie]=function N(w){return(0,a.m)(w.addEventListener)&&(0,a.m)(w.removeEventListener)}(w)?R.map(ce=>ae=>w[ce](G,ae,K)):function L(w){return(0,a.m)(w.addListener)&&(0,a.m)(w.removeListener)}(w)?d.map(E(w,G)):function T(w){return(0,a.m)(w.on)&&(0,a.m)(w.off)}(w)?h.map(E(w,G)):[];if(!re&&(0,C.z)(w))return(0,f.z)(ce=>I(ce,G,K))((0,t.Xf)(w));if(!re)throw new TypeError("Invalid event target");return new e.y(ce=>{const ae=(...ne)=>ce.next(1<ne.length?ne:ne[0]);return re(ae),()=>ie(ae)})}function E(w,G){return K=>Q=>w[K](G,Q)}},8421:(ke,J,p)=>{"use strict";p.d(J,{Xf:()=>T});var t=p(655),e=p(1144),f=p(8239),C=p(9751),a=p(3670),M=p(2206),d=p(4532),R=p(6495),h=p(3260),I=p(576),E=p(7849),L=p(8822);function T(ce){if(ce instanceof C.y)return ce;if(null!=ce){if((0,a.c)(ce))return function N(ce){return new C.y(ae=>{const ne=ce[L.L]();if((0,I.m)(ne.subscribe))return ne.subscribe(ae);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ce);if((0,e.z)(ce))return function w(ce){return new C.y(ae=>{for(let ne=0;ne<ce.length&&!ae.closed;ne++)ae.next(ce[ne]);ae.complete()})}(ce);if((0,f.t)(ce))return function G(ce){return new C.y(ae=>{ce.then(ne=>{ae.closed||(ae.next(ne),ae.complete())},ne=>ae.error(ne)).then(null,E.h)})}(ce);if((0,M.D)(ce))return Q(ce);if((0,R.T)(ce))return function K(ce){return new C.y(ae=>{for(const ne of ce)if(ae.next(ne),ae.closed)return;ae.complete()})}(ce);if((0,h.L)(ce))return function re(ce){return Q((0,h.Q)(ce))}(ce)}throw(0,d.z)(ce)}function Q(ce){return new C.y(ae=>{(function ie(ce,ae){var ne,le,ee,pe;return(0,t.mG)(this,void 0,void 0,function*(){try{for(ne=(0,t.KL)(ce);!(le=yield ne.next()).done;)if(ae.next(le.value),ae.closed)return}catch(S){ee={error:S}}finally{try{le&&!le.done&&(pe=ne.return)&&(yield pe.call(ne))}finally{if(ee)throw ee.error}}ae.complete()})})(ce,ae).catch(ne=>ae.error(ne))})}},6451:(ke,J,p)=>{"use strict";p.d(J,{T:()=>M});var t=p(8189),e=p(8421),f=p(515),C=p(3269),a=p(457);function M(...d){const R=(0,C.yG)(d),h=(0,C._6)(d,1/0),I=d;return I.length?1===I.length?(0,e.Xf)(I[0]):(0,t.J)(h)((0,a.D)(I,R)):f.E}},9646:(ke,J,p)=>{"use strict";p.d(J,{of:()=>f});var t=p(3269),e=p(457);function f(...C){const a=(0,t.yG)(C);return(0,e.D)(C,a)}},2843:(ke,J,p)=>{"use strict";p.d(J,{_:()=>f});var t=p(9751),e=p(576);function f(C,a){const M=(0,e.m)(C)?C:()=>C,d=R=>R.error(M());return new t.y(a?R=>a.schedule(d,0,R):d)}},2805:(ke,J,p)=>{"use strict";p.d(J,{H:()=>a});var t=p(9751),e=p(4986),f=p(3532),C=p(1165);function a(M=0,d,R=e.P){let h=-1;return null!=d&&((0,f.K)(d)?R=d:h=d),new t.y(I=>{let E=(0,C.q)(M)?+M-R.now():M;E<0&&(E=0);let L=0;return R.schedule(function(){I.closed||(I.next(L++),0<=h?this.schedule(void 0,h):I.complete())},E)})}},5403:(ke,J,p)=>{"use strict";p.d(J,{Q:()=>f,x:()=>e});var t=p(930);function e(C,a,M,d,R){return new f(C,a,M,d,R)}class f extends t.Lv{constructor(a,M,d,R,h,I){super(a),this.onFinalize=h,this.shouldUnsubscribe=I,this._next=M?function(E){try{M(E)}catch(L){a.error(L)}}:super._next,this._error=R?function(E){try{R(E)}catch(L){a.error(L)}finally{this.unsubscribe()}}:super._error,this._complete=d?function(){try{d()}catch(E){a.error(E)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:M}=this;super.unsubscribe(),!M&&(null===(a=this.onFinalize)||void 0===a||a.call(this))}}}},3601:(ke,J,p)=>{"use strict";p.d(J,{e:()=>d});var t=p(4986),e=p(4482),f=p(8421),C=p(5403),M=p(2805);function d(R,h=t.z){return function a(R){return(0,e.e)((h,I)=>{let E=!1,L=null,T=null,N=!1;const w=()=>{if(T?.unsubscribe(),T=null,E){E=!1;const K=L;L=null,I.next(K)}N&&I.complete()},G=()=>{T=null,N&&I.complete()};h.subscribe((0,C.x)(I,K=>{E=!0,L=K,T||(0,f.Xf)(R(K)).subscribe(T=(0,C.x)(I,w,G))},()=>{N=!0,(!E||!T||T.closed)&&I.complete()}))})}(()=>(0,M.H)(R,h))}},262:(ke,J,p)=>{"use strict";p.d(J,{K:()=>C});var t=p(8421),e=p(5403),f=p(4482);function C(a){return(0,f.e)((M,d)=>{let I,R=null,h=!1;R=M.subscribe((0,e.x)(d,void 0,void 0,E=>{I=(0,t.Xf)(a(E,C(a)(M))),R?(R.unsubscribe(),R=null,I.subscribe(d)):h=!0})),h&&(R.unsubscribe(),R=null,I.subscribe(d))})}},4351:(ke,J,p)=>{"use strict";p.d(J,{b:()=>f});var t=p(5577),e=p(576);function f(C,a){return(0,e.m)(a)?(0,t.z)(C,a,1):(0,t.z)(C,1)}},8372:(ke,J,p)=>{"use strict";p.d(J,{b:()=>C});var t=p(4986),e=p(4482),f=p(5403);function C(a,M=t.z){return(0,e.e)((d,R)=>{let h=null,I=null,E=null;const L=()=>{if(h){h.unsubscribe(),h=null;const N=I;I=null,R.next(N)}};function T(){const N=E+a,w=M.now();if(w<N)return h=this.schedule(void 0,N-w),void R.add(h);L()}d.subscribe((0,f.x)(R,N=>{I=N,E=M.now(),h||(h=M.schedule(T,a),R.add(h))},()=>{L(),R.complete()},void 0,()=>{I=h=null}))})}},6590:(ke,J,p)=>{"use strict";p.d(J,{d:()=>f});var t=p(4482),e=p(5403);function f(C){return(0,t.e)((a,M)=>{let d=!1;a.subscribe((0,e.x)(M,R=>{d=!0,M.next(R)},()=>{d||M.next(C),M.complete()}))})}},4086:(ke,J,p)=>{"use strict";p.d(J,{g:()=>h});var t=p(4986),e=p(7272),f=p(5698),C=p(8502),a=p(9718),M=p(5577);function d(I,E){return E?L=>(0,e.z)(E.pipe((0,f.q)(1),(0,C.l)()),L.pipe(d(I))):(0,M.z)((L,T)=>I(L,T).pipe((0,f.q)(1),(0,a.h)(L)))}var R=p(2805);function h(I,E=t.z){const L=(0,R.H)(I,E);return d(()=>L)}},1884:(ke,J,p)=>{"use strict";p.d(J,{x:()=>C});var t=p(4671),e=p(4482),f=p(5403);function C(M,d=t.y){return M=M??a,(0,e.e)((R,h)=>{let I,E=!0;R.subscribe((0,f.x)(h,L=>{const T=d(L);(E||!M(I,T))&&(E=!1,I=T,h.next(L))}))})}function a(M,d){return M===d}},9300:(ke,J,p)=>{"use strict";p.d(J,{h:()=>f});var t=p(4482),e=p(5403);function f(C,a){return(0,t.e)((M,d)=>{let R=0;M.subscribe((0,e.x)(d,h=>C.call(a,h,R++)&&d.next(h)))})}},8746:(ke,J,p)=>{"use strict";p.d(J,{x:()=>e});var t=p(4482);function e(f){return(0,t.e)((C,a)=>{try{C.subscribe(a)}finally{a.add(f)}})}},590:(ke,J,p)=>{"use strict";p.d(J,{P:()=>d});var t=p(6805),e=p(9300),f=p(5698),C=p(6590),a=p(8068),M=p(4671);function d(R,h){const I=arguments.length>=2;return E=>E.pipe(R?(0,e.h)((L,T)=>R(L,T,E)):M.y,(0,f.q)(1),I?(0,C.d)(h):(0,a.T)(()=>new t.K))}},8502:(ke,J,p)=>{"use strict";p.d(J,{l:()=>C});var t=p(4482),e=p(5403),f=p(5032);function C(){return(0,t.e)((a,M)=>{a.subscribe((0,e.x)(M,f.Z))})}},4004:(ke,J,p)=>{"use strict";p.d(J,{U:()=>f});var t=p(4482),e=p(5403);function f(C,a){return(0,t.e)((M,d)=>{let R=0;M.subscribe((0,e.x)(d,h=>{d.next(C.call(a,h,R++))}))})}},9718:(ke,J,p)=>{"use strict";p.d(J,{h:()=>e});var t=p(4004);function e(f){return(0,t.U)(()=>f)}},8189:(ke,J,p)=>{"use strict";p.d(J,{J:()=>f});var t=p(5577),e=p(4671);function f(C=1/0){return(0,t.z)(e.y,C)}},5577:(ke,J,p)=>{"use strict";p.d(J,{z:()=>R});var t=p(4004),e=p(8421),f=p(4482),C=p(9672),a=p(5403),d=p(576);function R(h,I,E=1/0){return(0,d.m)(I)?R((L,T)=>(0,t.U)((N,w)=>I(L,N,T,w))((0,e.Xf)(h(L,T))),E):("number"==typeof I&&(E=I),(0,f.e)((L,T)=>function M(h,I,E,L,T,N,w,G){const K=[];let Q=0,re=0,ie=!1;const ce=()=>{ie&&!K.length&&!Q&&I.complete()},ae=le=>Q<L?ne(le):K.push(le),ne=le=>{N&&I.next(le),Q++;let ee=!1;(0,e.Xf)(E(le,re++)).subscribe((0,a.x)(I,pe=>{T?.(pe),N?ae(pe):I.next(pe)},()=>{ee=!0},void 0,()=>{if(ee)try{for(Q--;K.length&&Q<L;){const pe=K.shift();w?(0,C.f)(I,w,()=>ne(pe)):ne(pe)}ce()}catch(pe){I.error(pe)}}))};return h.subscribe((0,a.x)(I,ae,()=>{ie=!0,ce()})),()=>{G?.()}}(L,T,h,E)))}},5363:(ke,J,p)=>{"use strict";p.d(J,{Q:()=>C});var t=p(9672),e=p(4482),f=p(5403);function C(a,M=0){return(0,e.e)((d,R)=>{d.subscribe((0,f.x)(R,h=>(0,t.f)(R,a,()=>R.next(h),M),()=>(0,t.f)(R,a,()=>R.complete(),M),h=>(0,t.f)(R,a,()=>R.error(h),M)))})}},8343:(ke,J,p)=>{"use strict";p.d(J,{x:()=>f});var t=p(4482),e=p(5403);function f(){return(0,t.e)((C,a)=>{let M=null;C._refCount++;const d=(0,e.x)(a,void 0,void 0,void 0,()=>{if(!C||C._refCount<=0||0<--C._refCount)return void(M=null);const R=C._connection,h=M;M=null,R&&(!h||R===h)&&R.unsubscribe(),a.unsubscribe()});C.subscribe(d),d.closed||(M=C.connect())})}},5026:(ke,J,p)=>{"use strict";p.d(J,{R:()=>C});var t=p(4482),e=p(5403);function f(a,M,d,R,h){return(I,E)=>{let L=d,T=M,N=0;I.subscribe((0,e.x)(E,w=>{const G=N++;T=L?a(T,w,G):(L=!0,w),R&&E.next(T)},h&&(()=>{L&&E.next(T),E.complete()})))}}function C(a,M){return(0,t.e)(f(a,M,arguments.length>=2,!0))}},3099:(ke,J,p)=>{"use strict";p.d(J,{B:()=>a});var t=p(8421),e=p(7579),f=p(930),C=p(4482);function a(d={}){const{connector:R=(()=>new e.x),resetOnError:h=!0,resetOnComplete:I=!0,resetOnRefCountZero:E=!0}=d;return L=>{let T,N,w,G=0,K=!1,Q=!1;const re=()=>{N?.unsubscribe(),N=void 0},ie=()=>{re(),T=w=void 0,K=Q=!1},ce=()=>{const ae=T;ie(),ae?.unsubscribe()};return(0,C.e)((ae,ne)=>{G++,!Q&&!K&&re();const le=w=w??R();ne.add(()=>{G--,0===G&&!Q&&!K&&(N=M(ce,E))}),le.subscribe(ne),!T&&G>0&&(T=new f.Hp({next:ee=>le.next(ee),error:ee=>{Q=!0,re(),N=M(ie,h,ee),le.error(ee)},complete:()=>{K=!0,re(),N=M(ie,I),le.complete()}}),(0,t.Xf)(ae).subscribe(T))})(L)}}function M(d,R,...h){if(!0===R)return void d();if(!1===R)return;const I=new f.Hp({next:()=>{I.unsubscribe(),d()}});return R(...h).subscribe(I)}},5684:(ke,J,p)=>{"use strict";p.d(J,{T:()=>e});var t=p(9300);function e(f){return(0,t.h)((C,a)=>f<=a)}},8675:(ke,J,p)=>{"use strict";p.d(J,{O:()=>C});var t=p(7272),e=p(3269),f=p(4482);function C(...a){const M=(0,e.yG)(a);return(0,f.e)((d,R)=>{(M?(0,t.z)(a,d,M):(0,t.z)(a,d)).subscribe(R)})}},3900:(ke,J,p)=>{"use strict";p.d(J,{w:()=>C});var t=p(8421),e=p(4482),f=p(5403);function C(a,M){return(0,e.e)((d,R)=>{let h=null,I=0,E=!1;const L=()=>E&&!h&&R.complete();d.subscribe((0,f.x)(R,T=>{h?.unsubscribe();let N=0;const w=I++;(0,t.Xf)(a(T,w)).subscribe(h=(0,f.x)(R,G=>R.next(M?M(T,G,w,N++):G),()=>{h=null,L()}))},()=>{E=!0,L()}))})}},5698:(ke,J,p)=>{"use strict";p.d(J,{q:()=>C});var t=p(515),e=p(4482),f=p(5403);function C(a){return a<=0?()=>t.E:(0,e.e)((M,d)=>{let R=0;M.subscribe((0,f.x)(d,h=>{++R<=a&&(d.next(h),a<=R&&d.complete())}))})}},2722:(ke,J,p)=>{"use strict";p.d(J,{R:()=>a});var t=p(4482),e=p(5403),f=p(8421),C=p(5032);function a(M){return(0,t.e)((d,R)=>{(0,f.Xf)(M).subscribe((0,e.x)(R,()=>R.complete(),C.Z)),!R.closed&&d.subscribe(R)})}},2529:(ke,J,p)=>{"use strict";p.d(J,{o:()=>f});var t=p(4482),e=p(5403);function f(C,a=!1){return(0,t.e)((M,d)=>{let R=0;M.subscribe((0,e.x)(d,h=>{const I=C(h,R++);(I||a)&&d.next(h),!I&&d.complete()}))})}},8505:(ke,J,p)=>{"use strict";p.d(J,{b:()=>a});var t=p(576),e=p(4482),f=p(5403),C=p(4671);function a(M,d,R){const h=(0,t.m)(M)||d||R?{next:M,error:d,complete:R}:M;return h?(0,e.e)((I,E)=>{var L;null===(L=h.subscribe)||void 0===L||L.call(h);let T=!0;I.subscribe((0,f.x)(E,N=>{var w;null===(w=h.next)||void 0===w||w.call(h,N),E.next(N)},()=>{var N;T=!1,null===(N=h.complete)||void 0===N||N.call(h),E.complete()},N=>{var w;T=!1,null===(w=h.error)||void 0===w||w.call(h,N),E.error(N)},()=>{var N,w;T&&(null===(N=h.unsubscribe)||void 0===N||N.call(h)),null===(w=h.finalize)||void 0===w||w.call(h)}))}):C.y}},8068:(ke,J,p)=>{"use strict";p.d(J,{T:()=>C});var t=p(6805),e=p(4482),f=p(5403);function C(M=a){return(0,e.e)((d,R)=>{let h=!1;d.subscribe((0,f.x)(R,I=>{h=!0,R.next(I)},()=>h?R.complete():R.error(M())))})}function a(){return new t.K}},7414:(ke,J,p)=>{"use strict";p.d(J,{V:()=>h});var t=p(4986),e=p(1165),f=p(4482),C=p(8421),a=p(3888),M=p(5403),d=p(9672);const R=(0,a.d)(E=>function(T=null){E(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=T});function h(E,L){const{first:T,each:N,with:w=I,scheduler:G=L??t.z,meta:K=null}=(0,e.q)(E)?{first:E}:"number"==typeof E?{each:E}:E;if(null==T&&null==N)throw new TypeError("No timeout provided.");return(0,f.e)((Q,re)=>{let ie,ce,ae=null,ne=0;const le=ee=>{ce=(0,d.f)(re,G,()=>{try{ie.unsubscribe(),(0,C.Xf)(w({meta:K,lastValue:ae,seen:ne})).subscribe(re)}catch(pe){re.error(pe)}},ee)};ie=Q.subscribe((0,M.x)(re,ee=>{ce?.unsubscribe(),ne++,re.next(ae=ee),N>0&&le(N)},void 0,void 0,()=>{ce?.closed||ce?.unsubscribe(),ae=null})),!ne&&le(null!=T?"number"==typeof T?T:+T-G.now():N)})}function I(E){throw new R(E)}},1365:(ke,J,p)=>{"use strict";p.d(J,{M:()=>d});var t=p(4482),e=p(5403),f=p(8421),C=p(4671),a=p(5032),M=p(3269);function d(...R){const h=(0,M.jO)(R);return(0,t.e)((I,E)=>{const L=R.length,T=new Array(L);let N=R.map(()=>!1),w=!1;for(let G=0;G<L;G++)(0,f.Xf)(R[G]).subscribe((0,e.x)(E,K=>{T[G]=K,!w&&!N[G]&&(N[G]=!0,(w=N.every(C.y))&&(N=null))},a.Z));I.subscribe((0,e.x)(E,G=>{if(w){const K=[G,...T];E.next(h?h(...K):K)}}))})}},4408:(ke,J,p)=>{"use strict";p.d(J,{o:()=>a});var t=p(727);class e extends t.w0{constructor(d,R){super()}schedule(d,R=0){return this}}const f={setInterval(M,d,...R){const{delegate:h}=f;return h?.setInterval?h.setInterval(M,d,...R):setInterval(M,d,...R)},clearInterval(M){const{delegate:d}=f;return(d?.clearInterval||clearInterval)(M)},delegate:void 0};var C=p(8737);class a extends e{constructor(d,R){super(d,R),this.scheduler=d,this.work=R,this.pending=!1}schedule(d,R=0){var h;if(this.closed)return this;this.state=d;const I=this.id,E=this.scheduler;return null!=I&&(this.id=this.recycleAsyncId(E,I,R)),this.pending=!0,this.delay=R,this.id=null!==(h=this.id)&&void 0!==h?h:this.requestAsyncId(E,this.id,R),this}requestAsyncId(d,R,h=0){return f.setInterval(d.flush.bind(d,this),h)}recycleAsyncId(d,R,h=0){if(null!=h&&this.delay===h&&!1===this.pending)return R;null!=R&&f.clearInterval(R)}execute(d,R){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const h=this._execute(d,R);if(h)return h;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(d,R){let I,h=!1;try{this.work(d)}catch(E){h=!0,I=E||new Error("Scheduled action threw falsy error")}if(h)return this.unsubscribe(),I}unsubscribe(){if(!this.closed){const{id:d,scheduler:R}=this,{actions:h}=R;this.work=this.state=this.scheduler=null,this.pending=!1,(0,C.P)(h,this),null!=d&&(this.id=this.recycleAsyncId(R,d,null)),this.delay=null,super.unsubscribe()}}}},7565:(ke,J,p)=>{"use strict";p.d(J,{v:()=>f});var t=p(6063);class e{constructor(a,M=e.now){this.schedulerActionCtor=a,this.now=M}schedule(a,M=0,d){return new this.schedulerActionCtor(this,a).schedule(d,M)}}e.now=t.l.now;class f extends e{constructor(a,M=e.now){super(a,M),this.actions=[],this._active=!1}flush(a){const{actions:M}=this;if(this._active)return void M.push(a);let d;this._active=!0;do{if(d=a.execute(a.state,a.delay))break}while(a=M.shift());if(this._active=!1,d){for(;a=M.shift();)a.unsubscribe();throw d}}}},3101:(ke,J,p)=>{"use strict";p.d(J,{E:()=>N});var t=p(4408);let f,e=1;const C={};function a(G){return G in C&&(delete C[G],!0)}const M={setImmediate(G){const K=e++;return C[K]=!0,f||(f=Promise.resolve()),f.then(()=>a(K)&&G()),K},clearImmediate(G){a(G)}},{setImmediate:R,clearImmediate:h}=M,I={setImmediate(...G){const{delegate:K}=I;return(K?.setImmediate||R)(...G)},clearImmediate(G){const{delegate:K}=I;return(K?.clearImmediate||h)(G)},delegate:void 0};var L=p(7565);const N=new class T extends L.v{flush(K){this._active=!0;const Q=this._scheduled;this._scheduled=void 0;const{actions:re}=this;let ie;K=K||re.shift();do{if(ie=K.execute(K.state,K.delay))break}while((K=re[0])&&K.id===Q&&re.shift());if(this._active=!1,ie){for(;(K=re[0])&&K.id===Q&&re.shift();)K.unsubscribe();throw ie}}}(class E extends t.o{constructor(K,Q){super(K,Q),this.scheduler=K,this.work=Q}requestAsyncId(K,Q,re=0){return null!==re&&re>0?super.requestAsyncId(K,Q,re):(K.actions.push(this),K._scheduled||(K._scheduled=I.setImmediate(K.flush.bind(K,void 0))))}recycleAsyncId(K,Q,re=0){var ie;if(null!=re?re>0:this.delay>0)return super.recycleAsyncId(K,Q,re);const{actions:ce}=K;null!=Q&&(null===(ie=ce[ce.length-1])||void 0===ie?void 0:ie.id)!==Q&&(I.clearImmediate(Q),K._scheduled=void 0)}})},4986:(ke,J,p)=>{"use strict";p.d(J,{P:()=>C,z:()=>f});var t=p(4408);const f=new(p(7565).v)(t.o),C=f},6063:(ke,J,p)=>{"use strict";p.d(J,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},233:(ke,J,p)=>{"use strict";p.d(J,{N:()=>a});var t=p(4408),f=p(7565);const a=new class C extends f.v{}(class e extends t.o{constructor(R,h){super(R,h),this.scheduler=R,this.work=h}schedule(R,h=0){return h>0?super.schedule(R,h):(this.delay=h,this.state=R,this.scheduler.flush(this),this)}execute(R,h){return h>0||this.closed?super.execute(R,h):this._execute(R,h)}requestAsyncId(R,h,I=0){return null!=I&&I>0||null==I&&this.delay>0?super.requestAsyncId(R,h,I):(R.flush(this),0)}})},3410:(ke,J,p)=>{"use strict";p.d(J,{z:()=>t});const t={setTimeout(e,f,...C){const{delegate:a}=t;return a?.setTimeout?a.setTimeout(e,f,...C):setTimeout(e,f,...C)},clearTimeout(e){const{delegate:f}=t;return(f?.clearTimeout||clearTimeout)(e)},delegate:void 0}},2202:(ke,J,p)=>{"use strict";p.d(J,{h:()=>e});const e=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(ke,J,p)=>{"use strict";p.d(J,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(ke,J,p)=>{"use strict";p.d(J,{K:()=>e});const e=(0,p(3888).d)(f=>function(){f(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(ke,J,p)=>{"use strict";p.d(J,{_6:()=>M,jO:()=>C,yG:()=>a});var t=p(576),e=p(3532);function f(d){return d[d.length-1]}function C(d){return(0,t.m)(f(d))?d.pop():void 0}function a(d){return(0,e.K)(f(d))?d.pop():void 0}function M(d,R){return"number"==typeof f(d)?d.pop():R}},4742:(ke,J,p)=>{"use strict";p.d(J,{D:()=>a});const{isArray:t}=Array,{getPrototypeOf:e,prototype:f,keys:C}=Object;function a(d){if(1===d.length){const R=d[0];if(t(R))return{args:R,keys:null};if(function M(d){return d&&"object"==typeof d&&e(d)===f}(R)){const h=C(R);return{args:h.map(I=>R[I]),keys:h}}}return{args:d,keys:null}}},8737:(ke,J,p)=>{"use strict";function t(e,f){if(e){const C=e.indexOf(f);0<=C&&e.splice(C,1)}}p.d(J,{P:()=>t})},3888:(ke,J,p)=>{"use strict";function t(e){const C=e(a=>{Error.call(a),a.stack=(new Error).stack});return C.prototype=Object.create(Error.prototype),C.prototype.constructor=C,C}p.d(J,{d:()=>t})},1810:(ke,J,p)=>{"use strict";function t(e,f){return e.reduce((C,a,M)=>(C[a]=f[M],C),{})}p.d(J,{n:()=>t})},2806:(ke,J,p)=>{"use strict";p.d(J,{O:()=>C,x:()=>f});var t=p(2416);let e=null;function f(a){if(t.v.useDeprecatedSynchronousErrorHandling){const M=!e;if(M&&(e={errorThrown:!1,error:null}),a(),M){const{errorThrown:d,error:R}=e;if(e=null,d)throw R}}else a()}function C(a){t.v.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=a)}},9672:(ke,J,p)=>{"use strict";function t(e,f,C,a=0,M=!1){const d=f.schedule(function(){C(),M?e.add(this.schedule(null,a)):this.unsubscribe()},a);if(e.add(d),!M)return d}p.d(J,{f:()=>t})},4671:(ke,J,p)=>{"use strict";function t(e){return e}p.d(J,{y:()=>t})},1144:(ke,J,p)=>{"use strict";p.d(J,{z:()=>t});const t=e=>e&&"number"==typeof e.length&&"function"!=typeof e},2206:(ke,J,p)=>{"use strict";p.d(J,{D:()=>e});var t=p(576);function e(f){return Symbol.asyncIterator&&(0,t.m)(f?.[Symbol.asyncIterator])}},1165:(ke,J,p)=>{"use strict";function t(e){return e instanceof Date&&!isNaN(e)}p.d(J,{q:()=>t})},576:(ke,J,p)=>{"use strict";function t(e){return"function"==typeof e}p.d(J,{m:()=>t})},3670:(ke,J,p)=>{"use strict";p.d(J,{c:()=>f});var t=p(8822),e=p(576);function f(C){return(0,e.m)(C[t.L])}},6495:(ke,J,p)=>{"use strict";p.d(J,{T:()=>f});var t=p(2202),e=p(576);function f(C){return(0,e.m)(C?.[t.h])}},5191:(ke,J,p)=>{"use strict";p.d(J,{b:()=>f});var t=p(9751),e=p(576);function f(C){return!!C&&(C instanceof t.y||(0,e.m)(C.lift)&&(0,e.m)(C.subscribe))}},8239:(ke,J,p)=>{"use strict";p.d(J,{t:()=>e});var t=p(576);function e(f){return(0,t.m)(f?.then)}},3260:(ke,J,p)=>{"use strict";p.d(J,{L:()=>C,Q:()=>f});var t=p(655),e=p(576);function f(a){return(0,t.FC)(this,arguments,function*(){const d=a.getReader();try{for(;;){const{value:R,done:h}=yield(0,t.qq)(d.read());if(h)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(R)}}finally{d.releaseLock()}})}function C(a){return(0,e.m)(a?.getReader)}},3532:(ke,J,p)=>{"use strict";p.d(J,{K:()=>e});var t=p(576);function e(f){return f&&(0,t.m)(f.schedule)}},4482:(ke,J,p)=>{"use strict";p.d(J,{A:()=>e,e:()=>f});var t=p(576);function e(C){return(0,t.m)(C?.lift)}function f(C){return a=>{if(e(a))return a.lift(function(M){try{return C(M,this)}catch(d){this.error(d)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(ke,J,p)=>{"use strict";p.d(J,{Z:()=>C});var t=p(4004);const{isArray:e}=Array;function C(a){return(0,t.U)(M=>function f(a,M){return e(M)?a(...M):a(M)}(a,M))}},5032:(ke,J,p)=>{"use strict";function t(){}p.d(J,{Z:()=>t})},9635:(ke,J,p)=>{"use strict";p.d(J,{U:()=>f,z:()=>e});var t=p(4671);function e(...C){return f(C)}function f(C){return 0===C.length?t.y:1===C.length?C[0]:function(M){return C.reduce((d,R)=>R(d),M)}}},7849:(ke,J,p)=>{"use strict";p.d(J,{h:()=>f});var t=p(2416),e=p(3410);function f(C){e.z.setTimeout(()=>{const{onUnhandledError:a}=t.v;if(!a)throw C;a(C)})}},4532:(ke,J,p)=>{"use strict";function t(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}p.d(J,{z:()=>t})},3502:(ke,J,p)=>{var t=p(3172),e=t.Buffer;function f(a,M){for(var d in a)M[d]=a[d]}function C(a,M,d){return e(a,M,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?ke.exports=t:(f(t,J),J.Buffer=C),C.prototype=Object.create(e.prototype),f(e,C),C.from=function(a,M,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return e(a,M,d)},C.alloc=function(a,M,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var R=e(a);return void 0!==M?"string"==typeof d?R.fill(M,d):R.fill(M):R.fill(0),R},C.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e(a)},C.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}},2038:(ke,J,p)=>{"use strict";var C,t=p(3172),e=t.Buffer,f={};for(C in t)!t.hasOwnProperty(C)||"SlowBuffer"===C||"Buffer"===C||(f[C]=t[C]);var a=f.Buffer={};for(C in e)!e.hasOwnProperty(C)||"allocUnsafe"===C||"allocUnsafeSlow"===C||(a[C]=e[C]);if(f.Buffer.prototype=e.prototype,(!a.from||a.from===Uint8Array.from)&&(a.from=function(M,d,R){if("number"==typeof M)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof M);if(M&&typeof M.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);return e(M,d,R)}),a.alloc||(a.alloc=function(M,d,R){if("number"!=typeof M)throw new TypeError('The "size" argument must be of type number. Received type '+typeof M);if(M<0||M>=2*(1<<30))throw new RangeError('The value "'+M+'" is invalid for option "size"');var h=e(M);return d&&0!==d.length?"string"==typeof R?h.fill(d,R):h.fill(d):h.fill(0),h}),!f.kStringMaxLength)try{f.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}f.constants||(f.constants={MAX_LENGTH:f.kMaxLength},f.kStringMaxLength&&(f.constants.MAX_STRING_LENGTH=f.kStringMaxLength)),ke.exports=f},6692:(ke,J,p)=>{var t=p(3502).Buffer;function e(f,C){this._block=t.alloc(f),this._finalSize=C,this._blockSize=f,this._len=0}e.prototype.update=function(f,C){"string"==typeof f&&(f=t.from(f,C=C||"utf8"));for(var a=this._block,M=this._blockSize,d=f.length,R=this._len,h=0;h<d;){for(var I=R%M,E=Math.min(d-h,M-I),L=0;L<E;L++)a[I+L]=f[h+L];h+=E,(R+=E)%M==0&&this._update(a)}return this._len+=d,this},e.prototype.digest=function(f){var C=this._len%this._blockSize;this._block[C]=128,this._block.fill(0,C+1),C>=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var M=(4294967295&a)>>>0;this._block.writeUInt32BE((a-M)/4294967296,this._blockSize-8),this._block.writeUInt32BE(M,this._blockSize-4)}this._update(this._block);var R=this._hash();return f?R.toString(f):R},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},ke.exports=e},5244:(ke,J,p)=>{var t=ke.exports=function(f){f=f.toLowerCase();var C=t[f];if(!C)throw new Error(f+" is not supported (we accept pull requests)");return new C};t.sha=p(8932),t.sha1=p(7736),t.sha224=p(5044),t.sha256=p(5014),t.sha384=p(6540),t.sha512=p(117)},8932:(ke,J,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,C=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function M(){this.init(),this._w=a,e.call(this,64,56)}function d(I){return I<<5|I>>>27}function R(I){return I<<30|I>>>2}function h(I,E,L,T){return 0===I?E&L|~E&T:2===I?E&L|E&T|L&T:E^L^T}t(M,e),M.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},M.prototype._update=function(I){for(var E=this._w,L=0|this._a,T=0|this._b,N=0|this._c,w=0|this._d,G=0|this._e,K=0;K<16;++K)E[K]=I.readInt32BE(4*K);for(;K<80;++K)E[K]=E[K-3]^E[K-8]^E[K-14]^E[K-16];for(var Q=0;Q<80;++Q){var re=~~(Q/20),ie=d(L)+h(re,T,N,w)+G+E[Q]+C[re]|0;G=w,w=N,N=R(T),T=L,L=ie}this._a=L+this._a|0,this._b=T+this._b|0,this._c=N+this._c|0,this._d=w+this._d|0,this._e=G+this._e|0},M.prototype._hash=function(){var I=f.allocUnsafe(20);return I.writeInt32BE(0|this._a,0),I.writeInt32BE(0|this._b,4),I.writeInt32BE(0|this._c,8),I.writeInt32BE(0|this._d,12),I.writeInt32BE(0|this._e,16),I},ke.exports=M},7736:(ke,J,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,C=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function M(){this.init(),this._w=a,e.call(this,64,56)}function d(E){return E<<1|E>>>31}function R(E){return E<<5|E>>>27}function h(E){return E<<30|E>>>2}function I(E,L,T,N){return 0===E?L&T|~L&N:2===E?L&T|L&N|T&N:L^T^N}t(M,e),M.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},M.prototype._update=function(E){for(var L=this._w,T=0|this._a,N=0|this._b,w=0|this._c,G=0|this._d,K=0|this._e,Q=0;Q<16;++Q)L[Q]=E.readInt32BE(4*Q);for(;Q<80;++Q)L[Q]=d(L[Q-3]^L[Q-8]^L[Q-14]^L[Q-16]);for(var re=0;re<80;++re){var ie=~~(re/20),ce=R(T)+I(ie,N,w,G)+K+L[re]+C[ie]|0;K=G,G=w,w=h(N),N=T,T=ce}this._a=T+this._a|0,this._b=N+this._b|0,this._c=w+this._c|0,this._d=G+this._d|0,this._e=K+this._e|0},M.prototype._hash=function(){var E=f.allocUnsafe(20);return E.writeInt32BE(0|this._a,0),E.writeInt32BE(0|this._b,4),E.writeInt32BE(0|this._c,8),E.writeInt32BE(0|this._d,12),E.writeInt32BE(0|this._e,16),E},ke.exports=M},5044:(ke,J,p)=>{var t=p(3894),e=p(5014),f=p(6692),C=p(3502).Buffer,a=new Array(64);function M(){this.init(),this._w=a,f.call(this,64,56)}t(M,e),M.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},M.prototype._hash=function(){var d=C.allocUnsafe(28);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d},ke.exports=M},5014:(ke,J,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,C=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function M(){this.init(),this._w=a,e.call(this,64,56)}function d(T,N,w){return w^T&(N^w)}function R(T,N,w){return T&N|w&(T|N)}function h(T){return(T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10)}function I(T){return(T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7)}function E(T){return(T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3}function L(T){return(T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10}t(M,e),M.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},M.prototype._update=function(T){for(var N=this._w,w=0|this._a,G=0|this._b,K=0|this._c,Q=0|this._d,re=0|this._e,ie=0|this._f,ce=0|this._g,ae=0|this._h,ne=0;ne<16;++ne)N[ne]=T.readInt32BE(4*ne);for(;ne<64;++ne)N[ne]=L(N[ne-2])+N[ne-7]+E(N[ne-15])+N[ne-16]|0;for(var le=0;le<64;++le){var ee=ae+I(re)+d(re,ie,ce)+C[le]+N[le]|0,pe=h(w)+R(w,G,K)|0;ae=ce,ce=ie,ie=re,re=Q+ee|0,Q=K,K=G,G=w,w=ee+pe|0}this._a=w+this._a|0,this._b=G+this._b|0,this._c=K+this._c|0,this._d=Q+this._d|0,this._e=re+this._e|0,this._f=ie+this._f|0,this._g=ce+this._g|0,this._h=ae+this._h|0},M.prototype._hash=function(){var T=f.allocUnsafe(32);return T.writeInt32BE(this._a,0),T.writeInt32BE(this._b,4),T.writeInt32BE(this._c,8),T.writeInt32BE(this._d,12),T.writeInt32BE(this._e,16),T.writeInt32BE(this._f,20),T.writeInt32BE(this._g,24),T.writeInt32BE(this._h,28),T},ke.exports=M},6540:(ke,J,p)=>{var t=p(3894),e=p(117),f=p(6692),C=p(3502).Buffer,a=new Array(160);function M(){this.init(),this._w=a,f.call(this,128,112)}t(M,e),M.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},M.prototype._hash=function(){var d=C.allocUnsafe(48);function R(h,I,E){d.writeInt32BE(h,E),d.writeInt32BE(I,E+4)}return R(this._ah,this._al,0),R(this._bh,this._bl,8),R(this._ch,this._cl,16),R(this._dh,this._dl,24),R(this._eh,this._el,32),R(this._fh,this._fl,40),d},ke.exports=M},117:(ke,J,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,C=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function M(){this.init(),this._w=a,e.call(this,128,112)}function d(G,K,Q){return Q^G&(K^Q)}function R(G,K,Q){return G&K|Q&(G|K)}function h(G,K){return(G>>>28|K<<4)^(K>>>2|G<<30)^(K>>>7|G<<25)}function I(G,K){return(G>>>14|K<<18)^(G>>>18|K<<14)^(K>>>9|G<<23)}function E(G,K){return(G>>>1|K<<31)^(G>>>8|K<<24)^G>>>7}function L(G,K){return(G>>>1|K<<31)^(G>>>8|K<<24)^(G>>>7|K<<25)}function T(G,K){return(G>>>19|K<<13)^(K>>>29|G<<3)^G>>>6}function N(G,K){return(G>>>19|K<<13)^(K>>>29|G<<3)^(G>>>6|K<<26)}function w(G,K){return G>>>0<K>>>0?1:0}t(M,e),M.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},M.prototype._update=function(G){for(var K=this._w,Q=0|this._ah,re=0|this._bh,ie=0|this._ch,ce=0|this._dh,ae=0|this._eh,ne=0|this._fh,le=0|this._gh,ee=0|this._hh,pe=0|this._al,S=0|this._bl,i=0|this._cl,r=0|this._dl,u=0|this._el,l=0|this._fl,y=0|this._gl,D=0|this._hl,k=0;k<32;k+=2)K[k]=G.readInt32BE(4*k),K[k+1]=G.readInt32BE(4*k+4);for(;k<160;k+=2){var b=K[k-30],n=K[k-30+1],_=E(b,n),W=L(n,b),P=T(b=K[k-4],n=K[k-4+1]),U=N(n,b),Pe=K[k-32],Oe=K[k-32+1],De=W+K[k-14+1]|0,ue=_+K[k-14]+w(De,W)|0;ue=(ue=ue+P+w(De=De+U|0,U)|0)+Pe+w(De=De+Oe|0,Oe)|0,K[k]=ue,K[k+1]=De}for(var ve=0;ve<160;ve+=2){ue=K[ve],De=K[ve+1];var Ie=R(Q,re,ie),$=R(pe,S,i),Ge=h(Q,pe),ut=h(pe,Q),Ee=I(ae,u),ye=I(u,ae),he=C[ve],de=C[ve+1],we=d(ae,ne,le),Y=d(u,l,y),j=D+ye|0,Ce=ee+Ee+w(j,D)|0;Ce=(Ce=(Ce=Ce+we+w(j=j+Y|0,Y)|0)+he+w(j=j+de|0,de)|0)+ue+w(j=j+De|0,De)|0;var Se=ut+$|0,X=Ge+Ie+w(Se,ut)|0;ee=le,D=y,le=ne,y=l,ne=ae,l=u,ae=ce+Ce+w(u=r+j|0,r)|0,ce=ie,r=i,ie=re,i=S,re=Q,S=pe,Q=Ce+X+w(pe=j+Se|0,j)|0}this._al=this._al+pe|0,this._bl=this._bl+S|0,this._cl=this._cl+i|0,this._dl=this._dl+r|0,this._el=this._el+u|0,this._fl=this._fl+l|0,this._gl=this._gl+y|0,this._hl=this._hl+D|0,this._ah=this._ah+Q+w(this._al,pe)|0,this._bh=this._bh+re+w(this._bl,S)|0,this._ch=this._ch+ie+w(this._cl,i)|0,this._dh=this._dh+ce+w(this._dl,r)|0,this._eh=this._eh+ae+w(this._el,u)|0,this._fh=this._fh+ne+w(this._fl,l)|0,this._gh=this._gh+le+w(this._gl,y)|0,this._hh=this._hh+ee+w(this._hl,D)|0},M.prototype._hash=function(){var G=f.allocUnsafe(64);function K(Q,re,ie){G.writeInt32BE(Q,ie),G.writeInt32BE(re,ie+4)}return K(this._ah,this._al,0),K(this._bh,this._bl,8),K(this._ch,this._cl,16),K(this._dh,this._dl,24),K(this._eh,this._el,32),K(this._fh,this._fl,40),K(this._gh,this._gl,48),K(this._hh,this._hl,56),G},ke.exports=M},8012:function(ke,J,p){!function(t){"use strict";var e={};ke.exports?(e.bytesToHex=p(6128).bytesToHex,e.convertString=p(5612),ke.exports=R):(e.bytesToHex=t.convertHex.bytesToHex,e.convertString=t.convertString,t.sha256=R);var f=[];!function(){function h(T){for(var N=Math.sqrt(T),w=2;w<=N;w++)if(!(T%w))return!1;return!0}for(var E=2,L=0;L<64;)h(E)&&(f[L]=4294967296*((T=Math.pow(E,1/3))-(0|T))|0,L++),E++;var T}();var M=[],d=function(h,I,E){for(var L=h[0],T=h[1],N=h[2],w=h[3],G=h[4],K=h[5],Q=h[6],re=h[7],ie=0;ie<64;ie++){if(ie<16)M[ie]=0|I[E+ie];else{var ce=M[ie-15],ne=M[ie-2];M[ie]=((ce<<25|ce>>>7)^(ce<<14|ce>>>18)^ce>>>3)+M[ie-7]+((ne<<15|ne>>>17)^(ne<<13|ne>>>19)^ne>>>10)+M[ie-16]}var pe=L&T^L&N^T&N,r=re+((G<<26|G>>>6)^(G<<21|G>>>11)^(G<<7|G>>>25))+(G&K^~G&Q)+f[ie]+M[ie];re=Q,Q=K,K=G,G=w+r|0,w=N,N=T,T=L,L=r+(((L<<30|L>>>2)^(L<<19|L>>>13)^(L<<10|L>>>22))+pe)|0}h[0]=h[0]+L|0,h[1]=h[1]+T|0,h[2]=h[2]+N|0,h[3]=h[3]+w|0,h[4]=h[4]+G|0,h[5]=h[5]+K|0,h[6]=h[6]+Q|0,h[7]=h[7]+re|0};function R(h,I){h.constructor===String&&(h=e.convertString.UTF8.stringToBytes(h));var E=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],L=function(h){for(var I=[],E=0,L=0;E<h.length;E++,L+=8)I[L>>>5]|=h[E]<<24-L%32;return I}(h),T=8*h.length;L[T>>5]|=128<<24-T%32,L[15+(T+64>>9<<4)]=T;for(var N=0;N<L.length;N+=16)d(E,L,N);var w=function(h){for(var I=[],E=0;E<32*h.length;E+=8)I.push(h[E>>>5]>>>24-E%32&255);return I}(E);return I&&I.asBytes?w:I&&I.asString?e.convertString.bytesToString(w):e.bytesToHex(w)}R.x2=function(h,I){return R(R(h,{asBytes:!0}),I)}}(this)},4315:(ke,J,p)=>{"use strict";const t=Symbol.prototype.valueOf,e=p(2872);ke.exports=function f(h,I){switch(e(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function d(h){const I=h.length,E=Buffer.allocUnsafe?Buffer.allocUnsafe(I):Buffer.from(I);return h.copy(E),E}(h);case"symbol":return function R(h){return t?Object(t.call(h)):{}}(h);case"arraybuffer":return function a(h){const I=new h.constructor(h.byteLength);return new Uint8Array(I).set(new Uint8Array(h)),I}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function M(h,I){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function C(h){const I=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,E=new h.constructor(h.source,I);return E.lastIndex=h.lastIndex,E}(h);case"error":return Object.create(h);default:return h}}},295:(ke,J,p)=>{ke.exports=f;var t=p(9069).EventEmitter;function f(){t.call(this)}p(3894)(f,t),f.Readable=p(3154),f.Writable=p(520),f.Duplex=p(1339),f.Transform=p(6025),f.PassThrough=p(6071),f.finished=p(7542),f.pipeline=p(954),f.Stream=f,f.prototype.pipe=function(C,a){var M=this;function d(N){C.writable&&!1===C.write(N)&&M.pause&&M.pause()}function R(){M.readable&&M.resume&&M.resume()}M.on("data",d),C.on("drain",R),!C._isStdio&&(!a||!1!==a.end)&&(M.on("end",I),M.on("close",E));var h=!1;function I(){h||(h=!0,C.end())}function E(){h||(h=!0,"function"==typeof C.destroy&&C.destroy())}function L(N){if(T(),0===t.listenerCount(this,"error"))throw N}function T(){M.removeListener("data",d),C.removeListener("drain",R),M.removeListener("end",I),M.removeListener("close",E),M.removeListener("error",L),C.removeListener("error",L),M.removeListener("end",T),M.removeListener("close",T),C.removeListener("close",T)}return M.on("error",L),C.on("error",L),M.on("end",T),M.on("close",T),C.on("close",T),C.emit("pipe",M),C}},3054:(ke,J,p)=>{"use strict";var t=p(3502).Buffer,e=t.isEncoding||function(Q){switch((Q=""+Q)&&Q.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(Q){var re;switch(this.encoding=function C(Q){var re=function f(Q){if(!Q)return"utf8";for(var re;;)switch(Q){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 Q;default:if(re)return;Q=(""+Q).toLowerCase(),re=!0}}(Q);if("string"!=typeof re&&(t.isEncoding===e||!e(Q)))throw new Error("Unknown encoding: "+Q);return re||Q}(Q),this.encoding){case"utf16le":this.text=L,this.end=T,re=4;break;case"utf8":this.fillLast=h,re=4;break;case"base64":this.text=N,this.end=w,re=3;break;default:return this.write=G,void(this.end=K)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(re)}function M(Q){return Q<=127?0:Q>>5==6?2:Q>>4==14?3:Q>>3==30?4:Q>>6==2?-1:-2}function h(Q){var re=this.lastTotal-this.lastNeed,ie=function R(Q,re,ie){if(128!=(192&re[0]))return Q.lastNeed=0,"\ufffd";if(Q.lastNeed>1&&re.length>1){if(128!=(192&re[1]))return Q.lastNeed=1,"\ufffd";if(Q.lastNeed>2&&re.length>2&&128!=(192&re[2]))return Q.lastNeed=2,"\ufffd"}}(this,Q);return void 0!==ie?ie:this.lastNeed<=Q.length?(Q.copy(this.lastChar,re,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(Q.copy(this.lastChar,re,0,Q.length),void(this.lastNeed-=Q.length))}function L(Q,re){if((Q.length-re)%2==0){var ie=Q.toString("utf16le",re);if(ie){var ce=ie.charCodeAt(ie.length-1);if(ce>=55296&&ce<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Q[Q.length-2],this.lastChar[1]=Q[Q.length-1],ie.slice(0,-1)}return ie}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Q[Q.length-1],Q.toString("utf16le",re,Q.length-1)}function T(Q){var re=Q&&Q.length?this.write(Q):"";return this.lastNeed?re+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):re}function N(Q,re){var ie=(Q.length-re)%3;return 0===ie?Q.toString("base64",re):(this.lastNeed=3-ie,this.lastTotal=3,1===ie?this.lastChar[0]=Q[Q.length-1]:(this.lastChar[0]=Q[Q.length-2],this.lastChar[1]=Q[Q.length-1]),Q.toString("base64",re,Q.length-ie))}function w(Q){var re=Q&&Q.length?this.write(Q):"";return this.lastNeed?re+this.lastChar.toString("base64",0,3-this.lastNeed):re}function G(Q){return Q.toString(this.encoding)}function K(Q){return Q&&Q.length?this.write(Q):""}J.s=a,a.prototype.write=function(Q){if(0===Q.length)return"";var re,ie;if(this.lastNeed){if(void 0===(re=this.fillLast(Q)))return"";ie=this.lastNeed,this.lastNeed=0}else ie=0;return ie<Q.length?re?re+this.text(Q,ie):this.text(Q,ie):re||""},a.prototype.end=function E(Q){var re=Q&&Q.length?this.write(Q):"";return this.lastNeed?re+"\ufffd":re},a.prototype.text=function I(Q,re){var ie=function d(Q,re,ie){var ce=re.length-1;if(ce<ie)return 0;var ae=M(re[ce]);return ae>=0?(ae>0&&(Q.lastNeed=ae-1),ae):--ce<ie||-2===ae?0:(ae=M(re[ce]))>=0?(ae>0&&(Q.lastNeed=ae-2),ae):--ce<ie||-2===ae?0:(ae=M(re[ce]))>=0?(ae>0&&(2===ae?ae=0:Q.lastNeed=ae-3),ae):0}(this,Q,re);if(!this.lastNeed)return Q.toString("utf8",re);this.lastTotal=ie;var ce=Q.length-(ie-this.lastNeed);return Q.copy(this.lastChar,0,ce),Q.toString("utf8",re,ce)},a.prototype.fillLast=function(Q){if(this.lastNeed<=Q.length)return Q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Q.length),this.lastNeed-=Q.length}},2167:(ke,J,p)=>{var t=p(4606);J.encode=t.encode,J.decode=t.decode},4606:(ke,J)=>{"use strict";var t=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];J.encode=function(f){Buffer.isBuffer(f)||(f=new Buffer(f));for(var C=0,a=0,M=0,d=0,R=new Buffer(8*function e(f){var C=Math.floor(f.length/5);return f.length%5==0?C:C+1}(f));C<f.length;){var h=f[C];M>3?(d=(d=h&255>>M)<<(M=(M+5)%8)|(C+1<f.length?f[C+1]:0)>>8-M,C++):(d=h>>8-(M+5)&31,0==(M=(M+5)%8)&&C++),R[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(d),a++}for(C=a;C<R.length;C++)R[C]=61;return R},J.decode=function(f){var M,C=0,a=0,d=0;Buffer.isBuffer(f)||(f=new Buffer(f));for(var R=new Buffer(Math.ceil(5*f.length/8)),h=0;h<f.length&&61!==f[h];h++){var I=f[h]-48;if(!(I<t.length))throw new Error("Invalid input - it is not base32 encoded string");a=t[I],C<=3?0==(C=(C+5)%8)?(R[d]=M|=a,d++,M=0):M|=255&a<<8-C:(R[d]=M|=255&a>>>(C=(C+5)%8),d++,M=255&a<<8-C)}return R.slice(0,d)}},4364:ke=>{function p(t){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}ke.exports=function J(t,e){if(p("noDeprecation"))return t;var f=!1;return function C(){if(!f){if(p("throwDeprecation"))throw new Error(e);p("traceDeprecation")?console.trace(e):console.warn(e),f=!0}return t.apply(this,arguments)}}},655:(ke,J,p)=>{"use strict";function a(i,r,u,l){var k,y=arguments.length,D=y<3?r:null===l?l=Object.getOwnPropertyDescriptor(r,u):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)D=Reflect.decorate(i,r,u,l);else for(var b=i.length-1;b>=0;b--)(k=i[b])&&(D=(y<3?k(D):y>3?k(r,u,D):k(r,u))||D);return y>3&&D&&Object.defineProperty(r,u,D),D}function R(i,r,u,l){return new(u||(u=Promise))(function(D,k){function b(W){try{_(l.next(W))}catch(P){k(P)}}function n(W){try{_(l.throw(W))}catch(P){k(P)}}function _(W){W.done?D(W.value):function y(D){return D instanceof u?D:new u(function(k){k(D)})}(W.value).then(b,n)}_((l=l.apply(i,r||[])).next())})}function K(i){return this instanceof K?(this.v=i,this):new K(i)}function Q(i,r,u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y,l=u.apply(i,r||[]),D=[];return y={},k("next"),k("throw"),k("return"),y[Symbol.asyncIterator]=function(){return this},y;function k(U){l[U]&&(y[U]=function(me){return new Promise(function(nt,Pe){D.push([U,me,nt,Pe])>1||b(U,me)})})}function b(U,me){try{!function n(U){U.value instanceof K?Promise.resolve(U.value.v).then(_,W):P(D[0][2],U)}(l[U](me))}catch(nt){P(D[0][3],nt)}}function _(U){b("next",U)}function W(U){b("throw",U)}function P(U,me){U(me),D.shift(),D.length&&b(D[0][0],D[0][1])}}function ie(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,r=i[Symbol.asyncIterator];return r?r.call(i):(i=function L(i){var r="function"==typeof Symbol&&Symbol.iterator,u=r&&i[r],l=0;if(u)return u.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&l>=i.length&&(i=void 0),{value:i&&i[l++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),u={},l("next"),l("throw"),l("return"),u[Symbol.asyncIterator]=function(){return this},u);function l(D){u[D]=i[D]&&function(k){return new Promise(function(b,n){!function y(D,k,b,n){Promise.resolve(n).then(function(_){D({value:_,done:b})},k)}(b,n,(k=i[D](k)).done,k.value)})}}}p.d(J,{FC:()=>Q,KL:()=>ie,gn:()=>a,mG:()=>R,qq:()=>K})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},7340:(ke,J,p)=>{"use strict";p.d(J,{F4:()=>I,IO:()=>w,LC:()=>e,SB:()=>h,X$:()=>C,ZE:()=>re,ZN:()=>Q,_j:()=>t,eR:()=>E,jt:()=>a,k1:()=>ie,l3:()=>f,oB:()=>R,pV:()=>T,ru:()=>M,vP:()=>d});class t{}class e{}const f="*";function C(ce,ae){return{type:7,name:ce,definitions:ae,options:{}}}function a(ce,ae=null){return{type:4,styles:ae,timings:ce}}function M(ce,ae=null){return{type:3,steps:ce,options:ae}}function d(ce,ae=null){return{type:2,steps:ce,options:ae}}function R(ce){return{type:6,styles:ce,offset:null}}function h(ce,ae,ne){return{type:0,name:ce,styles:ae,options:ne}}function I(ce){return{type:5,steps:ce}}function E(ce,ae,ne=null){return{type:1,expr:ce,animation:ae,options:ne}}function T(ce=null){return{type:9,options:ce}}function w(ce,ae,ne=null){return{type:11,selector:ce,animation:ae,options:ne}}function K(ce){Promise.resolve().then(ce)}class Q{constructor(ae=0,ne=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ae+ne}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ae=>ae()),this._onDoneFns=[])}onStart(ae){this._originalOnStartFns.push(ae),this._onStartFns.push(ae)}onDone(ae){this._originalOnDoneFns.push(ae),this._onDoneFns.push(ae)}onDestroy(ae){this._onDestroyFns.push(ae)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){K(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ae=>ae()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ae=>ae()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(ae){this._position=this.totalTime?ae*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ae){const ne="start"==ae?this._onStartFns:this._onDoneFns;ne.forEach(le=>le()),ne.length=0}}class re{constructor(ae){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ae;let ne=0,le=0,ee=0;const pe=this.players.length;0==pe?K(()=>this._onFinish()):this.players.forEach(S=>{S.onDone(()=>{++ne==pe&&this._onFinish()}),S.onDestroy(()=>{++le==pe&&this._onDestroy()}),S.onStart(()=>{++ee==pe&&this._onStart()})}),this.totalTime=this.players.reduce((S,i)=>Math.max(S,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ae=>ae()),this._onDoneFns=[])}init(){this.players.forEach(ae=>ae.init())}onStart(ae){this._onStartFns.push(ae)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ae=>ae()),this._onStartFns=[])}onDone(ae){this._onDoneFns.push(ae)}onDestroy(ae){this._onDestroyFns.push(ae)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ae=>ae.play())}pause(){this.players.forEach(ae=>ae.pause())}restart(){this.players.forEach(ae=>ae.restart())}finish(){this._onFinish(),this.players.forEach(ae=>ae.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ae=>ae.destroy()),this._onDestroyFns.forEach(ae=>ae()),this._onDestroyFns=[])}reset(){this.players.forEach(ae=>ae.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ae){const ne=ae*this.totalTime;this.players.forEach(le=>{const ee=le.totalTime?Math.min(1,ne/le.totalTime):1;le.setPosition(ee)})}getPosition(){const ae=this.players.reduce((ne,le)=>null===ne||le.totalTime>ne.totalTime?le:ne,null);return null!=ae?ae.getPosition():0}beforeDestroy(){this.players.forEach(ae=>{ae.beforeDestroy&&ae.beforeDestroy()})}triggerCallback(ae){const ne="start"==ae?this._onStartFns:this._onDoneFns;ne.forEach(le=>le()),ne.length=0}}const ie="!"},4761:(ke,J,p)=>{"use strict";p.d(J,{$s:()=>i,Em:()=>D,Kd:()=>Rt,X6:()=>we,ic:()=>b,kH:()=>pt,mK:()=>Ge,qV:()=>$,qm:()=>dt,rt:()=>ze,s1:()=>y,tE:()=>Pt,yG:()=>Y});var t=p(6895),e=p(4650),f=p(3353),C=p(7579),a=p(727),M=p(1135),d=p(9646),R=p(9521),h=p(8505),I=p(8372),E=p(9300),L=p(4004),T=p(5698),N=p(5684),w=p(1884),G=p(2722),K=p(1281),Q=p(9643),re=p(2289);function ne(Ve,Fe){return(Ve.getAttribute(Fe)||"").match(/\S+/g)||[]}const ee="cdk-describedby-message",pe="cdk-describedby-host";let S=0,i=(()=>{class Ve{constructor(be,xt){this._platform=xt,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+S++,this._document=be,this._id=(0,e.f3M)(e.AFp)+"-"+S++}describe(be,xt,ct){if(!this._canBeDescribed(be,xt))return;const Nt=r(xt,ct);"string"!=typeof xt?(u(xt,this._id),this._messageRegistry.set(Nt,{messageElement:xt,referenceCount:0})):this._messageRegistry.has(Nt)||this._createMessageElement(xt,ct),this._isElementDescribedByMessage(be,Nt)||this._addMessageReference(be,Nt)}removeDescription(be,xt,ct){if(!xt||!this._isElementNode(be))return;const Nt=r(xt,ct);if(this._isElementDescribedByMessage(be,Nt)&&this._removeMessageReference(be,Nt),"string"==typeof xt){const et=this._messageRegistry.get(Nt);et&&0===et.referenceCount&&this._deleteMessageElement(Nt)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const be=this._document.querySelectorAll(`[${pe}="${this._id}"]`);for(let xt=0;xt<be.length;xt++)this._removeCdkDescribedByReferenceIds(be[xt]),be[xt].removeAttribute(pe);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(be,xt){const ct=this._document.createElement("div");u(ct,this._id),ct.textContent=be,xt&&ct.setAttribute("role",xt),this._createMessagesContainer(),this._messagesContainer.appendChild(ct),this._messageRegistry.set(r(be,xt),{messageElement:ct,referenceCount:0})}_deleteMessageElement(be){this._messageRegistry.get(be)?.messageElement?.remove(),this._messageRegistry.delete(be)}_createMessagesContainer(){if(this._messagesContainer)return;const be="cdk-describedby-message-container",xt=this._document.querySelectorAll(`.${be}[platform="server"]`);for(let Nt=0;Nt<xt.length;Nt++)xt[Nt].remove();const ct=this._document.createElement("div");ct.style.visibility="hidden",ct.classList.add(be),ct.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&ct.setAttribute("platform","server"),this._document.body.appendChild(ct),this._messagesContainer=ct}_removeCdkDescribedByReferenceIds(be){const xt=ne(be,"aria-describedby").filter(ct=>0!=ct.indexOf(ee));be.setAttribute("aria-describedby",xt.join(" "))}_addMessageReference(be,xt){const ct=this._messageRegistry.get(xt);(function ce(Ve,Fe,be){const xt=ne(Ve,Fe);xt.some(ct=>ct.trim()==be.trim())||(xt.push(be.trim()),Ve.setAttribute(Fe,xt.join(" ")))})(be,"aria-describedby",ct.messageElement.id),be.setAttribute(pe,this._id),ct.referenceCount++}_removeMessageReference(be,xt){const ct=this._messageRegistry.get(xt);ct.referenceCount--,function ae(Ve,Fe,be){const ct=ne(Ve,Fe).filter(Nt=>Nt!=be.trim());ct.length?Ve.setAttribute(Fe,ct.join(" ")):Ve.removeAttribute(Fe)}(be,"aria-describedby",ct.messageElement.id),be.removeAttribute(pe)}_isElementDescribedByMessage(be,xt){const ct=ne(be,"aria-describedby"),Nt=this._messageRegistry.get(xt),et=Nt&&Nt.messageElement.id;return!!et&&-1!=ct.indexOf(et)}_canBeDescribed(be,xt){if(!this._isElementNode(be))return!1;if(xt&&"object"==typeof xt)return!0;const ct=null==xt?"":`${xt}`.trim(),Nt=be.getAttribute("aria-label");return!(!ct||Nt&&Nt.trim()===ct)}_isElementNode(be){return be.nodeType===this._document.ELEMENT_NODE}}return Ve.\u0275fac=function(be){return new(be||Ve)(e.LFG(t.K0),e.LFG(f.t4))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();function r(Ve,Fe){return"string"==typeof Ve?`${Fe||""}/${Ve}`:Ve}function u(Ve,Fe){Ve.id||(Ve.id=`${ee}-${Fe}-${S++}`)}class l{constructor(Fe){this._items=Fe,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new C.x,this._typeaheadSubscription=a.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=be=>be.disabled,this._pressedLetters=[],this.tabOut=new C.x,this.change=new C.x,Fe instanceof e.n_E&&Fe.changes.subscribe(be=>{if(this._activeItem){const ct=be.toArray().indexOf(this._activeItem);ct>-1&&ct!==this._activeItemIndex&&(this._activeItemIndex=ct)}})}skipPredicate(Fe){return this._skipPredicateFn=Fe,this}withWrap(Fe=!0){return this._wrap=Fe,this}withVerticalOrientation(Fe=!0){return this._vertical=Fe,this}withHorizontalOrientation(Fe){return this._horizontal=Fe,this}withAllowedModifierKeys(Fe){return this._allowedModifierKeys=Fe,this}withTypeAhead(Fe=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,h.b)(be=>this._pressedLetters.push(be)),(0,I.b)(Fe),(0,E.h)(()=>this._pressedLetters.length>0),(0,L.U)(()=>this._pressedLetters.join(""))).subscribe(be=>{const xt=this._getItemsArray();for(let ct=1;ct<xt.length+1;ct++){const Nt=(this._activeItemIndex+ct)%xt.length,et=xt[Nt];if(!this._skipPredicateFn(et)&&0===et.getLabel().toUpperCase().trim().indexOf(be)){this.setActiveItem(Nt);break}}this._pressedLetters=[]}),this}withHomeAndEnd(Fe=!0){return this._homeAndEnd=Fe,this}setActiveItem(Fe){const be=this._activeItem;this.updateActiveItem(Fe),this._activeItem!==be&&this.change.next(this._activeItemIndex)}onKeydown(Fe){const be=Fe.keyCode,ct=["altKey","ctrlKey","metaKey","shiftKey"].every(Nt=>!Fe[Nt]||this._allowedModifierKeys.indexOf(Nt)>-1);switch(be){case R.Mf:return void this.tabOut.next();case R.JH:if(this._vertical&&ct){this.setNextItemActive();break}return;case R.LH:if(this._vertical&&ct){this.setPreviousItemActive();break}return;case R.SV:if(this._horizontal&&ct){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case R.oh:if(this._horizontal&&ct){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case R.Sd:if(this._homeAndEnd&&ct){this.setFirstItemActive();break}return;case R.uR:if(this._homeAndEnd&&ct){this.setLastItemActive();break}return;default:return void((ct||(0,R.Vb)(Fe,"shiftKey"))&&(Fe.key&&1===Fe.key.length?this._letterKeyStream.next(Fe.key.toLocaleUpperCase()):(be>=R.A&&be<=R.Z||be>=R.xE&&be<=R.aO)&&this._letterKeyStream.next(String.fromCharCode(be))))}this._pressedLetters=[],Fe.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Fe){const be=this._getItemsArray(),xt="number"==typeof Fe?Fe:be.indexOf(Fe);this._activeItem=be[xt]??null,this._activeItemIndex=xt}_setActiveItemByDelta(Fe){this._wrap?this._setActiveInWrapMode(Fe):this._setActiveInDefaultMode(Fe)}_setActiveInWrapMode(Fe){const be=this._getItemsArray();for(let xt=1;xt<=be.length;xt++){const ct=(this._activeItemIndex+Fe*xt+be.length)%be.length;if(!this._skipPredicateFn(be[ct]))return void this.setActiveItem(ct)}}_setActiveInDefaultMode(Fe){this._setActiveItemByIndex(this._activeItemIndex+Fe,Fe)}_setActiveItemByIndex(Fe,be){const xt=this._getItemsArray();if(xt[Fe]){for(;this._skipPredicateFn(xt[Fe]);)if(!xt[Fe+=be])return;this.setActiveItem(Fe)}}_getItemsArray(){return this._items instanceof e.n_E?this._items.toArray():this._items}}class y extends l{setActiveItem(Fe){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Fe),this.activeItem&&this.activeItem.setActiveStyles()}}class D extends l{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Fe){return this._origin=Fe,this}setActiveItem(Fe){super.setActiveItem(Fe),this.activeItem&&this.activeItem.focus(this._origin)}}let b=(()=>{class Ve{constructor(be){this._platform=be}isDisabled(be){return be.hasAttribute("disabled")}isVisible(be){return function _(Ve){return!!(Ve.offsetWidth||Ve.offsetHeight||"function"==typeof Ve.getClientRects&&Ve.getClientRects().length)}(be)&&"visible"===getComputedStyle(be).visibility}isTabbable(be){if(!this._platform.isBrowser)return!1;const xt=function n(Ve){try{return Ve.frameElement}catch{return null}}(function ve(Ve){return Ve.ownerDocument&&Ve.ownerDocument.defaultView||window}(be));if(xt&&(-1===Oe(xt)||!this.isVisible(xt)))return!1;let ct=be.nodeName.toLowerCase(),Nt=Oe(be);return be.hasAttribute("contenteditable")?-1!==Nt:!("iframe"===ct||"object"===ct||this._platform.WEBKIT&&this._platform.IOS&&!function De(Ve){let Fe=Ve.nodeName.toLowerCase(),be="input"===Fe&&Ve.type;return"text"===be||"password"===be||"select"===Fe||"textarea"===Fe}(be))&&("audio"===ct?!!be.hasAttribute("controls")&&-1!==Nt:"video"===ct?-1!==Nt&&(null!==Nt||this._platform.FIREFOX||be.hasAttribute("controls")):be.tabIndex>=0)}isFocusable(be,xt){return function ue(Ve){return!function P(Ve){return function me(Ve){return"input"==Ve.nodeName.toLowerCase()}(Ve)&&"hidden"==Ve.type}(Ve)&&(function W(Ve){let Fe=Ve.nodeName.toLowerCase();return"input"===Fe||"select"===Fe||"button"===Fe||"textarea"===Fe}(Ve)||function U(Ve){return function nt(Ve){return"a"==Ve.nodeName.toLowerCase()}(Ve)&&Ve.hasAttribute("href")}(Ve)||Ve.hasAttribute("contenteditable")||Pe(Ve))}(be)&&!this.isDisabled(be)&&(xt?.ignoreVisibility||this.isVisible(be))}}return Ve.\u0275fac=function(be){return new(be||Ve)(e.LFG(f.t4))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();function Pe(Ve){if(!Ve.hasAttribute("tabindex")||void 0===Ve.tabIndex)return!1;let Fe=Ve.getAttribute("tabindex");return!(!Fe||isNaN(parseInt(Fe,10)))}function Oe(Ve){if(!Pe(Ve))return null;const Fe=parseInt(Ve.getAttribute("tabindex")||"",10);return isNaN(Fe)?-1:Fe}class Ie{constructor(Fe,be,xt,ct,Nt=!1){this._element=Fe,this._checker=be,this._ngZone=xt,this._document=ct,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Nt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Fe){this._enabled=Fe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Fe,this._startAnchor),this._toggleAnchorTabIndex(Fe,this._endAnchor))}destroy(){const Fe=this._startAnchor,be=this._endAnchor;Fe&&(Fe.removeEventListener("focus",this.startAnchorListener),Fe.remove()),be&&(be.removeEventListener("focus",this.endAnchorListener),be.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(Fe){return new Promise(be=>{this._executeOnStable(()=>be(this.focusInitialElement(Fe)))})}focusFirstTabbableElementWhenReady(Fe){return new Promise(be=>{this._executeOnStable(()=>be(this.focusFirstTabbableElement(Fe)))})}focusLastTabbableElementWhenReady(Fe){return new Promise(be=>{this._executeOnStable(()=>be(this.focusLastTabbableElement(Fe)))})}_getRegionBoundary(Fe){const be=this._element.querySelectorAll(`[cdk-focus-region-${Fe}], [cdkFocusRegion${Fe}], [cdk-focus-${Fe}]`);return"start"==Fe?be.length?be[0]:this._getFirstTabbableElement(this._element):be.length?be[be.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Fe){const be=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(be){if(!this._checker.isFocusable(be)){const xt=this._getFirstTabbableElement(be);return xt?.focus(Fe),!!xt}return be.focus(Fe),!0}return this.focusFirstTabbableElement(Fe)}focusFirstTabbableElement(Fe){const be=this._getRegionBoundary("start");return be&&be.focus(Fe),!!be}focusLastTabbableElement(Fe){const be=this._getRegionBoundary("end");return be&&be.focus(Fe),!!be}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Fe){if(this._checker.isFocusable(Fe)&&this._checker.isTabbable(Fe))return Fe;const be=Fe.children;for(let xt=0;xt<be.length;xt++){const ct=be[xt].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(be[xt]):null;if(ct)return ct}return null}_getLastTabbableElement(Fe){if(this._checker.isFocusable(Fe)&&this._checker.isTabbable(Fe))return Fe;const be=Fe.children;for(let xt=be.length-1;xt>=0;xt--){const ct=be[xt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(be[xt]):null;if(ct)return ct}return null}_createAnchor(){const Fe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Fe),Fe.classList.add("cdk-visually-hidden"),Fe.classList.add("cdk-focus-trap-anchor"),Fe.setAttribute("aria-hidden","true"),Fe}_toggleAnchorTabIndex(Fe,be){Fe?be.setAttribute("tabindex","0"):be.removeAttribute("tabindex")}toggleAnchors(Fe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Fe,this._startAnchor),this._toggleAnchorTabIndex(Fe,this._endAnchor))}_executeOnStable(Fe){this._ngZone.isStable?Fe():this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(Fe)}}let $=(()=>{class Ve{constructor(be,xt,ct){this._checker=be,this._ngZone=xt,this._document=ct}create(be,xt=!1){return new Ie(be,this._checker,this._ngZone,this._document,xt)}}return Ve.\u0275fac=function(be){return new(be||Ve)(e.LFG(b),e.LFG(e.R0b),e.LFG(t.K0))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),Ge=(()=>{class Ve{constructor(be,xt,ct){this._elementRef=be,this._focusTrapFactory=xt,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(be){this.focusTrap.enabled=(0,K.Ig)(be)}get autoCapture(){return this._autoCapture}set autoCapture(be){this._autoCapture=(0,K.Ig)(be)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(be){const xt=be.autoCapture;xt&&!xt.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,f.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Ve.\u0275fac=function(be){return new(be||Ve)(e.Y36(e.SBq),e.Y36($),e.Y36(t.K0))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[e.TTD]}),Ve})();function we(Ve){return 0===Ve.buttons||0===Ve.offsetX&&0===Ve.offsetY}function Y(Ve){const Fe=Ve.touches&&Ve.touches[0]||Ve.changedTouches&&Ve.changedTouches[0];return!(!Fe||-1!==Fe.identifier||null!=Fe.radiusX&&1!==Fe.radiusX||null!=Fe.radiusY&&1!==Fe.radiusY)}const j=new e.OlP("cdk-input-modality-detector-options"),Ce={ignoreKeys:[R.zL,R.jx,R.b2,R.MW,R.JU]},X=(0,f.i$)({passive:!0,capture:!0});let Ye=(()=>{class Ve{constructor(be,xt,ct,Nt){this._platform=be,this._mostRecentTarget=null,this._modality=new M.X(null),this._lastTouchMs=0,this._onKeydown=et=>{this._options?.ignoreKeys?.some(Ae=>Ae===et.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,f.sA)(et))},this._onMousedown=et=>{Date.now()-this._lastTouchMs<650||(this._modality.next(we(et)?"keyboard":"mouse"),this._mostRecentTarget=(0,f.sA)(et))},this._onTouchstart=et=>{Y(et)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,f.sA)(et))},this._options={...Ce,...Nt},this.modalityDetected=this._modality.pipe((0,N.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,w.x)()),be.isBrowser&&xt.runOutsideAngular(()=>{ct.addEventListener("keydown",this._onKeydown,X),ct.addEventListener("mousedown",this._onMousedown,X),ct.addEventListener("touchstart",this._onTouchstart,X)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,X),document.removeEventListener("mousedown",this._onMousedown,X),document.removeEventListener("touchstart",this._onTouchstart,X))}}return Ve.\u0275fac=function(be){return new(be||Ve)(e.LFG(f.t4),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(j,8))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();const Le=new e.OlP("liveAnnouncerElement",{providedIn:"root",factory:function gt(){return null}}),Wt=new e.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Rt=(()=>{class Ve{constructor(be,xt,ct,Nt){this._ngZone=xt,this._defaultOptions=Nt,this._document=ct,this._liveElement=be||this._createLiveElement()}announce(be,...xt){const ct=this._defaultOptions;let Nt,et;return 1===xt.length&&"number"==typeof xt[0]?et=xt[0]:[Nt,et]=xt,this.clear(),clearTimeout(this._previousTimeout),Nt||(Nt=ct&&ct.politeness?ct.politeness:"polite"),null==et&&ct&&(et=ct.duration),this._liveElement.setAttribute("aria-live",Nt),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Ae=>this._currentResolve=Ae)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=be,"number"==typeof et&&(this._previousTimeout=setTimeout(()=>this.clear(),et)),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 be="cdk-live-announcer-element",xt=this._document.getElementsByClassName(be),ct=this._document.createElement("div");for(let Nt=0;Nt<xt.length;Nt++)xt[Nt].remove();return ct.classList.add(be),ct.classList.add("cdk-visually-hidden"),ct.setAttribute("aria-atomic","true"),ct.setAttribute("aria-live","polite"),this._document.body.appendChild(ct),ct}}return Ve.\u0275fac=function(be){return new(be||Ve)(e.LFG(Le,8),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(Wt,8))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();const hi=new e.OlP("cdk-focus-monitor-default-options"),yt=(0,f.i$)({passive:!0,capture:!0});let Pt=(()=>{class Ve{constructor(be,xt,ct,Nt,et){this._ngZone=be,this._platform=xt,this._inputModalityDetector=ct,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new C.x,this._rootNodeFocusAndBlurListener=Ae=>{for(let Qe=(0,f.sA)(Ae);Qe;Qe=Qe.parentElement)"focus"===Ae.type?this._onFocus(Ae,Qe):this._onBlur(Ae,Qe)},this._document=Nt,this._detectionMode=et?.detectionMode||0}monitor(be,xt=!1){const ct=(0,K.fI)(be);if(!this._platform.isBrowser||1!==ct.nodeType)return(0,d.of)(null);const Nt=(0,f.kV)(ct)||this._getDocument(),et=this._elementInfo.get(ct);if(et)return xt&&(et.checkChildren=!0),et.subject;const Ae={checkChildren:xt,subject:new C.x,rootNode:Nt};return this._elementInfo.set(ct,Ae),this._registerGlobalListeners(Ae),Ae.subject}stopMonitoring(be){const xt=(0,K.fI)(be),ct=this._elementInfo.get(xt);ct&&(ct.subject.complete(),this._setClasses(xt),this._elementInfo.delete(xt),this._removeGlobalListeners(ct))}focusVia(be,xt,ct){const Nt=(0,K.fI)(be);Nt===this._getDocument().activeElement?this._getClosestElementsInfo(Nt).forEach(([Ae,rt])=>this._originChanged(Ae,xt,rt)):(this._setOrigin(xt),"function"==typeof Nt.focus&&Nt.focus(ct))}ngOnDestroy(){this._elementInfo.forEach((be,xt)=>this.stopMonitoring(xt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(be){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(be)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:be&&this._isLastInteractionFromInputLabel(be)?"mouse":"program"}_shouldBeAttributedToTouch(be){return 1===this._detectionMode||!!be?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(be,xt){be.classList.toggle("cdk-focused",!!xt),be.classList.toggle("cdk-touch-focused","touch"===xt),be.classList.toggle("cdk-keyboard-focused","keyboard"===xt),be.classList.toggle("cdk-mouse-focused","mouse"===xt),be.classList.toggle("cdk-program-focused","program"===xt)}_setOrigin(be,xt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=be,this._originFromTouchInteraction="touch"===be&&xt,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(be,xt){const ct=this._elementInfo.get(xt),Nt=(0,f.sA)(be);!ct||!ct.checkChildren&&xt!==Nt||this._originChanged(xt,this._getFocusOrigin(Nt),ct)}_onBlur(be,xt){const ct=this._elementInfo.get(xt);!ct||ct.checkChildren&&be.relatedTarget instanceof Node&&xt.contains(be.relatedTarget)||(this._setClasses(xt),this._emitOrigin(ct,null))}_emitOrigin(be,xt){be.subject.observers.length&&this._ngZone.run(()=>be.subject.next(xt))}_registerGlobalListeners(be){if(!this._platform.isBrowser)return;const xt=be.rootNode,ct=this._rootNodeFocusListenerCount.get(xt)||0;ct||this._ngZone.runOutsideAngular(()=>{xt.addEventListener("focus",this._rootNodeFocusAndBlurListener,yt),xt.addEventListener("blur",this._rootNodeFocusAndBlurListener,yt)}),this._rootNodeFocusListenerCount.set(xt,ct+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,G.R)(this._stopInputModalityDetector)).subscribe(Nt=>{this._setOrigin(Nt,!0)}))}_removeGlobalListeners(be){const xt=be.rootNode;if(this._rootNodeFocusListenerCount.has(xt)){const ct=this._rootNodeFocusListenerCount.get(xt);ct>1?this._rootNodeFocusListenerCount.set(xt,ct-1):(xt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,yt),xt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,yt),this._rootNodeFocusListenerCount.delete(xt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(be,xt,ct){this._setClasses(be,xt),this._emitOrigin(ct,xt),this._lastFocusOrigin=xt}_getClosestElementsInfo(be){const xt=[];return this._elementInfo.forEach((ct,Nt)=>{(Nt===be||ct.checkChildren&&Nt.contains(be))&&xt.push([Nt,ct])}),xt}_isLastInteractionFromInputLabel(be){const{_mostRecentTarget:xt,mostRecentModality:ct}=this._inputModalityDetector;if("mouse"!==ct||!xt||xt===be||"INPUT"!==be.nodeName&&"TEXTAREA"!==be.nodeName||be.disabled)return!1;const Nt=be.labels;if(Nt)for(let et=0;et<Nt.length;et++)if(Nt[et].contains(xt))return!0;return!1}}return Ve.\u0275fac=function(be){return new(be||Ve)(e.LFG(e.R0b),e.LFG(f.t4),e.LFG(Ye),e.LFG(t.K0,8),e.LFG(hi,8))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),pt=(()=>{class Ve{constructor(be,xt){this._elementRef=be,this._focusMonitor=xt,this._focusOrigin=null,this.cdkFocusChange=new e.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const be=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(be,1===be.nodeType&&be.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(xt=>{this._focusOrigin=xt,this.cdkFocusChange.emit(xt)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ve.\u0275fac=function(be){return new(be||Ve)(e.Y36(e.SBq),e.Y36(Pt))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),Ve})();const vt="cdk-high-contrast-black-on-white",Ct="cdk-high-contrast-white-on-black",At="cdk-high-contrast-active";let dt=(()=>{class Ve{constructor(be,xt){this._platform=be,this._document=xt,this._breakpointSubscription=(0,e.f3M)(re.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const be=this._document.createElement("div");be.style.backgroundColor="rgb(1,2,3)",be.style.position="absolute",this._document.body.appendChild(be);const xt=this._document.defaultView||window,ct=xt&&xt.getComputedStyle?xt.getComputedStyle(be):null,Nt=(ct&&ct.backgroundColor||"").replace(/ /g,"");switch(be.remove(),Nt){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const be=this._document.body.classList;be.remove(At,vt,Ct),this._hasCheckedHighContrastMode=!0;const xt=this.getHighContrastMode();1===xt?be.add(At,vt):2===xt&&be.add(At,Ct)}}}return Ve.\u0275fac=function(be){return new(be||Ve)(e.LFG(f.t4),e.LFG(t.K0))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),ze=(()=>{class Ve{constructor(be){be._applyBodyHighContrastModeCssClasses()}}return Ve.\u0275fac=function(be){return new(be||Ve)(e.LFG(dt))},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[Q.Q8]}),Ve})()},445:(ke,J,p)=>{"use strict";p.d(J,{Is:()=>d,vT:()=>h});var t=p(4650),e=p(6895);const f=new t.OlP("cdk-dir-doc",{providedIn:"root",factory:function C(){return(0,t.f3M)(e.K0)}}),a=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let d=(()=>{class I{constructor(L){if(this.value="ltr",this.change=new t.vpe,L){const N=L.documentElement?L.documentElement.dir:null;this.value=function M(I){const E=I?.toLowerCase()||"";return"auto"===E&&typeof navigator<"u"&&navigator?.language?a.test(navigator.language)?"rtl":"ltr":"rtl"===E?"rtl":"ltr"}((L.body?L.body.dir:null)||N||"ltr")}}ngOnDestroy(){this.change.complete()}}return I.\u0275fac=function(L){return new(L||I)(t.LFG(f,8))},I.\u0275prov=t.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})(),h=(()=>{class I{}return I.\u0275fac=function(L){return new(L||I)},I.\u0275mod=t.oAB({type:I}),I.\u0275inj=t.cJS({}),I})()},1281:(ke,J,p)=>{"use strict";p.d(J,{Eq:()=>a,HM:()=>M,Ig:()=>e,du:()=>R,fI:()=>d,su:()=>f,t6:()=>C});var t=p(4650);function e(h){return null!=h&&"false"!=`${h}`}function f(h,I=0){return C(h)?Number(h):I}function C(h){return!isNaN(parseFloat(h))&&!isNaN(Number(h))}function a(h){return Array.isArray(h)?h:[h]}function M(h){return null==h?"":"string"==typeof h?h:`${h}px`}function d(h){return h instanceof t.SBq?h.nativeElement:h}function R(h,I=/\s+/){const E=[];if(null!=h){const L=Array.isArray(h)?h:`${h}`.split(I);for(const T of L){const N=`${T}`.trim();N&&E.push(N)}}return E}},5017:(ke,J,p)=>{"use strict";p.d(J,{A8:()=>E,Ov:()=>h,Z9:()=>a,eX:()=>R,k:()=>L,o2:()=>C,yy:()=>d});var t=p(4033),e=p(7579),f=p(4650);class C{}function a(T){return T&&"function"==typeof T.connect&&!(T instanceof t.c)}class d{applyChanges(N,w,G,K,Q){N.forEachOperation((re,ie,ce)=>{let ae,ne;if(null==re.previousIndex){const le=G(re,ie,ce);ae=w.createEmbeddedView(le.templateRef,le.context,le.index),ne=1}else null==ce?(w.remove(ie),ne=3):(ae=w.get(ie),w.move(ae,ce),ne=2);Q&&Q({context:ae?.context,operation:ne,record:re})})}detach(){}}class R{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(N,w,G,K,Q){N.forEachOperation((re,ie,ce)=>{let ae,ne;null==re.previousIndex?(ae=this._insertView(()=>G(re,ie,ce),ce,w,K(re)),ne=ae?1:0):null==ce?(this._detachAndCacheView(ie,w),ne=3):(ae=this._moveView(ie,ce,w,K(re)),ne=2),Q&&Q({context:ae?.context,operation:ne,record:re})})}detach(){for(const N of this._viewCache)N.destroy();this._viewCache=[]}_insertView(N,w,G,K){const Q=this._insertViewFromCache(w,G);if(Q)return void(Q.context.$implicit=K);const re=N();return G.createEmbeddedView(re.templateRef,re.context,re.index)}_detachAndCacheView(N,w){const G=w.detach(N);this._maybeCacheView(G,w)}_moveView(N,w,G,K){const Q=G.get(N);return G.move(Q,w),Q.context.$implicit=K,Q}_maybeCacheView(N,w){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(N);else{const G=w.indexOf(N);-1===G?N.destroy():w.remove(G)}}_insertViewFromCache(N,w){const G=this._viewCache.pop();return G&&w.insert(G,N),G||null}}class h{constructor(N=!1,w,G=!0,K){this._multiple=N,this._emitChanges=G,this.compareWith=K,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new e.x,w&&w.length&&(N?w.forEach(Q=>this._markSelected(Q)):this._markSelected(w[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...N){this._verifyValueAssignment(N),N.forEach(G=>this._markSelected(G));const w=this._hasQueuedChanges();return this._emitChangeEvent(),w}deselect(...N){this._verifyValueAssignment(N),N.forEach(G=>this._unmarkSelected(G));const w=this._hasQueuedChanges();return this._emitChangeEvent(),w}setSelection(...N){this._verifyValueAssignment(N);const w=this.selected,G=new Set(N);N.forEach(Q=>this._markSelected(Q)),w.filter(Q=>!G.has(Q)).forEach(Q=>this._unmarkSelected(Q));const K=this._hasQueuedChanges();return this._emitChangeEvent(),K}toggle(N){return this.isSelected(N)?this.deselect(N):this.select(N)}clear(N=!0){this._unmarkAll();const w=this._hasQueuedChanges();return N&&this._emitChangeEvent(),w}isSelected(N){if(this.compareWith){for(const w of this._selection)if(this.compareWith(w,N))return!0;return!1}return this._selection.has(N)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(N){this._multiple&&this.selected&&this._selected.sort(N)}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(N){this.isSelected(N)||(this._multiple||this._unmarkAll(),this.isSelected(N)||this._selection.add(N),this._emitChanges&&this._selectedToEmit.push(N))}_unmarkSelected(N){this.isSelected(N)&&(this._selection.delete(N),this._emitChanges&&this._deselectedToEmit.push(N))}_unmarkAll(){this.isEmpty()||this._selection.forEach(N=>this._unmarkSelected(N))}_verifyValueAssignment(N){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let E=(()=>{class T{constructor(){this._listeners=[]}notify(w,G){for(let K of this._listeners)K(w,G)}listen(w){return this._listeners.push(w),()=>{this._listeners=this._listeners.filter(G=>w!==G)}}ngOnDestroy(){this._listeners=[]}}return T.\u0275fac=function(w){return new(w||T)},T.\u0275prov=f.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})();const L=new f.OlP("_ViewRepeater")},9521:(ke,J,p)=>{"use strict";p.d(J,{A:()=>P,JH:()=>ie,JU:()=>M,K5:()=>a,Ku:()=>T,LH:()=>Q,L_:()=>L,MW:()=>Wt,Mf:()=>f,SV:()=>re,Sd:()=>G,VM:()=>N,Vb:()=>Bt,Z:()=>gt,ZH:()=>e,aO:()=>k,b2:()=>ot,hY:()=>E,jx:()=>d,oh:()=>K,uR:()=>w,xE:()=>ee,yY:()=>le,zL:()=>R});const e=8,f=9,a=13,M=16,d=17,R=18,E=27,L=32,T=33,N=34,w=35,G=36,K=37,Q=38,re=39,ie=40,le=46,ee=48,k=57,P=65,gt=90,Wt=91,ot=224;function Bt(Xt,...fi){return fi.length?fi.some(Li=>Xt[Li]):Xt.altKey||Xt.shiftKey||Xt.ctrlKey||Xt.metaKey}},2289:(ke,J,p)=>{"use strict";p.d(J,{Yg:()=>ie,u3:()=>ae,xu:()=>N});var t=p(4650),e=p(1281),f=p(7579),C=p(9841),a=p(7272),M=p(9751),d=p(5698),R=p(5684),h=p(8372),I=p(4004),E=p(8675),L=p(2722),T=p(3353);let N=(()=>{class ne{}return ne.\u0275fac=function(ee){return new(ee||ne)},ne.\u0275mod=t.oAB({type:ne}),ne.\u0275inj=t.cJS({}),ne})();const w=new Set;let G,K=(()=>{class ne{constructor(ee){this._platform=ee,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):re}matchMedia(ee){return(this._platform.WEBKIT||this._platform.BLINK)&&function Q(ne){if(!w.has(ne))try{G||(G=document.createElement("style"),G.setAttribute("type","text/css"),document.head.appendChild(G)),G.sheet&&(G.sheet.insertRule(`@media ${ne} {body{ }}`,0),w.add(ne))}catch(le){console.error(le)}}(ee),this._matchMedia(ee)}}return ne.\u0275fac=function(ee){return new(ee||ne)(t.LFG(T.t4))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})();function re(ne){return{matches:"all"===ne||""===ne,media:ne,addListener:()=>{},removeListener:()=>{}}}let ie=(()=>{class ne{constructor(ee,pe){this._mediaMatcher=ee,this._zone=pe,this._queries=new Map,this._destroySubject=new f.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(ee){return ce((0,e.Eq)(ee)).some(S=>this._registerQuery(S).mql.matches)}observe(ee){const S=ce((0,e.Eq)(ee)).map(r=>this._registerQuery(r).observable);let i=(0,C.a)(S);return i=(0,a.z)(i.pipe((0,d.q)(1)),i.pipe((0,R.T)(1),(0,h.b)(0))),i.pipe((0,I.U)(r=>{const u={matches:!1,breakpoints:{}};return r.forEach(({matches:l,query:y})=>{u.matches=u.matches||l,u.breakpoints[y]=l}),u}))}_registerQuery(ee){if(this._queries.has(ee))return this._queries.get(ee);const pe=this._mediaMatcher.matchMedia(ee),i={observable:new M.y(r=>{const u=l=>this._zone.run(()=>r.next(l));return pe.addListener(u),()=>{pe.removeListener(u)}}).pipe((0,E.O)(pe),(0,I.U)(({matches:r})=>({query:ee,matches:r})),(0,L.R)(this._destroySubject)),mql:pe};return this._queries.set(ee,i),i}}return ne.\u0275fac=function(ee){return new(ee||ne)(t.LFG(K),t.LFG(t.R0b))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})();function ce(ne){return ne.map(le=>le.split(",")).reduce((le,ee)=>le.concat(ee)).map(le=>le.trim())}const ae={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)"}},9643:(ke,J,p)=>{"use strict";p.d(J,{Q8:()=>h,wD:()=>R});var t=p(1281),e=p(4650),f=p(9751),C=p(7579),a=p(8372);let M=(()=>{class I{create(L){return typeof MutationObserver>"u"?null:new MutationObserver(L)}}return I.\u0275fac=function(L){return new(L||I)},I.\u0275prov=e.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})(),d=(()=>{class I{constructor(L){this._mutationObserverFactory=L,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((L,T)=>this._cleanupObserver(T))}observe(L){const T=(0,t.fI)(L);return new f.y(N=>{const G=this._observeElement(T).subscribe(N);return()=>{G.unsubscribe(),this._unobserveElement(T)}})}_observeElement(L){if(this._observedElements.has(L))this._observedElements.get(L).count++;else{const T=new C.x,N=this._mutationObserverFactory.create(w=>T.next(w));N&&N.observe(L,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(L,{observer:N,stream:T,count:1})}return this._observedElements.get(L).stream}_unobserveElement(L){this._observedElements.has(L)&&(this._observedElements.get(L).count--,this._observedElements.get(L).count||this._cleanupObserver(L))}_cleanupObserver(L){if(this._observedElements.has(L)){const{observer:T,stream:N}=this._observedElements.get(L);T&&T.disconnect(),N.complete(),this._observedElements.delete(L)}}}return I.\u0275fac=function(L){return new(L||I)(e.LFG(M))},I.\u0275prov=e.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})(),R=(()=>{class I{constructor(L,T,N){this._contentObserver=L,this._elementRef=T,this._ngZone=N,this.event=new e.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(L){this._disabled=(0,t.Ig)(L),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(L){this._debounce=(0,t.su)(L),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const L=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?L.pipe((0,a.b)(this.debounce)):L).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return I.\u0275fac=function(L){return new(L||I)(e.Y36(d),e.Y36(e.SBq),e.Y36(e.R0b))},I.\u0275dir=e.lG2({type:I,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),I})(),h=(()=>{class I{}return I.\u0275fac=function(L){return new(L||I)},I.\u0275mod=e.oAB({type:I}),I.\u0275inj=e.cJS({providers:[M]}),I})()},8184:(ke,J,p)=>{"use strict";p.d(J,{Iu:()=>k,U8:()=>he,X_:()=>le,Xj:()=>D,_G:()=>_,aV:()=>ve,pI:()=>ut,xu:()=>Ge});var t=p(531),e=p(6895),f=p(4650),C=p(1281),a=p(3353),M=p(445),d=p(4080),R=p(7579),h=p(727),I=p(6451),E=p(5698),L=p(2722),T=p(2529),N=p(9521);const w=(0,a.Mq)();class G{constructor(Y,j){this._viewportRuler=Y,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=j}attach(){}enable(){if(this._canBeEnabled()){const Y=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Y.style.left||"",this._previousHTMLStyles.top=Y.style.top||"",Y.style.left=(0,C.HM)(-this._previousScrollPosition.left),Y.style.top=(0,C.HM)(-this._previousScrollPosition.top),Y.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Y=this._document.documentElement,Ce=Y.style,Se=this._document.body.style,X=Ce.scrollBehavior||"",Ye=Se.scrollBehavior||"";this._isEnabled=!1,Ce.left=this._previousHTMLStyles.left,Ce.top=this._previousHTMLStyles.top,Y.classList.remove("cdk-global-scrollblock"),w&&(Ce.scrollBehavior=Se.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),w&&(Ce.scrollBehavior=X,Se.scrollBehavior=Ye)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const j=this._document.body,Ce=this._viewportRuler.getViewportSize();return j.scrollHeight>Ce.height||j.scrollWidth>Ce.width}}class Q{constructor(Y,j,Ce,Se){this._scrollDispatcher=Y,this._ngZone=j,this._viewportRuler=Ce,this._config=Se,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(Y){this._overlayRef=Y}enable(){if(this._scrollSubscription)return;const Y=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Y.subscribe(()=>{const j=this._viewportRuler.getViewportScrollPosition().top;Math.abs(j-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Y.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class re{enable(){}disable(){}attach(){}}function ie(we,Y){return Y.some(j=>we.bottom<j.top||we.top>j.bottom||we.right<j.left||we.left>j.right)}function ce(we,Y){return Y.some(j=>we.top<j.top||we.bottom>j.bottom||we.left<j.left||we.right>j.right)}class ae{constructor(Y,j,Ce,Se){this._scrollDispatcher=Y,this._viewportRuler=j,this._ngZone=Ce,this._config=Se,this._scrollSubscription=null}attach(Y){this._overlayRef=Y}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 j=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ce,height:Se}=this._viewportRuler.getViewportSize();ie(j,[{width:Ce,height:Se,bottom:Se,right:Ce,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let ne=(()=>{class we{constructor(j,Ce,Se,X){this._scrollDispatcher=j,this._viewportRuler=Ce,this._ngZone=Se,this.noop=()=>new re,this.close=Ye=>new Q(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ye),this.block=()=>new G(this._viewportRuler,this._document),this.reposition=Ye=>new ae(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ye),this._document=X}}return we.\u0275fac=function(j){return new(j||we)(f.LFG(t.mF),f.LFG(t.rL),f.LFG(f.R0b),f.LFG(e.K0))},we.\u0275prov=f.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();class le{constructor(Y){if(this.scrollStrategy=new re,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Y){const j=Object.keys(Y);for(const Ce of j)void 0!==Y[Ce]&&(this[Ce]=Y[Ce])}}}class S{constructor(Y,j){this.connectionPair=Y,this.scrollableViewProperties=j}}let u=(()=>{class we{constructor(j){this._attachedOverlays=[],this._document=j}ngOnDestroy(){this.detach()}add(j){this.remove(j),this._attachedOverlays.push(j)}remove(j){const Ce=this._attachedOverlays.indexOf(j);Ce>-1&&this._attachedOverlays.splice(Ce,1),0===this._attachedOverlays.length&&this.detach()}}return we.\u0275fac=function(j){return new(j||we)(f.LFG(e.K0))},we.\u0275prov=f.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),l=(()=>{class we extends u{constructor(j,Ce){super(j),this._ngZone=Ce,this._keydownListener=Se=>{const X=this._attachedOverlays;for(let Ye=X.length-1;Ye>-1;Ye--)if(X[Ye]._keydownEvents.observers.length>0){const Le=X[Ye]._keydownEvents;this._ngZone?this._ngZone.run(()=>Le.next(Se)):Le.next(Se);break}}}add(j){super.add(j),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return we.\u0275fac=function(j){return new(j||we)(f.LFG(e.K0),f.LFG(f.R0b,8))},we.\u0275prov=f.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),y=(()=>{class we extends u{constructor(j,Ce,Se){super(j),this._platform=Ce,this._ngZone=Se,this._cursorStyleIsSet=!1,this._pointerDownListener=X=>{this._pointerDownEventTarget=(0,a.sA)(X)},this._clickListener=X=>{const Ye=(0,a.sA)(X),Le="click"===X.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ye;this._pointerDownEventTarget=null;const gt=this._attachedOverlays.slice();for(let Wt=gt.length-1;Wt>-1;Wt--){const Rt=gt[Wt];if(Rt._outsidePointerEvents.observers.length<1||!Rt.hasAttached())continue;if(Rt.overlayElement.contains(Ye)||Rt.overlayElement.contains(Le))break;const jt=Rt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>jt.next(X)):jt.next(X)}}}add(j){if(super.add(j),!this._isAttached){const Ce=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Ce)):this._addEventListeners(Ce),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ce.style.cursor,Ce.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const j=this._document.body;j.removeEventListener("pointerdown",this._pointerDownListener,!0),j.removeEventListener("click",this._clickListener,!0),j.removeEventListener("auxclick",this._clickListener,!0),j.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(j.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(j){j.addEventListener("pointerdown",this._pointerDownListener,!0),j.addEventListener("click",this._clickListener,!0),j.addEventListener("auxclick",this._clickListener,!0),j.addEventListener("contextmenu",this._clickListener,!0)}}return we.\u0275fac=function(j){return new(j||we)(f.LFG(e.K0),f.LFG(a.t4),f.LFG(f.R0b,8))},we.\u0275prov=f.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),D=(()=>{class we{constructor(j,Ce){this._platform=Ce,this._document=j}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const j="cdk-overlay-container";if(this._platform.isBrowser||(0,a.Oy)()){const Se=this._document.querySelectorAll(`.${j}[platform="server"], .${j}[platform="test"]`);for(let X=0;X<Se.length;X++)Se[X].remove()}const Ce=this._document.createElement("div");Ce.classList.add(j),(0,a.Oy)()?Ce.setAttribute("platform","test"):this._platform.isBrowser||Ce.setAttribute("platform","server"),this._document.body.appendChild(Ce),this._containerElement=Ce}}return we.\u0275fac=function(j){return new(j||we)(f.LFG(e.K0),f.LFG(a.t4))},we.\u0275prov=f.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();class k{constructor(Y,j,Ce,Se,X,Ye,Le,gt,Wt,Rt=!1){this._portalOutlet=Y,this._host=j,this._pane=Ce,this._config=Se,this._ngZone=X,this._keyboardDispatcher=Ye,this._document=Le,this._location=gt,this._outsideClickDispatcher=Wt,this._animationsDisabled=Rt,this._backdropElement=null,this._backdropClick=new R.x,this._attachments=new R.x,this._detachments=new R.x,this._locationChanges=h.w0.EMPTY,this._backdropClickHandler=jt=>this._backdropClick.next(jt),this._backdropTransitionendHandler=jt=>{this._disposeBackdrop(jt.target)},this._keydownEvents=new R.x,this._outsidePointerEvents=new R.x,Se.scrollStrategy&&(this._scrollStrategy=Se.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Se.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(Y){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const j=this._portalOutlet.attach(Y);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,E.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof j?.onDestroy&&j.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),j}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Y=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Y}dispose(){const Y=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,Y&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(Y){Y!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Y,this.hasAttached()&&(Y.attach(this),this.updatePosition()))}updateSize(Y){this._config={...this._config,...Y},this._updateElementSize()}setDirection(Y){this._config={...this._config,direction:Y},this._updateElementDirection()}addPanelClass(Y){this._pane&&this._toggleClasses(this._pane,Y,!0)}removePanelClass(Y){this._pane&&this._toggleClasses(this._pane,Y,!1)}getDirection(){const Y=this._config.direction;return Y?"string"==typeof Y?Y:Y.value:"ltr"}updateScrollStrategy(Y){Y!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Y,this.hasAttached()&&(Y.attach(this),Y.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Y=this._pane.style;Y.width=(0,C.HM)(this._config.width),Y.height=(0,C.HM)(this._config.height),Y.minWidth=(0,C.HM)(this._config.minWidth),Y.minHeight=(0,C.HM)(this._config.minHeight),Y.maxWidth=(0,C.HM)(this._config.maxWidth),Y.maxHeight=(0,C.HM)(this._config.maxHeight)}_togglePointerEvents(Y){this._pane.style.pointerEvents=Y?"":"none"}_attachBackdrop(){const Y="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(Y)})}):this._backdropElement.classList.add(Y)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const Y=this._backdropElement;if(Y){if(this._animationsDisabled)return void this._disposeBackdrop(Y);Y.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{Y.addEventListener("transitionend",this._backdropTransitionendHandler)}),Y.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(Y)},500))}}_toggleClasses(Y,j,Ce){const Se=(0,C.Eq)(j||[]).filter(X=>!!X);Se.length&&(Ce?Y.classList.add(...Se):Y.classList.remove(...Se))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const Y=this._ngZone.onStable.pipe((0,L.R)((0,I.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),Y.unsubscribe())})})}_disposeScrollStrategy(){const Y=this._scrollStrategy;Y&&(Y.disable(),Y.detach&&Y.detach())}_disposeBackdrop(Y){Y&&(Y.removeEventListener("click",this._backdropClickHandler),Y.removeEventListener("transitionend",this._backdropTransitionendHandler),Y.remove(),this._backdropElement===Y&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const b="cdk-overlay-connected-position-bounding-box",n=/([A-Za-z%]+)$/;class _{constructor(Y,j,Ce,Se,X){this._viewportRuler=j,this._document=Ce,this._platform=Se,this._overlayContainer=X,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new R.x,this._resizeSubscription=h.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(Y)}get positions(){return this._preferredPositions}attach(Y){this._validatePositions(),Y.hostElement.classList.add(b),this._overlayRef=Y,this._boundingBox=Y.hostElement,this._pane=Y.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 Y=this._originRect,j=this._overlayRect,Ce=this._viewportRect,Se=this._containerRect,X=[];let Ye;for(let Le of this._preferredPositions){let gt=this._getOriginPoint(Y,Se,Le),Wt=this._getOverlayPoint(gt,j,Le),Rt=this._getOverlayFit(Wt,j,Ce,Le);if(Rt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Le,gt);this._canFitWithFlexibleDimensions(Rt,Wt,Ce)?X.push({position:Le,origin:gt,overlayRect:j,boundingBoxRect:this._calculateBoundingBoxRect(gt,Le)}):(!Ye||Ye.overlayFit.visibleArea<Rt.visibleArea)&&(Ye={overlayFit:Rt,overlayPoint:Wt,originPoint:gt,position:Le,overlayRect:j})}if(X.length){let Le=null,gt=-1;for(const Wt of X){const Rt=Wt.boundingBoxRect.width*Wt.boundingBoxRect.height*(Wt.position.weight||1);Rt>gt&&(gt=Rt,Le=Wt)}return this._isPushed=!1,void this._applyPosition(Le.position,Le.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ye.position,Ye.originPoint);this._applyPosition(Ye.position,Ye.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&W(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(b),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Y=this._lastPosition;if(Y){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const j=this._getOriginPoint(this._originRect,this._containerRect,Y);this._applyPosition(Y,j)}else this.apply()}withScrollableContainers(Y){return this._scrollables=Y,this}withPositions(Y){return this._preferredPositions=Y,-1===Y.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Y){return this._viewportMargin=Y,this}withFlexibleDimensions(Y=!0){return this._hasFlexibleDimensions=Y,this}withGrowAfterOpen(Y=!0){return this._growAfterOpen=Y,this}withPush(Y=!0){return this._canPush=Y,this}withLockedPosition(Y=!0){return this._positionLocked=Y,this}setOrigin(Y){return this._origin=Y,this}withDefaultOffsetX(Y){return this._offsetX=Y,this}withDefaultOffsetY(Y){return this._offsetY=Y,this}withTransformOriginOn(Y){return this._transformOriginSelector=Y,this}_getOriginPoint(Y,j,Ce){let Se,X;if("center"==Ce.originX)Se=Y.left+Y.width/2;else{const Ye=this._isRtl()?Y.right:Y.left,Le=this._isRtl()?Y.left:Y.right;Se="start"==Ce.originX?Ye:Le}return j.left<0&&(Se-=j.left),X="center"==Ce.originY?Y.top+Y.height/2:"top"==Ce.originY?Y.top:Y.bottom,j.top<0&&(X-=j.top),{x:Se,y:X}}_getOverlayPoint(Y,j,Ce){let Se,X;return Se="center"==Ce.overlayX?-j.width/2:"start"===Ce.overlayX?this._isRtl()?-j.width:0:this._isRtl()?0:-j.width,X="center"==Ce.overlayY?-j.height/2:"top"==Ce.overlayY?0:-j.height,{x:Y.x+Se,y:Y.y+X}}_getOverlayFit(Y,j,Ce,Se){const X=U(j);let{x:Ye,y:Le}=Y,gt=this._getOffset(Se,"x"),Wt=this._getOffset(Se,"y");gt&&(Ye+=gt),Wt&&(Le+=Wt);let hi=0-Le,yt=Le+X.height-Ce.height,Pt=this._subtractOverflows(X.width,0-Ye,Ye+X.width-Ce.width),pt=this._subtractOverflows(X.height,hi,yt),vt=Pt*pt;return{visibleArea:vt,isCompletelyWithinViewport:X.width*X.height===vt,fitsInViewportVertically:pt===X.height,fitsInViewportHorizontally:Pt==X.width}}_canFitWithFlexibleDimensions(Y,j,Ce){if(this._hasFlexibleDimensions){const Se=Ce.bottom-j.y,X=Ce.right-j.x,Ye=P(this._overlayRef.getConfig().minHeight),Le=P(this._overlayRef.getConfig().minWidth),Wt=Y.fitsInViewportHorizontally||null!=Le&&Le<=X;return(Y.fitsInViewportVertically||null!=Ye&&Ye<=Se)&&Wt}return!1}_pushOverlayOnScreen(Y,j,Ce){if(this._previousPushAmount&&this._positionLocked)return{x:Y.x+this._previousPushAmount.x,y:Y.y+this._previousPushAmount.y};const Se=U(j),X=this._viewportRect,Ye=Math.max(Y.x+Se.width-X.width,0),Le=Math.max(Y.y+Se.height-X.height,0),gt=Math.max(X.top-Ce.top-Y.y,0),Wt=Math.max(X.left-Ce.left-Y.x,0);let Rt=0,jt=0;return Rt=Se.width<=X.width?Wt||-Ye:Y.x<this._viewportMargin?X.left-Ce.left-Y.x:0,jt=Se.height<=X.height?gt||-Le:Y.y<this._viewportMargin?X.top-Ce.top-Y.y:0,this._previousPushAmount={x:Rt,y:jt},{x:Y.x+Rt,y:Y.y+jt}}_applyPosition(Y,j){if(this._setTransformOrigin(Y),this._setOverlayElementStyles(j,Y),this._setBoundingBoxStyles(j,Y),Y.panelClass&&this._addPanelClasses(Y.panelClass),this._lastPosition=Y,this._positionChanges.observers.length){const Ce=this._getScrollVisibility(),Se=new S(Y,Ce);this._positionChanges.next(Se)}this._isInitialRender=!1}_setTransformOrigin(Y){if(!this._transformOriginSelector)return;const j=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Ce,Se=Y.overlayY;Ce="center"===Y.overlayX?"center":this._isRtl()?"start"===Y.overlayX?"right":"left":"start"===Y.overlayX?"left":"right";for(let X=0;X<j.length;X++)j[X].style.transformOrigin=`${Ce} ${Se}`}_calculateBoundingBoxRect(Y,j){const Ce=this._viewportRect,Se=this._isRtl();let X,Ye,Le,Rt,jt,hi;if("top"===j.overlayY)Ye=Y.y,X=Ce.height-Ye+this._viewportMargin;else if("bottom"===j.overlayY)Le=Ce.height-Y.y+2*this._viewportMargin,X=Ce.height-Le+this._viewportMargin;else{const yt=Math.min(Ce.bottom-Y.y+Ce.top,Y.y),Pt=this._lastBoundingBoxSize.height;X=2*yt,Ye=Y.y-yt,X>Pt&&!this._isInitialRender&&!this._growAfterOpen&&(Ye=Y.y-Pt/2)}if("end"===j.overlayX&&!Se||"start"===j.overlayX&&Se)hi=Ce.width-Y.x+this._viewportMargin,Rt=Y.x-this._viewportMargin;else if("start"===j.overlayX&&!Se||"end"===j.overlayX&&Se)jt=Y.x,Rt=Ce.right-Y.x;else{const yt=Math.min(Ce.right-Y.x+Ce.left,Y.x),Pt=this._lastBoundingBoxSize.width;Rt=2*yt,jt=Y.x-yt,Rt>Pt&&!this._isInitialRender&&!this._growAfterOpen&&(jt=Y.x-Pt/2)}return{top:Ye,left:jt,bottom:Le,right:hi,width:Rt,height:X}}_setBoundingBoxStyles(Y,j){const Ce=this._calculateBoundingBoxRect(Y,j);!this._isInitialRender&&!this._growAfterOpen&&(Ce.height=Math.min(Ce.height,this._lastBoundingBoxSize.height),Ce.width=Math.min(Ce.width,this._lastBoundingBoxSize.width));const Se={};if(this._hasExactPosition())Se.top=Se.left="0",Se.bottom=Se.right=Se.maxHeight=Se.maxWidth="",Se.width=Se.height="100%";else{const X=this._overlayRef.getConfig().maxHeight,Ye=this._overlayRef.getConfig().maxWidth;Se.height=(0,C.HM)(Ce.height),Se.top=(0,C.HM)(Ce.top),Se.bottom=(0,C.HM)(Ce.bottom),Se.width=(0,C.HM)(Ce.width),Se.left=(0,C.HM)(Ce.left),Se.right=(0,C.HM)(Ce.right),Se.alignItems="center"===j.overlayX?"center":"end"===j.overlayX?"flex-end":"flex-start",Se.justifyContent="center"===j.overlayY?"center":"bottom"===j.overlayY?"flex-end":"flex-start",X&&(Se.maxHeight=(0,C.HM)(X)),Ye&&(Se.maxWidth=(0,C.HM)(Ye))}this._lastBoundingBoxSize=Ce,W(this._boundingBox.style,Se)}_resetBoundingBoxStyles(){W(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){W(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Y,j){const Ce={},Se=this._hasExactPosition(),X=this._hasFlexibleDimensions,Ye=this._overlayRef.getConfig();if(Se){const Rt=this._viewportRuler.getViewportScrollPosition();W(Ce,this._getExactOverlayY(j,Y,Rt)),W(Ce,this._getExactOverlayX(j,Y,Rt))}else Ce.position="static";let Le="",gt=this._getOffset(j,"x"),Wt=this._getOffset(j,"y");gt&&(Le+=`translateX(${gt}px) `),Wt&&(Le+=`translateY(${Wt}px)`),Ce.transform=Le.trim(),Ye.maxHeight&&(Se?Ce.maxHeight=(0,C.HM)(Ye.maxHeight):X&&(Ce.maxHeight="")),Ye.maxWidth&&(Se?Ce.maxWidth=(0,C.HM)(Ye.maxWidth):X&&(Ce.maxWidth="")),W(this._pane.style,Ce)}_getExactOverlayY(Y,j,Ce){let Se={top:"",bottom:""},X=this._getOverlayPoint(j,this._overlayRect,Y);return this._isPushed&&(X=this._pushOverlayOnScreen(X,this._overlayRect,Ce)),"bottom"===Y.overlayY?Se.bottom=this._document.documentElement.clientHeight-(X.y+this._overlayRect.height)+"px":Se.top=(0,C.HM)(X.y),Se}_getExactOverlayX(Y,j,Ce){let Ye,Se={left:"",right:""},X=this._getOverlayPoint(j,this._overlayRect,Y);return this._isPushed&&(X=this._pushOverlayOnScreen(X,this._overlayRect,Ce)),Ye=this._isRtl()?"end"===Y.overlayX?"left":"right":"end"===Y.overlayX?"right":"left","right"===Ye?Se.right=this._document.documentElement.clientWidth-(X.x+this._overlayRect.width)+"px":Se.left=(0,C.HM)(X.x),Se}_getScrollVisibility(){const Y=this._getOriginRect(),j=this._pane.getBoundingClientRect(),Ce=this._scrollables.map(Se=>Se.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ce(Y,Ce),isOriginOutsideView:ie(Y,Ce),isOverlayClipped:ce(j,Ce),isOverlayOutsideView:ie(j,Ce)}}_subtractOverflows(Y,...j){return j.reduce((Ce,Se)=>Ce-Math.max(Se,0),Y)}_getNarrowedViewportRect(){const Y=this._document.documentElement.clientWidth,j=this._document.documentElement.clientHeight,Ce=this._viewportRuler.getViewportScrollPosition();return{top:Ce.top+this._viewportMargin,left:Ce.left+this._viewportMargin,right:Ce.left+Y-this._viewportMargin,bottom:Ce.top+j-this._viewportMargin,width:Y-2*this._viewportMargin,height:j-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Y,j){return"x"===j?Y.offsetX??this._offsetX:Y.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(Y){this._pane&&(0,C.Eq)(Y).forEach(j=>{""!==j&&-1===this._appliedPanelClasses.indexOf(j)&&(this._appliedPanelClasses.push(j),this._pane.classList.add(j))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Y=>{this._pane.classList.remove(Y)}),this._appliedPanelClasses=[])}_getOriginRect(){const Y=this._origin;if(Y instanceof f.SBq)return Y.nativeElement.getBoundingClientRect();if(Y instanceof Element)return Y.getBoundingClientRect();const j=Y.width||0,Ce=Y.height||0;return{top:Y.y,bottom:Y.y+Ce,left:Y.x,right:Y.x+j,height:Ce,width:j}}}function W(we,Y){for(let j in Y)Y.hasOwnProperty(j)&&(we[j]=Y[j]);return we}function P(we){if("number"!=typeof we&&null!=we){const[Y,j]=we.split(n);return j&&"px"!==j?null:parseFloat(Y)}return we||null}function U(we){return{top:Math.floor(we.top),right:Math.floor(we.right),bottom:Math.floor(we.bottom),left:Math.floor(we.left),width:Math.floor(we.width),height:Math.floor(we.height)}}const Pe="cdk-global-overlay-wrapper";class Oe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(Y){const j=Y.getConfig();this._overlayRef=Y,this._width&&!j.width&&Y.updateSize({width:this._width}),this._height&&!j.height&&Y.updateSize({height:this._height}),Y.hostElement.classList.add(Pe),this._isDisposed=!1}top(Y=""){return this._bottomOffset="",this._topOffset=Y,this._alignItems="flex-start",this}left(Y=""){return this._xOffset=Y,this._xPosition="left",this}bottom(Y=""){return this._topOffset="",this._bottomOffset=Y,this._alignItems="flex-end",this}right(Y=""){return this._xOffset=Y,this._xPosition="right",this}start(Y=""){return this._xOffset=Y,this._xPosition="start",this}end(Y=""){return this._xOffset=Y,this._xPosition="end",this}width(Y=""){return this._overlayRef?this._overlayRef.updateSize({width:Y}):this._width=Y,this}height(Y=""){return this._overlayRef?this._overlayRef.updateSize({height:Y}):this._height=Y,this}centerHorizontally(Y=""){return this.left(Y),this._xPosition="center",this}centerVertically(Y=""){return this.top(Y),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Y=this._overlayRef.overlayElement.style,j=this._overlayRef.hostElement.style,Ce=this._overlayRef.getConfig(),{width:Se,height:X,maxWidth:Ye,maxHeight:Le}=Ce,gt=!("100%"!==Se&&"100vw"!==Se||Ye&&"100%"!==Ye&&"100vw"!==Ye),Wt=!("100%"!==X&&"100vh"!==X||Le&&"100%"!==Le&&"100vh"!==Le),Rt=this._xPosition,jt=this._xOffset,hi="rtl"===this._overlayRef.getConfig().direction;let yt="",Pt="",pt="";gt?pt="flex-start":"center"===Rt?(pt="center",hi?Pt=jt:yt=jt):hi?"left"===Rt||"end"===Rt?(pt="flex-end",yt=jt):("right"===Rt||"start"===Rt)&&(pt="flex-start",Pt=jt):"left"===Rt||"start"===Rt?(pt="flex-start",yt=jt):("right"===Rt||"end"===Rt)&&(pt="flex-end",Pt=jt),Y.position=this._cssPosition,Y.marginLeft=gt?"0":yt,Y.marginTop=Wt?"0":this._topOffset,Y.marginBottom=this._bottomOffset,Y.marginRight=gt?"0":Pt,j.justifyContent=pt,j.alignItems=Wt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Y=this._overlayRef.overlayElement.style,j=this._overlayRef.hostElement,Ce=j.style;j.classList.remove(Pe),Ce.justifyContent=Ce.alignItems=Y.marginTop=Y.marginBottom=Y.marginLeft=Y.marginRight=Y.position="",this._overlayRef=null,this._isDisposed=!0}}let De=(()=>{class we{constructor(j,Ce,Se,X){this._viewportRuler=j,this._document=Ce,this._platform=Se,this._overlayContainer=X}global(){return new Oe}flexibleConnectedTo(j){return new _(j,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return we.\u0275fac=function(j){return new(j||we)(f.LFG(t.rL),f.LFG(e.K0),f.LFG(a.t4),f.LFG(D))},we.\u0275prov=f.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),ue=0,ve=(()=>{class we{constructor(j,Ce,Se,X,Ye,Le,gt,Wt,Rt,jt,hi,yt){this.scrollStrategies=j,this._overlayContainer=Ce,this._componentFactoryResolver=Se,this._positionBuilder=X,this._keyboardDispatcher=Ye,this._injector=Le,this._ngZone=gt,this._document=Wt,this._directionality=Rt,this._location=jt,this._outsideClickDispatcher=hi,this._animationsModuleType=yt}create(j){const Ce=this._createHostElement(),Se=this._createPaneElement(Ce),X=this._createPortalOutlet(Se),Ye=new le(j);return Ye.direction=Ye.direction||this._directionality.value,new k(X,Ce,Se,Ye,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(j){const Ce=this._document.createElement("div");return Ce.id="cdk-overlay-"+ue++,Ce.classList.add("cdk-overlay-pane"),j.appendChild(Ce),Ce}_createHostElement(){const j=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(j),j}_createPortalOutlet(j){return this._appRef||(this._appRef=this._injector.get(f.z2F)),new d.u0(j,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return we.\u0275fac=function(j){return new(j||we)(f.LFG(ne),f.LFG(D),f.LFG(f._Vd),f.LFG(De),f.LFG(l),f.LFG(f.zs3),f.LFG(f.R0b),f.LFG(e.K0),f.LFG(M.Is),f.LFG(e.Ye),f.LFG(y),f.LFG(f.QbO,8))},we.\u0275prov=f.Yz7({token:we,factory:we.\u0275fac}),we})();const Ie=[{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"}],$=new f.OlP("cdk-connected-overlay-scroll-strategy");let Ge=(()=>{class we{constructor(j){this.elementRef=j}}return we.\u0275fac=function(j){return new(j||we)(f.Y36(f.SBq))},we.\u0275dir=f.lG2({type:we,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),we})(),ut=(()=>{class we{constructor(j,Ce,Se,X,Ye){this._overlay=j,this._dir=Ye,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w0.EMPTY,this._attachSubscription=h.w0.EMPTY,this._detachSubscription=h.w0.EMPTY,this._positionSubscription=h.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new f.vpe,this.positionChange=new f.vpe,this.attach=new f.vpe,this.detach=new f.vpe,this.overlayKeydown=new f.vpe,this.overlayOutsideClick=new f.vpe,this._templatePortal=new d.UE(Ce,Se),this._scrollStrategyFactory=X,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(j){this._offsetX=j,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(j){this._offsetY=j,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(j){this._hasBackdrop=(0,C.Ig)(j)}get lockPosition(){return this._lockPosition}set lockPosition(j){this._lockPosition=(0,C.Ig)(j)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(j){this._flexibleDimensions=(0,C.Ig)(j)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(j){this._growAfterOpen=(0,C.Ig)(j)}get push(){return this._push}set push(j){this._push=(0,C.Ig)(j)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(j){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),j.origin&&this.open&&this._position.apply()),j.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ie);const j=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=j.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=j.detachments().subscribe(()=>this.detach.emit()),j.keydownEvents().subscribe(Ce=>{this.overlayKeydown.next(Ce),Ce.keyCode===N.hY&&!this.disableClose&&!(0,N.Vb)(Ce)&&(Ce.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Ce=>{this.overlayOutsideClick.next(Ce)})}_buildConfig(){const j=this._position=this.positionStrategy||this._createPositionStrategy(),Ce=new le({direction:this._dir,positionStrategy:j,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Ce.width=this.width),(this.height||0===this.height)&&(Ce.height=this.height),(this.minWidth||0===this.minWidth)&&(Ce.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ce.minHeight=this.minHeight),this.backdropClass&&(Ce.backdropClass=this.backdropClass),this.panelClass&&(Ce.panelClass=this.panelClass),Ce}_updatePositionStrategy(j){const Ce=this.positions.map(Se=>({originX:Se.originX,originY:Se.originY,overlayX:Se.overlayX,overlayY:Se.overlayY,offsetX:Se.offsetX||this.offsetX,offsetY:Se.offsetY||this.offsetY,panelClass:Se.panelClass||void 0}));return j.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Ce).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const j=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(j),j}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Ge?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(j=>{this.backdropClick.emit(j)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,T.o)(()=>this.positionChange.observers.length>0)).subscribe(j=>{this.positionChange.emit(j),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return we.\u0275fac=function(j){return new(j||we)(f.Y36(ve),f.Y36(f.Rgc),f.Y36(f.s_b),f.Y36($),f.Y36(M.Is,8))},we.\u0275dir=f.lG2({type:we,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[f.TTD]}),we})();const ye={provide:$,deps:[ve],useFactory:function Ee(we){return()=>we.scrollStrategies.reposition()}};let he=(()=>{class we{}return we.\u0275fac=function(j){return new(j||we)},we.\u0275mod=f.oAB({type:we}),we.\u0275inj=f.cJS({providers:[ve,ye],imports:[M.vT,d.eL,t.Cl,t.Cl]}),we})()},3353:(ke,J,p)=>{"use strict";p.d(J,{Mq:()=>N,Oy:()=>ce,_i:()=>w,ht:()=>re,i$:()=>E,kV:()=>Q,qK:()=>R,sA:()=>ie,t4:()=>C});var t=p(4650),e=p(6895);let f;try{f=typeof Intl<"u"&&Intl.v8BreakIterator}catch{f=!1}let M,C=(()=>{class ae{constructor(le){this._platformId=le,this.isBrowser=this._platformId?(0,e.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!f)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return ae.\u0275fac=function(le){return new(le||ae)(t.LFG(t.Lbi))},ae.\u0275prov=t.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();const d=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function R(){if(M)return M;if("object"!=typeof document||!document)return M=new Set(d),M;let ae=document.createElement("input");return M=new Set(d.filter(ne=>(ae.setAttribute("type",ne),ae.type===ne))),M}let h,L,T,G;function E(ae){return function I(){if(null==h&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?ae:!!ae.capture}function N(){if(null==T){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return T=!1,T;if("scrollBehavior"in document.documentElement.style)T=!0;else{const ae=Element.prototype.scrollTo;T=!!ae&&!/\{\s*\[native code\]\s*\}/.test(ae.toString())}}return T}function w(){if("object"!=typeof document||!document)return 0;if(null==L){const ae=document.createElement("div"),ne=ae.style;ae.dir="rtl",ne.width="1px",ne.overflow="auto",ne.visibility="hidden",ne.pointerEvents="none",ne.position="absolute";const le=document.createElement("div"),ee=le.style;ee.width="2px",ee.height="1px",ae.appendChild(le),document.body.appendChild(ae),L=0,0===ae.scrollLeft&&(ae.scrollLeft=1,L=0===ae.scrollLeft?1:2),ae.remove()}return L}function Q(ae){if(function K(){if(null==G){const ae=typeof document<"u"?document.head:null;G=!(!ae||!ae.createShadowRoot&&!ae.attachShadow)}return G}()){const ne=ae.getRootNode?ae.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ne instanceof ShadowRoot)return ne}return null}function re(){let ae=typeof document<"u"&&document?document.activeElement:null;for(;ae&&ae.shadowRoot;){const ne=ae.shadowRoot.activeElement;if(ne===ae)break;ae=ne}return ae}function ie(ae){return ae.composedPath?ae.composedPath()[0]:ae.target}function ce(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(ke,J,p)=>{"use strict";p.d(J,{C5:()=>I,Pl:()=>re,UE:()=>E,eL:()=>ce,en:()=>T,ig:()=>K,u0:()=>w});var t=p(4650),e=p(6895);class h{attach(le){return this._attachedHost=le,le.attach(this)}detach(){let le=this._attachedHost;null!=le&&(this._attachedHost=null,le.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(le){this._attachedHost=le}}class I extends h{constructor(le,ee,pe,S){super(),this.component=le,this.viewContainerRef=ee,this.injector=pe,this.componentFactoryResolver=S}}class E extends h{constructor(le,ee,pe,S){super(),this.templateRef=le,this.viewContainerRef=ee,this.context=pe,this.injector=S}get origin(){return this.templateRef.elementRef}attach(le,ee=this.context){return this.context=ee,super.attach(le)}detach(){return this.context=void 0,super.detach()}}class L extends h{constructor(le){super(),this.element=le instanceof t.SBq?le.nativeElement:le}}class T{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(le){return le instanceof I?(this._attachedPortal=le,this.attachComponentPortal(le)):le instanceof E?(this._attachedPortal=le,this.attachTemplatePortal(le)):this.attachDomPortal&&le instanceof L?(this._attachedPortal=le,this.attachDomPortal(le)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(le){this._disposeFn=le}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class w extends T{constructor(le,ee,pe,S,i){super(),this.outletElement=le,this._componentFactoryResolver=ee,this._appRef=pe,this._defaultInjector=S,this.attachDomPortal=r=>{const u=r.element,l=this._document.createComment("dom-portal");u.parentNode.insertBefore(l,u),this.outletElement.appendChild(u),this._attachedPortal=r,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(u,l)})},this._document=i}attachComponentPortal(le){const pe=(le.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(le.component);let S;return le.viewContainerRef?(S=le.viewContainerRef.createComponent(pe,le.viewContainerRef.length,le.injector||le.viewContainerRef.injector),this.setDisposeFn(()=>S.destroy())):(S=pe.create(le.injector||this._defaultInjector||t.zs3.NULL),this._appRef.attachView(S.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(S.hostView),S.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(S)),this._attachedPortal=le,S}attachTemplatePortal(le){let ee=le.viewContainerRef,pe=ee.createEmbeddedView(le.templateRef,le.context,{injector:le.injector});return pe.rootNodes.forEach(S=>this.outletElement.appendChild(S)),pe.detectChanges(),this.setDisposeFn(()=>{let S=ee.indexOf(pe);-1!==S&&ee.remove(S)}),this._attachedPortal=le,pe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(le){return le.hostView.rootNodes[0]}}let K=(()=>{class ne extends E{constructor(ee,pe){super(ee,pe)}}return ne.\u0275fac=function(ee){return new(ee||ne)(t.Y36(t.Rgc),t.Y36(t.s_b))},ne.\u0275dir=t.lG2({type:ne,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[t.qOj]}),ne})(),re=(()=>{class ne extends T{constructor(ee,pe,S){super(),this._componentFactoryResolver=ee,this._viewContainerRef=pe,this._isInitialized=!1,this.attached=new t.vpe,this.attachDomPortal=i=>{const r=i.element,u=this._document.createComment("dom-portal");i.setAttachedHost(this),r.parentNode.insertBefore(u,r),this._getRootNode().appendChild(r),this._attachedPortal=i,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(r,u)})},this._document=S}get portal(){return this._attachedPortal}set portal(ee){this.hasAttached()&&!ee&&!this._isInitialized||(this.hasAttached()&&super.detach(),ee&&super.attach(ee),this._attachedPortal=ee||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(ee){ee.setAttachedHost(this);const pe=null!=ee.viewContainerRef?ee.viewContainerRef:this._viewContainerRef,i=(ee.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ee.component),r=pe.createComponent(i,pe.length,ee.injector||pe.injector);return pe!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=ee,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(ee){ee.setAttachedHost(this);const pe=this._viewContainerRef.createEmbeddedView(ee.templateRef,ee.context,{injector:ee.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ee,this._attachedRef=pe,this.attached.emit(pe),pe}_getRootNode(){const ee=this._viewContainerRef.element.nativeElement;return ee.nodeType===ee.ELEMENT_NODE?ee:ee.parentNode}}return ne.\u0275fac=function(ee){return new(ee||ne)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36(e.K0))},ne.\u0275dir=t.lG2({type:ne,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[t.qOj]}),ne})(),ce=(()=>{class ne{}return ne.\u0275fac=function(ee){return new(ee||ne)},ne.\u0275mod=t.oAB({type:ne}),ne.\u0275inj=t.cJS({}),ne})()},531:(ke,J,p)=>{"use strict";p.d(J,{PQ:()=>u,ZD:()=>nt,mF:()=>r,Cl:()=>Pe,rL:()=>y});var t=p(1281),e=p(4650),f=p(7579),C=p(9646),a=p(9751),M=p(4968),d=p(4408),R=p(727);const h={schedule(Oe){let De=requestAnimationFrame,ue=cancelAnimationFrame;const{delegate:ve}=h;ve&&(De=ve.requestAnimationFrame,ue=ve.cancelAnimationFrame);const Ie=De($=>{ue=void 0,Oe($)});return new R.w0(()=>ue?.(Ie))},requestAnimationFrame(...Oe){const{delegate:De}=h;return(De?.requestAnimationFrame||requestAnimationFrame)(...Oe)},cancelAnimationFrame(...Oe){const{delegate:De}=h;return(De?.cancelAnimationFrame||cancelAnimationFrame)(...Oe)},delegate:void 0};var E=p(7565);new class L extends E.v{flush(De){this._active=!0;const ue=this._scheduled;this._scheduled=void 0;const{actions:ve}=this;let Ie;De=De||ve.shift();do{if(Ie=De.execute(De.state,De.delay))break}while((De=ve[0])&&De.id===ue&&ve.shift());if(this._active=!1,Ie){for(;(De=ve[0])&&De.id===ue&&ve.shift();)De.unsubscribe();throw Ie}}}(class I extends d.o{constructor(De,ue){super(De,ue),this.scheduler=De,this.work=ue}requestAsyncId(De,ue,ve=0){return null!==ve&&ve>0?super.requestAsyncId(De,ue,ve):(De.actions.push(this),De._scheduled||(De._scheduled=h.requestAnimationFrame(()=>De.flush(void 0))))}recycleAsyncId(De,ue,ve=0){var Ie;if(null!=ve?ve>0:this.delay>0)return super.recycleAsyncId(De,ue,ve);const{actions:$}=De;null!=ue&&(null===(Ie=$[$.length-1])||void 0===Ie?void 0:Ie.id)!==ue&&(h.cancelAnimationFrame(ue),De._scheduled=void 0)}});p(3101);var G=p(3601),K=p(9300),Q=p(2722),re=p(3353),ie=p(6895),ce=p(445);let r=(()=>{class Oe{constructor(ue,ve,Ie){this._ngZone=ue,this._platform=ve,this._scrolled=new f.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ie}register(ue){this.scrollContainers.has(ue)||this.scrollContainers.set(ue,ue.elementScrolled().subscribe(()=>this._scrolled.next(ue)))}deregister(ue){const ve=this.scrollContainers.get(ue);ve&&(ve.unsubscribe(),this.scrollContainers.delete(ue))}scrolled(ue=20){return this._platform.isBrowser?new a.y(ve=>{this._globalSubscription||this._addGlobalListener();const Ie=ue>0?this._scrolled.pipe((0,G.e)(ue)).subscribe(ve):this._scrolled.subscribe(ve);return this._scrolledCount++,()=>{Ie.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,C.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ue,ve)=>this.deregister(ve)),this._scrolled.complete()}ancestorScrolled(ue,ve){const Ie=this.getAncestorScrollContainers(ue);return this.scrolled(ve).pipe((0,K.h)($=>!$||Ie.indexOf($)>-1))}getAncestorScrollContainers(ue){const ve=[];return this.scrollContainers.forEach((Ie,$)=>{this._scrollableContainsElement($,ue)&&ve.push($)}),ve}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ue,ve){let Ie=(0,t.fI)(ve),$=ue.getElementRef().nativeElement;do{if(Ie==$)return!0}while(Ie=Ie.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ue=this._getWindow();return(0,M.R)(ue.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Oe.\u0275fac=function(ue){return new(ue||Oe)(e.LFG(e.R0b),e.LFG(re.t4),e.LFG(ie.K0,8))},Oe.\u0275prov=e.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})(),u=(()=>{class Oe{constructor(ue,ve,Ie,$){this.elementRef=ue,this.scrollDispatcher=ve,this.ngZone=Ie,this.dir=$,this._destroyed=new f.x,this._elementScrolled=new a.y(Ge=>this.ngZone.runOutsideAngular(()=>(0,M.R)(this.elementRef.nativeElement,"scroll").pipe((0,Q.R)(this._destroyed)).subscribe(Ge)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(ue){const ve=this.elementRef.nativeElement,Ie=this.dir&&"rtl"==this.dir.value;null==ue.left&&(ue.left=Ie?ue.end:ue.start),null==ue.right&&(ue.right=Ie?ue.start:ue.end),null!=ue.bottom&&(ue.top=ve.scrollHeight-ve.clientHeight-ue.bottom),Ie&&0!=(0,re._i)()?(null!=ue.left&&(ue.right=ve.scrollWidth-ve.clientWidth-ue.left),2==(0,re._i)()?ue.left=ue.right:1==(0,re._i)()&&(ue.left=ue.right?-ue.right:ue.right)):null!=ue.right&&(ue.left=ve.scrollWidth-ve.clientWidth-ue.right),this._applyScrollToOptions(ue)}_applyScrollToOptions(ue){const ve=this.elementRef.nativeElement;(0,re.Mq)()?ve.scrollTo(ue):(null!=ue.top&&(ve.scrollTop=ue.top),null!=ue.left&&(ve.scrollLeft=ue.left))}measureScrollOffset(ue){const ve="left",$=this.elementRef.nativeElement;if("top"==ue)return $.scrollTop;if("bottom"==ue)return $.scrollHeight-$.clientHeight-$.scrollTop;const Ge=this.dir&&"rtl"==this.dir.value;return"start"==ue?ue=Ge?"right":ve:"end"==ue&&(ue=Ge?ve:"right"),Ge&&2==(0,re._i)()?ue==ve?$.scrollWidth-$.clientWidth-$.scrollLeft:$.scrollLeft:Ge&&1==(0,re._i)()?ue==ve?$.scrollLeft+$.scrollWidth-$.clientWidth:-$.scrollLeft:ue==ve?$.scrollLeft:$.scrollWidth-$.clientWidth-$.scrollLeft}}return Oe.\u0275fac=function(ue){return new(ue||Oe)(e.Y36(e.SBq),e.Y36(r),e.Y36(e.R0b),e.Y36(ce.Is,8))},Oe.\u0275dir=e.lG2({type:Oe,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Oe})(),y=(()=>{class Oe{constructor(ue,ve,Ie){this._platform=ue,this._change=new f.x,this._changeListener=$=>{this._change.next($)},this._document=Ie,ve.runOutsideAngular(()=>{if(ue.isBrowser){const $=this._getWindow();$.addEventListener("resize",this._changeListener),$.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ue=this._getWindow();ue.removeEventListener("resize",this._changeListener),ue.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ue={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ue}getViewportRect(){const ue=this.getViewportScrollPosition(),{width:ve,height:Ie}=this.getViewportSize();return{top:ue.top,left:ue.left,bottom:ue.top+Ie,right:ue.left+ve,height:Ie,width:ve}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ue=this._document,ve=this._getWindow(),Ie=ue.documentElement,$=Ie.getBoundingClientRect();return{top:-$.top||ue.body.scrollTop||ve.scrollY||Ie.scrollTop||0,left:-$.left||ue.body.scrollLeft||ve.scrollX||Ie.scrollLeft||0}}change(ue=20){return ue>0?this._change.pipe((0,G.e)(ue)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ue=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ue.innerWidth,height:ue.innerHeight}:{width:0,height:0}}}return Oe.\u0275fac=function(ue){return new(ue||Oe)(e.LFG(re.t4),e.LFG(e.R0b),e.LFG(ie.K0,8))},Oe.\u0275prov=e.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})(),nt=(()=>{class Oe{}return Oe.\u0275fac=function(ue){return new(ue||Oe)},Oe.\u0275mod=e.oAB({type:Oe}),Oe.\u0275inj=e.cJS({}),Oe})(),Pe=(()=>{class Oe{}return Oe.\u0275fac=function(ue){return new(ue||Oe)},Oe.\u0275mod=e.oAB({type:Oe}),Oe.\u0275inj=e.cJS({imports:[ce.vT,nt,ce.vT,nt]}),Oe})()},2138:(ke,J,p)=>{"use strict";p.d(J,{B8:()=>ie,KL:()=>T,U5:()=>ne,be:()=>re,gx:()=>Q,po:()=>ae,st:()=>ce,u6:()=>N});var t=p(4761),e=p(445),f=p(1281),C=p(9521),a=p(4650),M=p(3353),d=p(7579),R=p(9646),h=p(8675),I=p(2722);function E(le,ee){1&le&&a.Hsn(0)}const L=["*"];let T=(()=>{class le{constructor(pe){this._elementRef=pe}focus(){this._elementRef.nativeElement.focus()}}return le.\u0275fac=function(pe){return new(pe||le)(a.Y36(a.SBq))},le.\u0275dir=a.lG2({type:le,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),le})(),N=(()=>{class le{constructor(pe){this.template=pe}}return le.\u0275fac=function(pe){return new(pe||le)(a.Y36(a.Rgc))},le.\u0275dir=a.lG2({type:le,selectors:[["","cdkStepLabel",""]]}),le})(),w=0;const Q=new a.OlP("STEPPER_GLOBAL_OPTIONS");let re=(()=>{class le{constructor(pe,S){this._stepper=pe,this.interacted=!1,this.interactedStream=new a.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=S||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(pe){this._editable=(0,f.Ig)(pe)}get optional(){return this._optional}set optional(pe){this._optional=(0,f.Ig)(pe)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(pe){this._completedOverride=(0,f.Ig)(pe)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(pe){this._customError=(0,f.Ig)(pe)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return le.\u0275fac=function(pe){return new(pe||le)(a.Y36((0,a.Gpc)(()=>ie)),a.Y36(Q,8))},le.\u0275cmp=a.Xpm({type:le,selectors:[["cdk-step"]],contentQueries:function(pe,S,i){if(1&pe&&a.Suo(i,N,5),2&pe){let r;a.iGM(r=a.CRH())&&(S.stepLabel=r.first)}},viewQuery:function(pe,S){if(1&pe&&a.Gf(a.Rgc,7),2&pe){let i;a.iGM(i=a.CRH())&&(S.content=i.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[a.TTD],ngContentSelectors:L,decls:1,vars:0,template:function(pe,S){1&pe&&(a.F$t(),a.YNc(0,E,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),le})(),ie=(()=>{class le{constructor(pe,S,i){this._dir=pe,this._changeDetectorRef=S,this._elementRef=i,this._destroyed=new d.x,this.steps=new a.n_E,this._sortedHeaders=new a.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new a.vpe,this._orientation="horizontal",this._groupId=w++}get linear(){return this._linear}set linear(pe){this._linear=(0,f.Ig)(pe)}get selectedIndex(){return this._selectedIndex}set selectedIndex(pe){const S=(0,f.su)(pe);this.steps&&this._steps?(this._isValidIndex(S),this.selected?._markAsInteracted(),this._selectedIndex!==S&&!this._anyControlsInvalidOrPending(S)&&(S>=this._selectedIndex||this.steps.toArray()[S].editable)&&this._updateSelectedItemIndex(S)):this._selectedIndex=S}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(pe){this.selectedIndex=pe&&this.steps?this.steps.toArray().indexOf(pe):-1}get orientation(){return this._orientation}set orientation(pe){this._orientation=pe,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===pe)}ngAfterContentInit(){this._steps.changes.pipe((0,h.O)(this._steps),(0,I.R)(this._destroyed)).subscribe(pe=>{this.steps.reset(pe.filter(S=>S._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,h.O)(this._stepHeader),(0,I.R)(this._destroyed)).subscribe(pe=>{this._sortedHeaders.reset(pe.toArray().sort((S,i)=>S._elementRef.nativeElement.compareDocumentPosition(i._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new t.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,R.of)()).pipe((0,h.O)(this._layoutDirection()),(0,I.R)(this._destroyed)).subscribe(pe=>this._keyManager.withHorizontalOrientation(pe)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(pe=>pe.reset()),this._stateChanged()}_getStepLabelId(pe){return`cdk-step-label-${this._groupId}-${pe}`}_getStepContentId(pe){return`cdk-step-content-${this._groupId}-${pe}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(pe){const S=pe-this._selectedIndex;return S<0?"rtl"===this._layoutDirection()?"next":"previous":S>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(pe,S="number"){const i=this.steps.toArray()[pe],r=this._isCurrentStep(pe);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,r):this._getGuidelineLogic(i,r,S)}_getDefaultIndicatorLogic(pe,S){return pe._showError()&&pe.hasError&&!S?"error":!pe.completed||S?"number":pe.editable?"edit":"done"}_getGuidelineLogic(pe,S,i="number"){return pe._showError()&&pe.hasError&&!S?"error":pe.completed&&!S?"done":pe.completed&&S?i:pe.editable&&S?"edit":i}_isCurrentStep(pe){return this._selectedIndex===pe}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(pe){const S=this.steps.toArray();this.selectionChange.emit({selectedIndex:pe,previouslySelectedIndex:this._selectedIndex,selectedStep:S[pe],previouslySelectedStep:S[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(pe):this._keyManager.updateActiveItem(pe),this._selectedIndex=pe,this._stateChanged()}_onKeydown(pe){const S=(0,C.Vb)(pe),i=pe.keyCode,r=this._keyManager;null==r.activeItemIndex||S||i!==C.L_&&i!==C.K5?r.onKeydown(pe):(this.selectedIndex=r.activeItemIndex,pe.preventDefault())}_anyControlsInvalidOrPending(pe){return!!(this._linear&&pe>=0)&&this.steps.toArray().slice(0,pe).some(S=>{const i=S.stepControl;return(i?i.invalid||i.pending||!S.interacted:!S.completed)&&!S.optional&&!S._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const pe=this._elementRef.nativeElement,S=(0,M.ht)();return pe===S||pe.contains(S)}_isValidIndex(pe){return pe>-1&&(!this.steps||pe<this.steps.length)}}return le.\u0275fac=function(pe){return new(pe||le)(a.Y36(e.Is,8),a.Y36(a.sBO),a.Y36(a.SBq))},le.\u0275dir=a.lG2({type:le,selectors:[["","cdkStepper",""]],contentQueries:function(pe,S,i){if(1&pe&&(a.Suo(i,re,5),a.Suo(i,T,5)),2&pe){let r;a.iGM(r=a.CRH())&&(S._steps=r),a.iGM(r=a.CRH())&&(S._stepHeader=r)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),le})(),ce=(()=>{class le{constructor(pe){this._stepper=pe,this.type="submit"}}return le.\u0275fac=function(pe){return new(pe||le)(a.Y36(ie))},le.\u0275dir=a.lG2({type:le,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(pe,S){1&pe&&a.NdJ("click",function(){return S._stepper.next()}),2&pe&&a.Ikx("type",S.type)},inputs:{type:"type"}}),le})(),ae=(()=>{class le{constructor(pe){this._stepper=pe,this.type="button"}}return le.\u0275fac=function(pe){return new(pe||le)(a.Y36(ie))},le.\u0275dir=a.lG2({type:le,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(pe,S){1&pe&&a.NdJ("click",function(){return S._stepper.previous()}),2&pe&&a.Ikx("type",S.type)},inputs:{type:"type"}}),le})(),ne=(()=>{class le{}return le.\u0275fac=function(pe){return new(pe||le)},le.\u0275mod=a.oAB({type:le}),le.\u0275inj=a.cJS({imports:[e.vT]}),le})()},7851:(ke,J,p)=>{"use strict";p.d(J,{HI:()=>w,Hs:()=>ee,Ud:()=>l,VY:()=>N,XJ:()=>u,Xx:()=>i,_0:()=>le,cu:()=>G,nZ:()=>D,rO:()=>Q});var t=p(5017),e=p(5191),f=p(7579),C=p(1135),a=p(9646),M=p(5698),d=p(9300),R=p(2722),h=p(4650),I=p(1281),E=p(445);class N extends class L{constructor(){this.expansionModel=new t.Ov(!0)}toggle(b){this.expansionModel.toggle(this._trackByValue(b))}expand(b){this.expansionModel.select(this._trackByValue(b))}collapse(b){this.expansionModel.deselect(this._trackByValue(b))}isExpanded(b){return this.expansionModel.isSelected(this._trackByValue(b))}toggleDescendants(b){this.expansionModel.isSelected(this._trackByValue(b))?this.collapseDescendants(b):this.expandDescendants(b)}collapseAll(){this.expansionModel.clear()}expandDescendants(b){let n=[b];n.push(...this.getDescendants(b)),this.expansionModel.select(...n.map(_=>this._trackByValue(_)))}collapseDescendants(b){let n=[b];n.push(...this.getDescendants(b)),this.expansionModel.deselect(...n.map(_=>this._trackByValue(_)))}_trackByValue(b){return this.trackBy?this.trackBy(b):b}}{constructor(b,n){super(),this.getChildren=b,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const b=this.dataNodes.reduce((n,_)=>[...n,...this.getDescendants(_),_],[]);this.expansionModel.select(...b.map(n=>this._trackByValue(n)))}getDescendants(b){const n=[];return this._getDescendants(n,b),n.splice(1)}_getDescendants(b,n){b.push(n);const _=this.getChildren(n);Array.isArray(_)?_.forEach(W=>this._getDescendants(b,W)):(0,e.b)(_)&&_.pipe((0,M.q)(1),(0,d.h)(Boolean)).subscribe(W=>{for(const P of W)this._getDescendants(b,P)})}}const w=new h.OlP("CDK_TREE_NODE_OUTLET_NODE");let G=(()=>{class k{constructor(n,_){this.viewContainer=n,this._node=_}}return k.\u0275fac=function(n){return new(n||k)(h.Y36(h.s_b),h.Y36(w,8))},k.\u0275dir=h.lG2({type:k,selectors:[["","cdkTreeNodeOutlet",""]]}),k})();class K{constructor(b){this.$implicit=b}}let Q=(()=>{class k{constructor(n){this.template=n}}return k.\u0275fac=function(n){return new(n||k)(h.Y36(h.Rgc))},k.\u0275dir=h.lG2({type:k,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),k})(),le=(()=>{class k{constructor(n,_){this._differs=n,this._changeDetectorRef=_,this._onDestroy=new f.x,this._levels=new Map,this.viewChange=new C.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const n=this._nodeDefs.filter(_=>!_.when);this._defaultNodeDef=n[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(n){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),n||this._nodeOutlet.viewContainer.clear(),this._dataSource=n,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let n;(0,t.Z9)(this._dataSource)?n=this._dataSource.connect(this):(0,e.b)(this._dataSource)?n=this._dataSource:Array.isArray(this._dataSource)&&(n=(0,a.of)(this._dataSource)),n&&(this._dataSubscription=n.pipe((0,R.R)(this._onDestroy)).subscribe(_=>this.renderNodeChanges(_)))}renderNodeChanges(n,_=this._dataDiffer,W=this._nodeOutlet.viewContainer,P){const U=_.diff(n);!U||(U.forEachOperation((me,nt,Pe)=>{if(null==me.previousIndex)this.insertNode(n[Pe],Pe,W,P);else if(null==Pe)W.remove(nt),this._levels.delete(me.item);else{const Oe=W.get(nt);W.move(Oe,Pe)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,_){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(P=>P.when&&P.when(_,n))||this._defaultNodeDef}insertNode(n,_,W,P){const U=this._getNodeDef(n,_),me=new K(n);me.level=this.treeControl.getLevel?this.treeControl.getLevel(n):typeof P<"u"&&this._levels.has(P)?this._levels.get(P)+1:0,this._levels.set(n,me.level),(W||this._nodeOutlet.viewContainer).createEmbeddedView(U.template,me,_),ee.mostRecentTreeNode&&(ee.mostRecentTreeNode.data=n)}}return k.\u0275fac=function(n){return new(n||k)(h.Y36(h.ZZ4),h.Y36(h.sBO))},k.\u0275cmp=h.Xpm({type:k,selectors:[["cdk-tree"]],contentQueries:function(n,_,W){if(1&n&&h.Suo(W,Q,5),2&n){let P;h.iGM(P=h.CRH())&&(_._nodeDefs=P)}},viewQuery:function(n,_){if(1&n&&h.Gf(G,7),2&n){let W;h.iGM(W=h.CRH())&&(_._nodeOutlet=W.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,_){1&n&&h.GkF(0,0)},dependencies:[G],encapsulation:2}),k})(),ee=(()=>{class k{constructor(n,_){this._elementRef=n,this._tree=_,this._destroyed=new f.x,this._dataChanges=new f.x,k.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(n){this._elementRef.nativeElement.setAttribute("role",n)}get data(){return this._data}set data(n){n!==this._data&&(this._data=n,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function pe(k){let b=k.parentElement;for(;b&&!S(b);)b=b.parentElement;return b?b.classList.contains("cdk-nested-tree-node")?(0,I.su)(b.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){k.mostRecentTreeNode===this&&(k.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return k.mostRecentTreeNode=null,k.\u0275fac=function(n){return new(n||k)(h.Y36(h.SBq),h.Y36(le))},k.\u0275dir=h.lG2({type:k,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(n,_){2&n&&h.uIk("aria-expanded",_.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),k})();function S(k){const b=k.classList;return!(!b?.contains("cdk-nested-tree-node")&&!b?.contains("cdk-tree"))}let i=(()=>{class k extends ee{constructor(n,_,W){super(n,_),this._differs=W}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const n=this._tree.treeControl.getChildren(this.data);Array.isArray(n)?this.updateChildrenNodes(n):(0,e.b)(n)&&n.pipe((0,R.R)(this._destroyed)).subscribe(_=>this.updateChildrenNodes(_)),this.nodeOutlet.changes.pipe((0,R.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){const _=this._getNodeOutlet();n&&(this._children=n),_&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,_.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const n=this._getNodeOutlet();n&&(n.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const n=this.nodeOutlet;return n&&n.find(_=>!_._node||_._node===this)}}return k.\u0275fac=function(n){return new(n||k)(h.Y36(h.SBq),h.Y36(le),h.Y36(h.ZZ4))},k.\u0275dir=h.lG2({type:k,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,_,W){if(1&n&&h.Suo(W,G,5),2&n){let P;h.iGM(P=h.CRH())&&(_.nodeOutlet=P)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[h._Bn([{provide:ee,useExisting:k},{provide:w,useExisting:k}]),h.qOj]}),k})();const r=/([A-Za-z%]+)$/;let u=(()=>{class k{constructor(n,_,W,P){this._treeNode=n,this._tree=_,this._element=W,this._dir=P,this._destroyed=new f.x,this.indentUnits="px",this._indent=40,this._setPadding(),P&&P.change.pipe((0,R.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),n._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(n){this._setLevelInput(n)}get indent(){return this._indent}set indent(n){this._setIndentInput(n)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const n=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,_=this._level??n;return"number"==typeof _?`${_*this._indent}${this.indentUnits}`:null}_setPadding(n=!1){const _=this._paddingIndent();if(_!==this._currentPadding||n){const W=this._element.nativeElement,P=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",U="paddingLeft"===P?"paddingRight":"paddingLeft";W.style[P]=_||"",W.style[U]="",this._currentPadding=_}}_setLevelInput(n){this._level=(0,I.su)(n,null),this._setPadding()}_setIndentInput(n){let _=n,W="px";if("string"==typeof n){const P=n.split(r);_=P[0],W=P[1]||W}this.indentUnits=W,this._indent=(0,I.su)(_),this._setPadding()}}return k.\u0275fac=function(n){return new(n||k)(h.Y36(ee),h.Y36(le),h.Y36(h.SBq),h.Y36(E.Is,8))},k.\u0275dir=h.lG2({type:k,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),k})(),l=(()=>{class k{constructor(n,_){this._tree=n,this._treeNode=_,this._recursive=!1}get recursive(){return this._recursive}set recursive(n){this._recursive=(0,I.Ig)(n)}_toggle(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()}}return k.\u0275fac=function(n){return new(n||k)(h.Y36(le),h.Y36(ee))},k.\u0275dir=h.lG2({type:k,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(n,_){1&n&&h.NdJ("click",function(P){return _._toggle(P)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),k})(),D=(()=>{class k{}return k.\u0275fac=function(n){return new(n||k)},k.\u0275mod=h.oAB({type:k}),k.\u0275inj=h.cJS({}),k})()},6895:(ke,J,p)=>{"use strict";p.d(J,{Do:()=>ie,ED:()=>Nn,EM:()=>Hr,HT:()=>a,JF:()=>Aa,JJ:()=>as,K0:()=>d,Mx:()=>Hi,NF:()=>Ea,Nd:()=>Lr,O5:()=>Xt,OU:()=>yr,Ov:()=>Er,PC:()=>Yi,PM:()=>Ls,RF:()=>Dn,S$:()=>K,Ts:()=>la,V_:()=>I,Ye:()=>ce,b0:()=>re,bD:()=>ka,ez:()=>ss,gd:()=>js,i8:()=>Pa,mk:()=>Ui,n9:()=>Zn,q:()=>f,rS:()=>ns,sg:()=>Ti,tP:()=>Mn,uU:()=>Ka,w_:()=>M});var t=p(4650);let e=null;function f(){return e}function a(Ne){e||(e=Ne)}class M{}const d=new t.OlP("DocumentToken");let R=(()=>{class Ne{historyGo(We){throw new Error("Not implemented")}}return Ne.\u0275fac=function(We){return new(We||Ne)},Ne.\u0275prov=t.Yz7({token:Ne,factory:function(){return function h(){return(0,t.LFG)(E)}()},providedIn:"platform"}),Ne})();const I=new t.OlP("Location Initialized");let E=(()=>{class Ne extends R{constructor(We){super(),this._doc=We,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return f().getBaseHref(this._doc)}onPopState(We){const Dt=f().getGlobalEventTarget(this._doc,"window");return Dt.addEventListener("popstate",We,!1),()=>Dt.removeEventListener("popstate",We)}onHashChange(We){const Dt=f().getGlobalEventTarget(this._doc,"window");return Dt.addEventListener("hashchange",We,!1),()=>Dt.removeEventListener("hashchange",We)}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(We){this.location.pathname=We}pushState(We,Dt,ii){L()?this._history.pushState(We,Dt,ii):this.location.hash=ii}replaceState(We,Dt,ii){L()?this._history.replaceState(We,Dt,ii):this.location.hash=ii}forward(){this._history.forward()}back(){this._history.back()}historyGo(We=0){this._history.go(We)}getState(){return this._history.state}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.LFG(d))},Ne.\u0275prov=t.Yz7({token:Ne,factory:function(){return function T(){return new E((0,t.LFG)(d))}()},providedIn:"platform"}),Ne})();function L(){return!!window.history.pushState}function N(Ne,ft){if(0==Ne.length)return ft;if(0==ft.length)return Ne;let We=0;return Ne.endsWith("/")&&We++,ft.startsWith("/")&&We++,2==We?Ne+ft.substring(1):1==We?Ne+ft:Ne+"/"+ft}function w(Ne){const ft=Ne.match(/#|\?|$/),We=ft&&ft.index||Ne.length;return Ne.slice(0,We-("/"===Ne[We-1]?1:0))+Ne.slice(We)}function G(Ne){return Ne&&"?"!==Ne[0]?"?"+Ne:Ne}let K=(()=>{class Ne{historyGo(We){throw new Error("Not implemented")}}return Ne.\u0275fac=function(We){return new(We||Ne)},Ne.\u0275prov=t.Yz7({token:Ne,factory:function(){return(0,t.f3M)(re)},providedIn:"root"}),Ne})();const Q=new t.OlP("appBaseHref");let re=(()=>{class Ne extends K{constructor(We,Dt){super(),this._platformLocation=We,this._removeListenerFns=[],this._baseHref=Dt??this._platformLocation.getBaseHrefFromDOM()??(0,t.f3M)(d).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(We){this._removeListenerFns.push(this._platformLocation.onPopState(We),this._platformLocation.onHashChange(We))}getBaseHref(){return this._baseHref}prepareExternalUrl(We){return N(this._baseHref,We)}path(We=!1){const Dt=this._platformLocation.pathname+G(this._platformLocation.search),ii=this._platformLocation.hash;return ii&&We?`${Dt}${ii}`:Dt}pushState(We,Dt,ii,yi){const Mi=this.prepareExternalUrl(ii+G(yi));this._platformLocation.pushState(We,Dt,Mi)}replaceState(We,Dt,ii,yi){const Mi=this.prepareExternalUrl(ii+G(yi));this._platformLocation.replaceState(We,Dt,Mi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(We=0){this._platformLocation.historyGo?.(We)}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.LFG(R),t.LFG(Q,8))},Ne.\u0275prov=t.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),ie=(()=>{class Ne extends K{constructor(We,Dt){super(),this._platformLocation=We,this._baseHref="",this._removeListenerFns=[],null!=Dt&&(this._baseHref=Dt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(We){this._removeListenerFns.push(this._platformLocation.onPopState(We),this._platformLocation.onHashChange(We))}getBaseHref(){return this._baseHref}path(We=!1){let Dt=this._platformLocation.hash;return null==Dt&&(Dt="#"),Dt.length>0?Dt.substring(1):Dt}prepareExternalUrl(We){const Dt=N(this._baseHref,We);return Dt.length>0?"#"+Dt:Dt}pushState(We,Dt,ii,yi){let Mi=this.prepareExternalUrl(ii+G(yi));0==Mi.length&&(Mi=this._platformLocation.pathname),this._platformLocation.pushState(We,Dt,Mi)}replaceState(We,Dt,ii,yi){let Mi=this.prepareExternalUrl(ii+G(yi));0==Mi.length&&(Mi=this._platformLocation.pathname),this._platformLocation.replaceState(We,Dt,Mi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(We=0){this._platformLocation.historyGo?.(We)}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.LFG(R),t.LFG(Q,8))},Ne.\u0275prov=t.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})(),ce=(()=>{class Ne{constructor(We){this._subject=new t.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=We;const Dt=this._locationStrategy.getBaseHref();this._baseHref=w(le(Dt)),this._locationStrategy.onPopState(ii=>{this._subject.emit({url:this.path(!0),pop:!0,state:ii.state,type:ii.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(We=!1){return this.normalize(this._locationStrategy.path(We))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(We,Dt=""){return this.path()==this.normalize(We+G(Dt))}normalize(We){return Ne.stripTrailingSlash(function ne(Ne,ft){return Ne&&ft.startsWith(Ne)?ft.substring(Ne.length):ft}(this._baseHref,le(We)))}prepareExternalUrl(We){return We&&"/"!==We[0]&&(We="/"+We),this._locationStrategy.prepareExternalUrl(We)}go(We,Dt="",ii=null){this._locationStrategy.pushState(ii,"",We,Dt),this._notifyUrlChangeListeners(this.prepareExternalUrl(We+G(Dt)),ii)}replaceState(We,Dt="",ii=null){this._locationStrategy.replaceState(ii,"",We,Dt),this._notifyUrlChangeListeners(this.prepareExternalUrl(We+G(Dt)),ii)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(We=0){this._locationStrategy.historyGo?.(We)}onUrlChange(We){return this._urlChangeListeners.push(We),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Dt=>{this._notifyUrlChangeListeners(Dt.url,Dt.state)})),()=>{const Dt=this._urlChangeListeners.indexOf(We);this._urlChangeListeners.splice(Dt,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(We="",Dt){this._urlChangeListeners.forEach(ii=>ii(We,Dt))}subscribe(We,Dt,ii){return this._subject.subscribe({next:We,error:Dt,complete:ii})}}return Ne.normalizeQueryParams=G,Ne.joinWithSlash=N,Ne.stripTrailingSlash=w,Ne.\u0275fac=function(We){return new(We||Ne)(t.LFG(K))},Ne.\u0275prov=t.Yz7({token:Ne,factory:function(){return function ae(){return new ce((0,t.LFG)(K))}()},providedIn:"root"}),Ne})();function le(Ne){return Ne.replace(/\/index.html$/,"")}var pe=(()=>((pe=pe||{})[pe.Decimal=0]="Decimal",pe[pe.Percent=1]="Percent",pe[pe.Currency=2]="Currency",pe[pe.Scientific=3]="Scientific",pe))(),i=(()=>((i=i||{})[i.Format=0]="Format",i[i.Standalone=1]="Standalone",i))(),r=(()=>((r=r||{})[r.Narrow=0]="Narrow",r[r.Abbreviated=1]="Abbreviated",r[r.Wide=2]="Wide",r[r.Short=3]="Short",r))(),u=(()=>((u=u||{})[u.Short=0]="Short",u[u.Medium=1]="Medium",u[u.Long=2]="Long",u[u.Full=3]="Full",u))(),l=(()=>((l=l||{})[l.Decimal=0]="Decimal",l[l.Group=1]="Group",l[l.List=2]="List",l[l.PercentSign=3]="PercentSign",l[l.PlusSign=4]="PlusSign",l[l.MinusSign=5]="MinusSign",l[l.Exponential=6]="Exponential",l[l.SuperscriptingExponent=7]="SuperscriptingExponent",l[l.PerMille=8]="PerMille",l[l.Infinity=9]="Infinity",l[l.NaN=10]="NaN",l[l.TimeSeparator=11]="TimeSeparator",l[l.CurrencyDecimal=12]="CurrencyDecimal",l[l.CurrencyGroup=13]="CurrencyGroup",l))();function U(Ne,ft){return he((0,t.cg1)(Ne)[t.wAp.DateFormat],ft)}function me(Ne,ft){return he((0,t.cg1)(Ne)[t.wAp.TimeFormat],ft)}function nt(Ne,ft){return he((0,t.cg1)(Ne)[t.wAp.DateTimeFormat],ft)}function Pe(Ne,ft){const We=(0,t.cg1)(Ne),Dt=We[t.wAp.NumberSymbols][ft];if(typeof Dt>"u"){if(ft===l.CurrencyDecimal)return We[t.wAp.NumberSymbols][l.Decimal];if(ft===l.CurrencyGroup)return We[t.wAp.NumberSymbols][l.Group]}return Dt}function Ge(Ne){if(!Ne[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Ne[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function he(Ne,ft){for(let We=ft;We>-1;We--)if(typeof Ne[We]<"u")return Ne[We];throw new Error("Locale data API: locale data undefined")}function de(Ne){const[ft,We]=Ne.split(":");return{hours:+ft,minutes:+We}}const Ce=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Se={},X=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ye=(()=>((Ye=Ye||{})[Ye.Short=0]="Short",Ye[Ye.ShortGMT=1]="ShortGMT",Ye[Ye.Long=2]="Long",Ye[Ye.Extended=3]="Extended",Ye))(),Le=(()=>((Le=Le||{})[Le.FullYear=0]="FullYear",Le[Le.Month=1]="Month",Le[Le.Date=2]="Date",Le[Le.Hours=3]="Hours",Le[Le.Minutes=4]="Minutes",Le[Le.Seconds=5]="Seconds",Le[Le.FractionalSeconds=6]="FractionalSeconds",Le[Le.Day=7]="Day",Le))(),gt=(()=>((gt=gt||{})[gt.DayPeriods=0]="DayPeriods",gt[gt.Days=1]="Days",gt[gt.Months=2]="Months",gt[gt.Eras=3]="Eras",gt))();function Wt(Ne,ft,We,Dt){let ii=function Ke(Ne){if($t(Ne))return Ne;if("number"==typeof Ne&&!isNaN(Ne))return new Date(Ne);if("string"==typeof Ne){if(Ne=Ne.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Ne)){const[ii,yi=1,Mi=1]=Ne.split("-").map(sn=>+sn);return Rt(ii,yi-1,Mi)}const We=parseFloat(Ne);if(!isNaN(Ne-We))return new Date(We);let Dt;if(Dt=Ne.match(Ce))return function mt(Ne){const ft=new Date(0);let We=0,Dt=0;const ii=Ne[8]?ft.setUTCFullYear:ft.setFullYear,yi=Ne[8]?ft.setUTCHours:ft.setHours;Ne[9]&&(We=Number(Ne[9]+Ne[10]),Dt=Number(Ne[9]+Ne[11])),ii.call(ft,Number(Ne[1]),Number(Ne[2])-1,Number(Ne[3]));const Mi=Number(Ne[4]||0)-We,sn=Number(Ne[5]||0)-Dt,or=Number(Ne[6]||0),ar=Math.floor(1e3*parseFloat("0."+(Ne[7]||0)));return yi.call(ft,Mi,sn,or,ar),ft}(Dt)}const ft=new Date(Ne);if(!$t(ft))throw new Error(`Unable to convert "${Ne}" into a date`);return ft}(Ne);ft=jt(We,ft)||ft;let sn,Mi=[];for(;ft;){if(sn=X.exec(ft),!sn){Mi.push(ft);break}{Mi=Mi.concat(sn.slice(1));const pr=Mi.pop();if(!pr)break;ft=pr}}let or=ii.getTimezoneOffset();Dt&&(or=Ae(Dt,or),ii=function Qe(Ne,ft,We){const Dt=We?-1:1,ii=Ne.getTimezoneOffset();return function rt(Ne,ft){return(Ne=new Date(Ne.getTime())).setMinutes(Ne.getMinutes()+ft),Ne}(Ne,Dt*(Ae(ft,ii)-ii))}(ii,Dt,!0));let ar="";return Mi.forEach(pr=>{const Vn=function et(Ne){if(Nt[Ne])return Nt[Ne];let ft;switch(Ne){case"G":case"GG":case"GGG":ft=Ct(gt.Eras,r.Abbreviated);break;case"GGGG":ft=Ct(gt.Eras,r.Wide);break;case"GGGGG":ft=Ct(gt.Eras,r.Narrow);break;case"y":ft=pt(Le.FullYear,1,0,!1,!0);break;case"yy":ft=pt(Le.FullYear,2,0,!0,!0);break;case"yyy":ft=pt(Le.FullYear,3,0,!1,!0);break;case"yyyy":ft=pt(Le.FullYear,4,0,!1,!0);break;case"Y":ft=ct(1);break;case"YY":ft=ct(2,!0);break;case"YYY":ft=ct(3);break;case"YYYY":ft=ct(4);break;case"M":case"L":ft=pt(Le.Month,1,1);break;case"MM":case"LL":ft=pt(Le.Month,2,1);break;case"MMM":ft=Ct(gt.Months,r.Abbreviated);break;case"MMMM":ft=Ct(gt.Months,r.Wide);break;case"MMMMM":ft=Ct(gt.Months,r.Narrow);break;case"LLL":ft=Ct(gt.Months,r.Abbreviated,i.Standalone);break;case"LLLL":ft=Ct(gt.Months,r.Wide,i.Standalone);break;case"LLLLL":ft=Ct(gt.Months,r.Narrow,i.Standalone);break;case"w":ft=xt(1);break;case"ww":ft=xt(2);break;case"W":ft=xt(1,!0);break;case"d":ft=pt(Le.Date,1);break;case"dd":ft=pt(Le.Date,2);break;case"c":case"cc":ft=pt(Le.Day,1);break;case"ccc":ft=Ct(gt.Days,r.Abbreviated,i.Standalone);break;case"cccc":ft=Ct(gt.Days,r.Wide,i.Standalone);break;case"ccccc":ft=Ct(gt.Days,r.Narrow,i.Standalone);break;case"cccccc":ft=Ct(gt.Days,r.Short,i.Standalone);break;case"E":case"EE":case"EEE":ft=Ct(gt.Days,r.Abbreviated);break;case"EEEE":ft=Ct(gt.Days,r.Wide);break;case"EEEEE":ft=Ct(gt.Days,r.Narrow);break;case"EEEEEE":ft=Ct(gt.Days,r.Short);break;case"a":case"aa":case"aaa":ft=Ct(gt.DayPeriods,r.Abbreviated);break;case"aaaa":ft=Ct(gt.DayPeriods,r.Wide);break;case"aaaaa":ft=Ct(gt.DayPeriods,r.Narrow);break;case"b":case"bb":case"bbb":ft=Ct(gt.DayPeriods,r.Abbreviated,i.Standalone,!0);break;case"bbbb":ft=Ct(gt.DayPeriods,r.Wide,i.Standalone,!0);break;case"bbbbb":ft=Ct(gt.DayPeriods,r.Narrow,i.Standalone,!0);break;case"B":case"BB":case"BBB":ft=Ct(gt.DayPeriods,r.Abbreviated,i.Format,!0);break;case"BBBB":ft=Ct(gt.DayPeriods,r.Wide,i.Format,!0);break;case"BBBBB":ft=Ct(gt.DayPeriods,r.Narrow,i.Format,!0);break;case"h":ft=pt(Le.Hours,1,-12);break;case"hh":ft=pt(Le.Hours,2,-12);break;case"H":ft=pt(Le.Hours,1);break;case"HH":ft=pt(Le.Hours,2);break;case"m":ft=pt(Le.Minutes,1);break;case"mm":ft=pt(Le.Minutes,2);break;case"s":ft=pt(Le.Seconds,1);break;case"ss":ft=pt(Le.Seconds,2);break;case"S":ft=pt(Le.FractionalSeconds,1);break;case"SS":ft=pt(Le.FractionalSeconds,2);break;case"SSS":ft=pt(Le.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ft=dt(Ye.Short);break;case"ZZZZZ":ft=dt(Ye.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ft=dt(Ye.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ft=dt(Ye.Long);break;default:return null}return Nt[Ne]=ft,ft}(pr);ar+=Vn?Vn(ii,We,or):"''"===pr?"'":pr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ar}function Rt(Ne,ft,We){const Dt=new Date(0);return Dt.setFullYear(Ne,ft,We),Dt.setHours(0,0,0),Dt}function jt(Ne,ft){const We=function D(Ne){return(0,t.cg1)(Ne)[t.wAp.LocaleId]}(Ne);if(Se[We]=Se[We]||{},Se[We][ft])return Se[We][ft];let Dt="";switch(ft){case"shortDate":Dt=U(Ne,u.Short);break;case"mediumDate":Dt=U(Ne,u.Medium);break;case"longDate":Dt=U(Ne,u.Long);break;case"fullDate":Dt=U(Ne,u.Full);break;case"shortTime":Dt=me(Ne,u.Short);break;case"mediumTime":Dt=me(Ne,u.Medium);break;case"longTime":Dt=me(Ne,u.Long);break;case"fullTime":Dt=me(Ne,u.Full);break;case"short":const ii=jt(Ne,"shortTime"),yi=jt(Ne,"shortDate");Dt=hi(nt(Ne,u.Short),[ii,yi]);break;case"medium":const Mi=jt(Ne,"mediumTime"),sn=jt(Ne,"mediumDate");Dt=hi(nt(Ne,u.Medium),[Mi,sn]);break;case"long":const or=jt(Ne,"longTime"),ar=jt(Ne,"longDate");Dt=hi(nt(Ne,u.Long),[or,ar]);break;case"full":const pr=jt(Ne,"fullTime"),Vn=jt(Ne,"fullDate");Dt=hi(nt(Ne,u.Full),[pr,Vn])}return Dt&&(Se[We][ft]=Dt),Dt}function hi(Ne,ft){return ft&&(Ne=Ne.replace(/\{([^}]+)}/g,function(We,Dt){return null!=ft&&Dt in ft?ft[Dt]:We})),Ne}function yt(Ne,ft,We="-",Dt,ii){let yi="";(Ne<0||ii&&Ne<=0)&&(ii?Ne=1-Ne:(Ne=-Ne,yi=We));let Mi=String(Ne);for(;Mi.length<ft;)Mi="0"+Mi;return Dt&&(Mi=Mi.slice(Mi.length-ft)),yi+Mi}function pt(Ne,ft,We=0,Dt=!1,ii=!1){return function(yi,Mi){let sn=function vt(Ne,ft){switch(Ne){case Le.FullYear:return ft.getFullYear();case Le.Month:return ft.getMonth();case Le.Date:return ft.getDate();case Le.Hours:return ft.getHours();case Le.Minutes:return ft.getMinutes();case Le.Seconds:return ft.getSeconds();case Le.FractionalSeconds:return ft.getMilliseconds();case Le.Day:return ft.getDay();default:throw new Error(`Unknown DateType value "${Ne}".`)}}(Ne,yi);if((We>0||sn>-We)&&(sn+=We),Ne===Le.Hours)0===sn&&-12===We&&(sn=12);else if(Ne===Le.FractionalSeconds)return function Pt(Ne,ft){return yt(Ne,3).substring(0,ft)}(sn,ft);const or=Pe(Mi,l.MinusSign);return yt(sn,ft,or,Dt,ii)}}function Ct(Ne,ft,We=i.Format,Dt=!1){return function(ii,yi){return function At(Ne,ft,We,Dt,ii,yi){switch(We){case gt.Months:return function n(Ne,ft,We){const Dt=(0,t.cg1)(Ne),yi=he([Dt[t.wAp.MonthsFormat],Dt[t.wAp.MonthsStandalone]],ft);return he(yi,We)}(ft,ii,Dt)[Ne.getMonth()];case gt.Days:return function b(Ne,ft,We){const Dt=(0,t.cg1)(Ne),yi=he([Dt[t.wAp.DaysFormat],Dt[t.wAp.DaysStandalone]],ft);return he(yi,We)}(ft,ii,Dt)[Ne.getDay()];case gt.DayPeriods:const Mi=Ne.getHours(),sn=Ne.getMinutes();if(yi){const ar=function ut(Ne){const ft=(0,t.cg1)(Ne);return Ge(ft),(ft[t.wAp.ExtraData][2]||[]).map(Dt=>"string"==typeof Dt?de(Dt):[de(Dt[0]),de(Dt[1])])}(ft),pr=function Ee(Ne,ft,We){const Dt=(0,t.cg1)(Ne);Ge(Dt);const yi=he([Dt[t.wAp.ExtraData][0],Dt[t.wAp.ExtraData][1]],ft)||[];return he(yi,We)||[]}(ft,ii,Dt),Vn=ar.findIndex(Vr=>{if(Array.isArray(Vr)){const[lr,Xn]=Vr,Da=Mi>=lr.hours&&sn>=lr.minutes,ga=Mi<Xn.hours||Mi===Xn.hours&&sn<Xn.minutes;if(lr.hours<Xn.hours){if(Da&&ga)return!0}else if(Da||ga)return!0}else if(Vr.hours===Mi&&Vr.minutes===sn)return!0;return!1});if(-1!==Vn)return pr[Vn]}return function k(Ne,ft,We){const Dt=(0,t.cg1)(Ne),yi=he([Dt[t.wAp.DayPeriodsFormat],Dt[t.wAp.DayPeriodsStandalone]],ft);return he(yi,We)}(ft,ii,Dt)[Mi<12?0:1];case gt.Eras:return function _(Ne,ft){return he((0,t.cg1)(Ne)[t.wAp.Eras],ft)}(ft,Dt)[Ne.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${We}`)}}(ii,yi,Ne,ft,We,Dt)}}function dt(Ne){return function(ft,We,Dt){const ii=-1*Dt,yi=Pe(We,l.MinusSign),Mi=ii>0?Math.floor(ii/60):Math.ceil(ii/60);switch(Ne){case Ye.Short:return(ii>=0?"+":"")+yt(Mi,2,yi)+yt(Math.abs(ii%60),2,yi);case Ye.ShortGMT:return"GMT"+(ii>=0?"+":"")+yt(Mi,1,yi);case Ye.Long:return"GMT"+(ii>=0?"+":"")+yt(Mi,2,yi)+":"+yt(Math.abs(ii%60),2,yi);case Ye.Extended:return 0===Dt?"Z":(ii>=0?"+":"")+yt(Mi,2,yi)+":"+yt(Math.abs(ii%60),2,yi);default:throw new Error(`Unknown zone width "${Ne}"`)}}}function be(Ne){return Rt(Ne.getFullYear(),Ne.getMonth(),Ne.getDate()+(4-Ne.getDay()))}function xt(Ne,ft=!1){return function(We,Dt){let ii;if(ft){const yi=new Date(We.getFullYear(),We.getMonth(),1).getDay()-1,Mi=We.getDate();ii=1+Math.floor((Mi+yi)/7)}else{const yi=be(We),Mi=function Fe(Ne){const ft=Rt(Ne,0,1).getDay();return Rt(Ne,0,1+(ft<=4?4:11)-ft)}(yi.getFullYear()),sn=yi.getTime()-Mi.getTime();ii=1+Math.round(sn/6048e5)}return yt(ii,Ne,Pe(Dt,l.MinusSign))}}function ct(Ne,ft=!1){return function(We,Dt){return yt(be(We).getFullYear(),Ne,Pe(Dt,l.MinusSign),ft)}}const Nt={};function Ae(Ne,ft){Ne=Ne.replace(/:/g,"");const We=Date.parse("Jan 01, 1970 00:00:00 "+Ne)/6e4;return isNaN(We)?ft:We}function $t(Ne){return Ne instanceof Date&&!isNaN(Ne.valueOf())}const Gt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function se(Ne){const ft=parseInt(Ne);if(isNaN(ft))throw new Error("Invalid integer literal when parsing "+Ne);return ft}function Hi(Ne,ft){ft=encodeURIComponent(ft);for(const We of Ne.split(";")){const Dt=We.indexOf("="),[ii,yi]=-1==Dt?[We,""]:[We.slice(0,Dt),We.slice(Dt+1)];if(ii.trim()===ft)return decodeURIComponent(yi)}return null}let Ui=(()=>{class Ne{constructor(We,Dt,ii,yi){this._iterableDiffers=We,this._keyValueDiffers=Dt,this._ngEl=ii,this._renderer=yi,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(We){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof We?We.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(We){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof We?We.split(/\s+/):We,this._rawClass&&((0,t.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const We=this._iterableDiffer.diff(this._rawClass);We&&this._applyIterableChanges(We)}else if(this._keyValueDiffer){const We=this._keyValueDiffer.diff(this._rawClass);We&&this._applyKeyValueChanges(We)}}_applyKeyValueChanges(We){We.forEachAddedItem(Dt=>this._toggleClass(Dt.key,Dt.currentValue)),We.forEachChangedItem(Dt=>this._toggleClass(Dt.key,Dt.currentValue)),We.forEachRemovedItem(Dt=>{Dt.previousValue&&this._toggleClass(Dt.key,!1)})}_applyIterableChanges(We){We.forEachAddedItem(Dt=>{if("string"!=typeof Dt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,t.AaK)(Dt.item)}`);this._toggleClass(Dt.item,!0)}),We.forEachRemovedItem(Dt=>this._toggleClass(Dt.item,!1))}_applyClasses(We){We&&(Array.isArray(We)||We instanceof Set?We.forEach(Dt=>this._toggleClass(Dt,!0)):Object.keys(We).forEach(Dt=>this._toggleClass(Dt,!!We[Dt])))}_removeClasses(We){We&&(Array.isArray(We)||We instanceof Set?We.forEach(Dt=>this._toggleClass(Dt,!1)):Object.keys(We).forEach(Dt=>this._toggleClass(Dt,!1)))}_toggleClass(We,Dt){(We=We.trim())&&We.split(/\s+/g).forEach(ii=>{Dt?this._renderer.addClass(this._ngEl.nativeElement,ii):this._renderer.removeClass(this._ngEl.nativeElement,ii)})}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Ne})();class si{constructor(ft,We,Dt,ii){this.$implicit=ft,this.ngForOf=We,this.index=Dt,this.count=ii}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 Ti=(()=>{class Ne{constructor(We,Dt,ii){this._viewContainer=We,this._template=Dt,this._differs=ii,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(We){this._ngForOf=We,this._ngForOfDirty=!0}set ngForTrackBy(We){this._trackByFn=We}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(We){We&&(this._template=We)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const We=this._ngForOf;!this._differ&&We&&(this._differ=this._differs.find(We).create(this.ngForTrackBy))}if(this._differ){const We=this._differ.diff(this._ngForOf);We&&this._applyChanges(We)}}_applyChanges(We){const Dt=this._viewContainer;We.forEachOperation((ii,yi,Mi)=>{if(null==ii.previousIndex)Dt.createEmbeddedView(this._template,new si(ii.item,this._ngForOf,-1,-1),null===Mi?void 0:Mi);else if(null==Mi)Dt.remove(null===yi?void 0:yi);else if(null!==yi){const sn=Dt.get(yi);Dt.move(sn,Mi),ot(sn,ii)}});for(let ii=0,yi=Dt.length;ii<yi;ii++){const sn=Dt.get(ii).context;sn.index=ii,sn.count=yi,sn.ngForOf=this._ngForOf}We.forEachIdentityChange(ii=>{ot(Dt.get(ii.currentIndex),ii)})}static ngTemplateContextGuard(We,Dt){return!0}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Ne})();function ot(Ne,ft){Ne.context.$implicit=ft.item}let Xt=(()=>{class Ne{constructor(We,Dt){this._viewContainer=We,this._context=new fi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Dt}set ngIf(We){this._context.$implicit=this._context.ngIf=We,this._updateView()}set ngIfThen(We){Li("ngIfThen",We),this._thenTemplateRef=We,this._thenViewRef=null,this._updateView()}set ngIfElse(We){Li("ngIfElse",We),this._elseTemplateRef=We,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(We,Dt){return!0}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.Y36(t.s_b),t.Y36(t.Rgc))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Ne})();class fi{constructor(){this.$implicit=null,this.ngIf=null}}function Li(Ne,ft){if(ft&&!ft.createEmbeddedView)throw new Error(`${Ne} must be a TemplateRef, but received '${(0,t.AaK)(ft)}'.`)}class Ri{constructor(ft,We){this._viewContainerRef=ft,this._templateRef=We,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ft){ft&&!this._created?this.create():!ft&&this._created&&this.destroy()}}let Dn=(()=>{class Ne{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(We){this._ngSwitch=We,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(We){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(We)}_matchCase(We){const Dt=We==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Dt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Dt}_updateDefaultCases(We){if(this._defaultViews&&We!==this._defaultUsed){this._defaultUsed=We;for(let Dt=0;Dt<this._defaultViews.length;Dt++)this._defaultViews[Dt].enforceState(We)}}}return Ne.\u0275fac=function(We){return new(We||Ne)},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),Ne})(),Zn=(()=>{class Ne{constructor(We,Dt,ii){this.ngSwitch=ii,ii._addCase(),this._view=new Ri(We,Dt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Dn,9))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Ne})(),Nn=(()=>{class Ne{constructor(We,Dt,ii){ii._addDefault(new Ri(We,Dt))}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Dn,9))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Ne})(),Yi=(()=>{class Ne{constructor(We,Dt,ii){this._ngEl=We,this._differs=Dt,this._renderer=ii,this._ngStyle=null,this._differ=null}set ngStyle(We){this._ngStyle=We,!this._differ&&We&&(this._differ=this._differs.find(We).create())}ngDoCheck(){if(this._differ){const We=this._differ.diff(this._ngStyle);We&&this._applyChanges(We)}}_setStyle(We,Dt){const[ii,yi]=We.split("."),Mi=-1===ii.indexOf("-")?void 0:t.JOm.DashCase;null!=Dt?this._renderer.setStyle(this._ngEl.nativeElement,ii,yi?`${Dt}${yi}`:Dt,Mi):this._renderer.removeStyle(this._ngEl.nativeElement,ii,Mi)}_applyChanges(We){We.forEachRemovedItem(Dt=>this._setStyle(Dt.key,null)),We.forEachAddedItem(Dt=>this._setStyle(Dt.key,Dt.currentValue)),We.forEachChangedItem(Dt=>this._setStyle(Dt.key,Dt.currentValue))}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Ne})(),Mn=(()=>{class Ne{constructor(We){this._viewContainerRef=We,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(We){if(We.ngTemplateOutlet||We.ngTemplateOutletInjector){const Dt=this._viewContainerRef;if(this._viewRef&&Dt.remove(Dt.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:ii,ngTemplateOutletContext:yi,ngTemplateOutletInjector:Mi}=this;this._viewRef=Dt.createEmbeddedView(ii,yi,Mi?{injector:Mi}:void 0)}else this._viewRef=null}else this._viewRef&&We.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.Y36(t.s_b))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.TTD]}),Ne})();function qn(Ne,ft){return new t.vHH(2100,!1)}class Ts{createSubscription(ft,We){return ft.subscribe({next:We,error:Dt=>{throw Dt}})}dispose(ft){ft.unsubscribe()}}class Fs{createSubscription(ft,We){return ft.then(We,Dt=>{throw Dt})}dispose(ft){}}const Kr=new Fs,Wa=new Ts;let Er=(()=>{class Ne{constructor(We){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=We}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(We){return this._obj?We!==this._obj?(this._dispose(),this.transform(We)):this._latestValue:(We&&this._subscribe(We),this._latestValue)}_subscribe(We){this._obj=We,this._strategy=this._selectStrategy(We),this._subscription=this._strategy.createSubscription(We,Dt=>this._updateLatestValue(We,Dt))}_selectStrategy(We){if((0,t.QGY)(We))return Kr;if((0,t.F4k)(We))return Wa;throw qn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(We,Dt){We===this._obj&&(this._latestValue=Dt,this._ref.markForCheck())}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.Y36(t.sBO,16))},Ne.\u0275pipe=t.Yjl({name:"async",type:Ne,pure:!1,standalone:!0}),Ne})(),Pa=(()=>{class Ne{transform(We){if(null==We)return null;if("string"!=typeof We)throw qn();return We.toLowerCase()}}return Ne.\u0275fac=function(We){return new(We||Ne)},Ne.\u0275pipe=t.Yjl({name:"lowercase",type:Ne,pure:!0,standalone:!0}),Ne})();const Ya=/(?:[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 ns=(()=>{class Ne{transform(We){if(null==We)return null;if("string"!=typeof We)throw qn();return We.replace(Ya,Dt=>Dt[0].toUpperCase()+Dt.slice(1).toLowerCase())}}return Ne.\u0275fac=function(We){return new(We||Ne)},Ne.\u0275pipe=t.Yjl({name:"titlecase",type:Ne,pure:!0,standalone:!0}),Ne})(),js=(()=>{class Ne{transform(We){if(null==We)return null;if("string"!=typeof We)throw qn();return We.toUpperCase()}}return Ne.\u0275fac=function(We){return new(We||Ne)},Ne.\u0275pipe=t.Yjl({name:"uppercase",type:Ne,pure:!0,standalone:!0}),Ne})();const dr=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ka=(()=>{class Ne{constructor(We,Dt){this.locale=We,this.defaultTimezone=Dt}transform(We,Dt="mediumDate",ii,yi){if(null==We||""===We||We!=We)return null;try{return Wt(We,Dt,yi||this.locale,ii??this.defaultTimezone??void 0)}catch(Mi){throw qn()}}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.Y36(t.soG,16),t.Y36(dr,24))},Ne.\u0275pipe=t.Yjl({name:"date",type:Ne,pure:!0,standalone:!0}),Ne})(),la=(()=>{class Ne{transform(We){return JSON.stringify(We,null,2)}}return Ne.\u0275fac=function(We){return new(We||Ne)},Ne.\u0275pipe=t.Yjl({name:"json",type:Ne,pure:!1,standalone:!0}),Ne})(),Lr=(()=>{class Ne{constructor(We){this.differs=We,this.keyValues=[],this.compareFn=ta}transform(We,Dt=ta){if(!We||!(We instanceof Map)&&"object"!=typeof We)return null;this.differ||(this.differ=this.differs.find(We).create());const ii=this.differ.diff(We),yi=Dt!==this.compareFn;return ii&&(this.keyValues=[],ii.forEachItem(Mi=>{this.keyValues.push(function Gr(Ne,ft){return{key:Ne,value:ft}}(Mi.key,Mi.currentValue))})),(ii||yi)&&(this.keyValues.sort(Dt),this.compareFn=Dt),this.keyValues}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.Y36(t.aQg,16))},Ne.\u0275pipe=t.Yjl({name:"keyvalue",type:Ne,pure:!1,standalone:!0}),Ne})();function ta(Ne,ft){const We=Ne.key,Dt=ft.key;if(We===Dt)return 0;if(void 0===We)return 1;if(void 0===Dt)return-1;if(null===We)return 1;if(null===Dt)return-1;if("string"==typeof We&&"string"==typeof Dt)return We<Dt?-1:1;if("number"==typeof We&&"number"==typeof Dt)return We-Dt;if("boolean"==typeof We&&"boolean"==typeof Dt)return We<Dt?-1:1;const ii=String(We),yi=String(Dt);return ii==yi?0:ii<yi?-1:1}let as=(()=>{class Ne{constructor(We){this._locale=We}transform(We,Dt,ii){if(!function Rr(Ne){return!(null==Ne||""===Ne||Ne!=Ne)}(We))return null;ii=ii||this._locale;try{return function Be(Ne,ft,We){return function Ii(Ne,ft,We,Dt,ii,yi,Mi=!1){let sn="",or=!1;if(isFinite(Ne)){let ar=function Je(Ne){let Dt,ii,yi,Mi,sn,ft=Math.abs(Ne)+"",We=0;for((ii=ft.indexOf("."))>-1&&(ft=ft.replace(".","")),(yi=ft.search(/e/i))>0?(ii<0&&(ii=yi),ii+=+ft.slice(yi+1),ft=ft.substring(0,yi)):ii<0&&(ii=ft.length),yi=0;"0"===ft.charAt(yi);yi++);if(yi===(sn=ft.length))Dt=[0],ii=1;else{for(sn--;"0"===ft.charAt(sn);)sn--;for(ii-=yi,Dt=[],Mi=0;yi<=sn;yi++,Mi++)Dt[Mi]=Number(ft.charAt(yi))}return ii>22&&(Dt=Dt.splice(0,21),We=ii-1,ii=1),{digits:Dt,exponent:We,integerLen:ii}}(Ne);Mi&&(ar=function _e(Ne){if(0===Ne.digits[0])return Ne;const ft=Ne.digits.length-Ne.integerLen;return Ne.exponent?Ne.exponent+=2:(0===ft?Ne.digits.push(0,0):1===ft&&Ne.digits.push(0),Ne.integerLen+=2),Ne}(ar));let pr=ft.minInt,Vn=ft.minFrac,Vr=ft.maxFrac;if(yi){const Cs=yi.match(Gt);if(null===Cs)throw new Error(`${yi} is not a valid digit info`);const Ha=Cs[1],cs=Cs[3],ro=Cs[5];null!=Ha&&(pr=se(Ha)),null!=cs&&(Vn=se(cs)),null!=ro?Vr=se(ro):null!=cs&&Vn>Vr&&(Vr=Vn)}!function _t(Ne,ft,We){if(ft>We)throw new Error(`The minimum number of digits after fraction (${ft}) is higher than the maximum (${We}).`);let Dt=Ne.digits,ii=Dt.length-Ne.integerLen;const yi=Math.min(Math.max(ft,ii),We);let Mi=yi+Ne.integerLen,sn=Dt[Mi];if(Mi>0){Dt.splice(Math.max(Ne.integerLen,Mi));for(let Vn=Mi;Vn<Dt.length;Vn++)Dt[Vn]=0}else{ii=Math.max(0,ii),Ne.integerLen=1,Dt.length=Math.max(1,Mi=yi+1),Dt[0]=0;for(let Vn=1;Vn<Mi;Vn++)Dt[Vn]=0}if(sn>=5)if(Mi-1<0){for(let Vn=0;Vn>Mi;Vn--)Dt.unshift(0),Ne.integerLen++;Dt.unshift(1),Ne.integerLen++}else Dt[Mi-1]++;for(;ii<Math.max(0,yi);ii++)Dt.push(0);let or=0!==yi;const ar=ft+Ne.integerLen,pr=Dt.reduceRight(function(Vn,Vr,lr,Xn){return Xn[lr]=(Vr+=Vn)<10?Vr:Vr-10,or&&(0===Xn[lr]&&lr>=ar?Xn.pop():or=!1),Vr>=10?1:0},0);pr&&(Dt.unshift(pr),Ne.integerLen++)}(ar,Vn,Vr);let lr=ar.digits,Xn=ar.integerLen;const Da=ar.exponent;let ga=[];for(or=lr.every(Cs=>!Cs);Xn<pr;Xn++)lr.unshift(0);for(;Xn<0;Xn++)lr.unshift(0);Xn>0?ga=lr.splice(Xn,lr.length):(ga=lr,lr=[0]);const en=[];for(lr.length>=ft.lgSize&&en.unshift(lr.splice(-ft.lgSize,lr.length).join(""));lr.length>ft.gSize;)en.unshift(lr.splice(-ft.gSize,lr.length).join(""));lr.length&&en.unshift(lr.join("")),sn=en.join(Pe(We,Dt)),ga.length&&(sn+=Pe(We,ii)+ga.join("")),Da&&(sn+=Pe(We,l.Exponential)+"+"+Da)}else sn=Pe(We,l.Infinity);return sn=Ne<0&&!or?ft.negPre+sn+ft.negSuf:ft.posPre+sn+ft.posSuf,sn}(Ne,function kt(Ne,ft="-"){const We={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Dt=Ne.split(";"),ii=Dt[0],yi=Dt[1],Mi=-1!==ii.indexOf(".")?ii.split("."):[ii.substring(0,ii.lastIndexOf("0")+1),ii.substring(ii.lastIndexOf("0")+1)],sn=Mi[0],or=Mi[1]||"";We.posPre=sn.substring(0,sn.indexOf("#"));for(let pr=0;pr<or.length;pr++){const Vn=or.charAt(pr);"0"===Vn?We.minFrac=We.maxFrac=pr+1:"#"===Vn?We.maxFrac=pr+1:We.posSuf+=Vn}const ar=sn.split(",");if(We.gSize=ar[1]?ar[1].length:0,We.lgSize=ar[2]||ar[1]?(ar[2]||ar[1]).length:0,yi){const pr=ii.length-We.posPre.length-We.posSuf.length,Vn=yi.indexOf("#");We.negPre=yi.substring(0,Vn).replace(/'/g,""),We.negSuf=yi.slice(Vn+pr).replace(/'/g,"")}else We.negPre=ft+We.posPre,We.negSuf=We.posSuf;return We}(function Oe(Ne,ft){return(0,t.cg1)(Ne)[t.wAp.NumberFormats][ft]}(ft,pe.Decimal),Pe(ft,l.MinusSign)),ft,l.Group,l.Decimal,We)}(function Sa(Ne){if("string"==typeof Ne&&!isNaN(Number(Ne)-parseFloat(Ne)))return Number(Ne);if("number"!=typeof Ne)throw new Error(`${Ne} is not a number`);return Ne}(We),ii,Dt)}catch(yi){throw qn()}}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.Y36(t.soG,16))},Ne.\u0275pipe=t.Yjl({name:"number",type:Ne,pure:!0,standalone:!0}),Ne})();let yr=(()=>{class Ne{transform(We,Dt,ii){if(null==We)return null;if(!this.supports(We))throw qn();return We.slice(Dt,ii)}supports(We){return"string"==typeof We||Array.isArray(We)}}return Ne.\u0275fac=function(We){return new(We||Ne)},Ne.\u0275pipe=t.Yjl({name:"slice",type:Ne,pure:!1,standalone:!0}),Ne})(),ss=(()=>{class Ne{}return Ne.\u0275fac=function(We){return new(We||Ne)},Ne.\u0275mod=t.oAB({type:Ne}),Ne.\u0275inj=t.cJS({}),Ne})();const ka="browser";function Ea(Ne){return Ne===ka}function Ls(Ne){return"server"===Ne}let Hr=(()=>{class Ne{}return Ne.\u0275prov=(0,t.Yz7)({token:Ne,providedIn:"root",factory:()=>new ja((0,t.LFG)(d),window)}),Ne})();class ja{constructor(ft,We){this.document=ft,this.window=We,this.offset=()=>[0,0]}setOffset(ft){this.offset=Array.isArray(ft)?()=>ft:ft}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ft){this.supportsScrolling()&&this.window.scrollTo(ft[0],ft[1])}scrollToAnchor(ft){if(!this.supportsScrolling())return;const We=function Zr(Ne,ft){const We=Ne.getElementById(ft)||Ne.getElementsByName(ft)[0];if(We)return We;if("function"==typeof Ne.createTreeWalker&&Ne.body&&(Ne.body.createShadowRoot||Ne.body.attachShadow)){const Dt=Ne.createTreeWalker(Ne.body,NodeFilter.SHOW_ELEMENT);let ii=Dt.currentNode;for(;ii;){const yi=ii.shadowRoot;if(yi){const Mi=yi.getElementById(ft)||yi.querySelector(`[name="${ft}"]`);if(Mi)return Mi}ii=Dt.nextNode()}}return null}(this.document,ft);We&&(this.scrollToElement(We),We.focus())}setHistoryScrollRestoration(ft){if(this.supportScrollRestoration()){const We=this.window.history;We&&We.scrollRestoration&&(We.scrollRestoration=ft)}}scrollToElement(ft){const We=ft.getBoundingClientRect(),Dt=We.left+this.window.pageXOffset,ii=We.top+this.window.pageYOffset,yi=this.offset();this.window.scrollTo(Dt-yi[0],ii-yi[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ft=Ta(this.window.history)||Ta(Object.getPrototypeOf(this.window.history));return!(!ft||!ft.writable&&!ft.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ta(Ne){return Object.getOwnPropertyDescriptor(Ne,"scrollRestoration")}class Aa{}},529:(ke,J,p)=>{"use strict";p.d(J,{JF:()=>j,LE:()=>Q,TP:()=>b,eN:()=>D});var t=p(6895),e=p(4650),f=p(9646),C=p(9751),a=p(4351),M=p(9300),d=p(4004);class R{}class h{}class I{constructor(Ye){this.normalizedNames=new Map,this.lazyUpdate=null,Ye?this.lazyInit="string"==typeof Ye?()=>{this.headers=new Map,Ye.split("\n").forEach(Le=>{const gt=Le.indexOf(":");if(gt>0){const Wt=Le.slice(0,gt),Rt=Wt.toLowerCase(),jt=Le.slice(gt+1).trim();this.maybeSetNormalizedName(Wt,Rt),this.headers.has(Rt)?this.headers.get(Rt).push(jt):this.headers.set(Rt,[jt])}})}:()=>{this.headers=new Map,Object.keys(Ye).forEach(Le=>{let gt=Ye[Le];const Wt=Le.toLowerCase();"string"==typeof gt&&(gt=[gt]),gt.length>0&&(this.headers.set(Wt,gt),this.maybeSetNormalizedName(Le,Wt))})}:this.headers=new Map}has(Ye){return this.init(),this.headers.has(Ye.toLowerCase())}get(Ye){this.init();const Le=this.headers.get(Ye.toLowerCase());return Le&&Le.length>0?Le[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Ye){return this.init(),this.headers.get(Ye.toLowerCase())||null}append(Ye,Le){return this.clone({name:Ye,value:Le,op:"a"})}set(Ye,Le){return this.clone({name:Ye,value:Le,op:"s"})}delete(Ye,Le){return this.clone({name:Ye,value:Le,op:"d"})}maybeSetNormalizedName(Ye,Le){this.normalizedNames.has(Le)||this.normalizedNames.set(Le,Ye)}init(){this.lazyInit&&(this.lazyInit instanceof I?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Ye=>this.applyUpdate(Ye)),this.lazyUpdate=null))}copyFrom(Ye){Ye.init(),Array.from(Ye.headers.keys()).forEach(Le=>{this.headers.set(Le,Ye.headers.get(Le)),this.normalizedNames.set(Le,Ye.normalizedNames.get(Le))})}clone(Ye){const Le=new I;return Le.lazyInit=this.lazyInit&&this.lazyInit instanceof I?this.lazyInit:this,Le.lazyUpdate=(this.lazyUpdate||[]).concat([Ye]),Le}applyUpdate(Ye){const Le=Ye.name.toLowerCase();switch(Ye.op){case"a":case"s":let gt=Ye.value;if("string"==typeof gt&&(gt=[gt]),0===gt.length)return;this.maybeSetNormalizedName(Ye.name,Le);const Wt=("a"===Ye.op?this.headers.get(Le):void 0)||[];Wt.push(...gt),this.headers.set(Le,Wt);break;case"d":const Rt=Ye.value;if(Rt){let jt=this.headers.get(Le);if(!jt)return;jt=jt.filter(hi=>-1===Rt.indexOf(hi)),0===jt.length?(this.headers.delete(Le),this.normalizedNames.delete(Le)):this.headers.set(Le,jt)}else this.headers.delete(Le),this.normalizedNames.delete(Le)}}forEach(Ye){this.init(),Array.from(this.normalizedNames.keys()).forEach(Le=>Ye(this.normalizedNames.get(Le),this.headers.get(Le)))}}class L{encodeKey(Ye){return G(Ye)}encodeValue(Ye){return G(Ye)}decodeKey(Ye){return decodeURIComponent(Ye)}decodeValue(Ye){return decodeURIComponent(Ye)}}const N=/%(\d[a-f0-9])/gi,w={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function G(X){return encodeURIComponent(X).replace(N,(Ye,Le)=>w[Le]??Ye)}function K(X){return`${X}`}class Q{constructor(Ye={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Ye.encoder||new L,Ye.fromString){if(Ye.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function T(X,Ye){const Le=new Map;return X.length>0&&X.replace(/^\?/,"").split("&").forEach(Wt=>{const Rt=Wt.indexOf("="),[jt,hi]=-1==Rt?[Ye.decodeKey(Wt),""]:[Ye.decodeKey(Wt.slice(0,Rt)),Ye.decodeValue(Wt.slice(Rt+1))],yt=Le.get(jt)||[];yt.push(hi),Le.set(jt,yt)}),Le}(Ye.fromString,this.encoder)}else Ye.fromObject?(this.map=new Map,Object.keys(Ye.fromObject).forEach(Le=>{const gt=Ye.fromObject[Le],Wt=Array.isArray(gt)?gt.map(K):[K(gt)];this.map.set(Le,Wt)})):this.map=null}has(Ye){return this.init(),this.map.has(Ye)}get(Ye){this.init();const Le=this.map.get(Ye);return Le?Le[0]:null}getAll(Ye){return this.init(),this.map.get(Ye)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Ye,Le){return this.clone({param:Ye,value:Le,op:"a"})}appendAll(Ye){const Le=[];return Object.keys(Ye).forEach(gt=>{const Wt=Ye[gt];Array.isArray(Wt)?Wt.forEach(Rt=>{Le.push({param:gt,value:Rt,op:"a"})}):Le.push({param:gt,value:Wt,op:"a"})}),this.clone(Le)}set(Ye,Le){return this.clone({param:Ye,value:Le,op:"s"})}delete(Ye,Le){return this.clone({param:Ye,value:Le,op:"d"})}toString(){return this.init(),this.keys().map(Ye=>{const Le=this.encoder.encodeKey(Ye);return this.map.get(Ye).map(gt=>Le+"="+this.encoder.encodeValue(gt)).join("&")}).filter(Ye=>""!==Ye).join("&")}clone(Ye){const Le=new Q({encoder:this.encoder});return Le.cloneFrom=this.cloneFrom||this,Le.updates=(this.updates||[]).concat(Ye),Le}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Ye=>this.map.set(Ye,this.cloneFrom.map.get(Ye))),this.updates.forEach(Ye=>{switch(Ye.op){case"a":case"s":const Le=("a"===Ye.op?this.map.get(Ye.param):void 0)||[];Le.push(K(Ye.value)),this.map.set(Ye.param,Le);break;case"d":if(void 0===Ye.value){this.map.delete(Ye.param);break}{let gt=this.map.get(Ye.param)||[];const Wt=gt.indexOf(K(Ye.value));-1!==Wt&&gt.splice(Wt,1),gt.length>0?this.map.set(Ye.param,gt):this.map.delete(Ye.param)}}}),this.cloneFrom=this.updates=null)}}class ie{constructor(){this.map=new Map}set(Ye,Le){return this.map.set(Ye,Le),this}get(Ye){return this.map.has(Ye)||this.map.set(Ye,Ye.defaultValue()),this.map.get(Ye)}delete(Ye){return this.map.delete(Ye),this}has(Ye){return this.map.has(Ye)}keys(){return this.map.keys()}}function ae(X){return typeof ArrayBuffer<"u"&&X instanceof ArrayBuffer}function ne(X){return typeof Blob<"u"&&X instanceof Blob}function le(X){return typeof FormData<"u"&&X instanceof FormData}class pe{constructor(Ye,Le,gt,Wt){let Rt;if(this.url=Le,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Ye.toUpperCase(),function ce(X){switch(X){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Wt?(this.body=void 0!==gt?gt:null,Rt=Wt):Rt=gt,Rt&&(this.reportProgress=!!Rt.reportProgress,this.withCredentials=!!Rt.withCredentials,Rt.responseType&&(this.responseType=Rt.responseType),Rt.headers&&(this.headers=Rt.headers),Rt.context&&(this.context=Rt.context),Rt.params&&(this.params=Rt.params)),this.headers||(this.headers=new I),this.context||(this.context=new ie),this.params){const jt=this.params.toString();if(0===jt.length)this.urlWithParams=Le;else{const hi=Le.indexOf("?");this.urlWithParams=Le+(-1===hi?"?":hi<Le.length-1?"&":"")+jt}}else this.params=new Q,this.urlWithParams=Le}serializeBody(){return null===this.body?null:ae(this.body)||ne(this.body)||le(this.body)||function ee(X){return typeof URLSearchParams<"u"&&X instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Q?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||le(this.body)?null:ne(this.body)?this.body.type||null:ae(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Q?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Ye={}){const Le=Ye.method||this.method,gt=Ye.url||this.url,Wt=Ye.responseType||this.responseType,Rt=void 0!==Ye.body?Ye.body:this.body,jt=void 0!==Ye.withCredentials?Ye.withCredentials:this.withCredentials,hi=void 0!==Ye.reportProgress?Ye.reportProgress:this.reportProgress;let yt=Ye.headers||this.headers,Pt=Ye.params||this.params;const pt=Ye.context??this.context;return void 0!==Ye.setHeaders&&(yt=Object.keys(Ye.setHeaders).reduce((vt,Ct)=>vt.set(Ct,Ye.setHeaders[Ct]),yt)),Ye.setParams&&(Pt=Object.keys(Ye.setParams).reduce((vt,Ct)=>vt.set(Ct,Ye.setParams[Ct]),Pt)),new pe(Le,gt,Rt,{params:Pt,headers:yt,context:pt,reportProgress:hi,responseType:Wt,withCredentials:jt})}}var S=(()=>((S=S||{})[S.Sent=0]="Sent",S[S.UploadProgress=1]="UploadProgress",S[S.ResponseHeader=2]="ResponseHeader",S[S.DownloadProgress=3]="DownloadProgress",S[S.Response=4]="Response",S[S.User=5]="User",S))();class i{constructor(Ye,Le=200,gt="OK"){this.headers=Ye.headers||new I,this.status=void 0!==Ye.status?Ye.status:Le,this.statusText=Ye.statusText||gt,this.url=Ye.url||null,this.ok=this.status>=200&&this.status<300}}class r extends i{constructor(Ye={}){super(Ye),this.type=S.ResponseHeader}clone(Ye={}){return new r({headers:Ye.headers||this.headers,status:void 0!==Ye.status?Ye.status:this.status,statusText:Ye.statusText||this.statusText,url:Ye.url||this.url||void 0})}}class u extends i{constructor(Ye={}){super(Ye),this.type=S.Response,this.body=void 0!==Ye.body?Ye.body:null}clone(Ye={}){return new u({body:void 0!==Ye.body?Ye.body:this.body,headers:Ye.headers||this.headers,status:void 0!==Ye.status?Ye.status:this.status,statusText:Ye.statusText||this.statusText,url:Ye.url||this.url||void 0})}}class l extends i{constructor(Ye){super(Ye,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Ye.url||"(unknown url)"}`:`Http failure response for ${Ye.url||"(unknown url)"}: ${Ye.status} ${Ye.statusText}`,this.error=Ye.error||null}}function y(X,Ye){return{body:Ye,headers:X.headers,context:X.context,observe:X.observe,params:X.params,reportProgress:X.reportProgress,responseType:X.responseType,withCredentials:X.withCredentials}}let D=(()=>{class X{constructor(Le){this.handler=Le}request(Le,gt,Wt={}){let Rt;if(Le instanceof pe)Rt=Le;else{let yt,Pt;yt=Wt.headers instanceof I?Wt.headers:new I(Wt.headers),Wt.params&&(Pt=Wt.params instanceof Q?Wt.params:new Q({fromObject:Wt.params})),Rt=new pe(Le,gt,void 0!==Wt.body?Wt.body:null,{headers:yt,context:Wt.context,params:Pt,reportProgress:Wt.reportProgress,responseType:Wt.responseType||"json",withCredentials:Wt.withCredentials})}const jt=(0,f.of)(Rt).pipe((0,a.b)(yt=>this.handler.handle(yt)));if(Le instanceof pe||"events"===Wt.observe)return jt;const hi=jt.pipe((0,M.h)(yt=>yt instanceof u));switch(Wt.observe||"body"){case"body":switch(Rt.responseType){case"arraybuffer":return hi.pipe((0,d.U)(yt=>{if(null!==yt.body&&!(yt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return yt.body}));case"blob":return hi.pipe((0,d.U)(yt=>{if(null!==yt.body&&!(yt.body instanceof Blob))throw new Error("Response is not a Blob.");return yt.body}));case"text":return hi.pipe((0,d.U)(yt=>{if(null!==yt.body&&"string"!=typeof yt.body)throw new Error("Response is not a string.");return yt.body}));default:return hi.pipe((0,d.U)(yt=>yt.body))}case"response":return hi;default:throw new Error(`Unreachable: unhandled observe type ${Wt.observe}}`)}}delete(Le,gt={}){return this.request("DELETE",Le,gt)}get(Le,gt={}){return this.request("GET",Le,gt)}head(Le,gt={}){return this.request("HEAD",Le,gt)}jsonp(Le,gt){return this.request("JSONP",Le,{params:(new Q).append(gt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Le,gt={}){return this.request("OPTIONS",Le,gt)}patch(Le,gt,Wt={}){return this.request("PATCH",Le,y(Wt,gt))}post(Le,gt,Wt={}){return this.request("POST",Le,y(Wt,gt))}put(Le,gt,Wt={}){return this.request("PUT",Le,y(Wt,gt))}}return X.\u0275fac=function(Le){return new(Le||X)(e.LFG(R))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})();class k{constructor(Ye,Le){this.next=Ye,this.interceptor=Le}handle(Ye){return this.interceptor.intercept(Ye,this.next)}}const b=new e.OlP("HTTP_INTERCEPTORS");let n=(()=>{class X{intercept(Le,gt){return gt.handle(Le)}}return X.\u0275fac=function(Le){return new(Le||X)},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})();const ue=/^\)\]\}',?\n/;let Ie=(()=>{class X{constructor(Le){this.xhrFactory=Le}handle(Le){if("JSONP"===Le.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new C.y(gt=>{const Wt=this.xhrFactory.build();if(Wt.open(Le.method,Le.urlWithParams),Le.withCredentials&&(Wt.withCredentials=!0),Le.headers.forEach((At,dt)=>Wt.setRequestHeader(At,dt.join(","))),Le.headers.has("Accept")||Wt.setRequestHeader("Accept","application/json, text/plain, */*"),!Le.headers.has("Content-Type")){const At=Le.detectContentTypeHeader();null!==At&&Wt.setRequestHeader("Content-Type",At)}if(Le.responseType){const At=Le.responseType.toLowerCase();Wt.responseType="json"!==At?At:"text"}const Rt=Le.serializeBody();let jt=null;const hi=()=>{if(null!==jt)return jt;const At=Wt.statusText||"OK",dt=new I(Wt.getAllResponseHeaders()),ze=function ve(X){return"responseURL"in X&&X.responseURL?X.responseURL:/^X-Request-URL:/m.test(X.getAllResponseHeaders())?X.getResponseHeader("X-Request-URL"):null}(Wt)||Le.url;return jt=new r({headers:dt,status:Wt.status,statusText:At,url:ze}),jt},yt=()=>{let{headers:At,status:dt,statusText:ze,url:Ve}=hi(),Fe=null;204!==dt&&(Fe=typeof Wt.response>"u"?Wt.responseText:Wt.response),0===dt&&(dt=Fe?200:0);let be=dt>=200&&dt<300;if("json"===Le.responseType&&"string"==typeof Fe){const xt=Fe;Fe=Fe.replace(ue,"");try{Fe=""!==Fe?JSON.parse(Fe):null}catch(ct){Fe=xt,be&&(be=!1,Fe={error:ct,text:Fe})}}be?(gt.next(new u({body:Fe,headers:At,status:dt,statusText:ze,url:Ve||void 0})),gt.complete()):gt.error(new l({error:Fe,headers:At,status:dt,statusText:ze,url:Ve||void 0}))},Pt=At=>{const{url:dt}=hi(),ze=new l({error:At,status:Wt.status||0,statusText:Wt.statusText||"Unknown Error",url:dt||void 0});gt.error(ze)};let pt=!1;const vt=At=>{pt||(gt.next(hi()),pt=!0);let dt={type:S.DownloadProgress,loaded:At.loaded};At.lengthComputable&&(dt.total=At.total),"text"===Le.responseType&&!!Wt.responseText&&(dt.partialText=Wt.responseText),gt.next(dt)},Ct=At=>{let dt={type:S.UploadProgress,loaded:At.loaded};At.lengthComputable&&(dt.total=At.total),gt.next(dt)};return Wt.addEventListener("load",yt),Wt.addEventListener("error",Pt),Wt.addEventListener("timeout",Pt),Wt.addEventListener("abort",Pt),Le.reportProgress&&(Wt.addEventListener("progress",vt),null!==Rt&&Wt.upload&&Wt.upload.addEventListener("progress",Ct)),Wt.send(Rt),gt.next({type:S.Sent}),()=>{Wt.removeEventListener("error",Pt),Wt.removeEventListener("abort",Pt),Wt.removeEventListener("load",yt),Wt.removeEventListener("timeout",Pt),Le.reportProgress&&(Wt.removeEventListener("progress",vt),null!==Rt&&Wt.upload&&Wt.upload.removeEventListener("progress",Ct)),Wt.readyState!==Wt.DONE&&Wt.abort()}})}}return X.\u0275fac=function(Le){return new(Le||X)(e.LFG(t.JF))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})();const $=new e.OlP("XSRF_COOKIE_NAME"),Ge=new e.OlP("XSRF_HEADER_NAME");class ut{}let Ee=(()=>{class X{constructor(Le,gt,Wt){this.doc=Le,this.platform=gt,this.cookieName=Wt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Le=this.doc.cookie||"";return Le!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,t.Mx)(Le,this.cookieName),this.lastCookieString=Le),this.lastToken}}return X.\u0275fac=function(Le){return new(Le||X)(e.LFG(t.K0),e.LFG(e.Lbi),e.LFG($))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})(),ye=(()=>{class X{constructor(Le,gt){this.tokenService=Le,this.headerName=gt}intercept(Le,gt){const Wt=Le.url.toLowerCase();if("GET"===Le.method||"HEAD"===Le.method||Wt.startsWith("http://")||Wt.startsWith("https://"))return gt.handle(Le);const Rt=this.tokenService.getToken();return null!==Rt&&!Le.headers.has(this.headerName)&&(Le=Le.clone({headers:Le.headers.set(this.headerName,Rt)})),gt.handle(Le)}}return X.\u0275fac=function(Le){return new(Le||X)(e.LFG(ut),e.LFG(Ge))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})(),he=(()=>{class X{constructor(Le,gt){this.backend=Le,this.injector=gt,this.chain=null}handle(Le){if(null===this.chain){const gt=this.injector.get(b,[]);this.chain=gt.reduceRight((Wt,Rt)=>new k(Wt,Rt),this.backend)}return this.chain.handle(Le)}}return X.\u0275fac=function(Le){return new(Le||X)(e.LFG(h),e.LFG(e.zs3))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})(),Y=(()=>{class X{static disable(){return{ngModule:X,providers:[{provide:ye,useClass:n}]}}static withOptions(Le={}){return{ngModule:X,providers:[Le.cookieName?{provide:$,useValue:Le.cookieName}:[],Le.headerName?{provide:Ge,useValue:Le.headerName}:[]]}}}return X.\u0275fac=function(Le){return new(Le||X)},X.\u0275mod=e.oAB({type:X}),X.\u0275inj=e.cJS({providers:[ye,{provide:b,useExisting:ye,multi:!0},{provide:ut,useClass:Ee},{provide:$,useValue:"XSRF-TOKEN"},{provide:Ge,useValue:"X-XSRF-TOKEN"}]}),X})(),j=(()=>{class X{}return X.\u0275fac=function(Le){return new(Le||X)},X.\u0275mod=e.oAB({type:X}),X.\u0275inj=e.cJS({providers:[D,{provide:R,useClass:he},Ie,{provide:h,useExisting:Ie}],imports:[Y.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),X})()},4650:(ke,J,p)=>{"use strict";p.d(J,{$8M:()=>T1,$Z:()=>Qo,AFp:()=>n6,ALo:()=>sm,AaK:()=>R,AsE:()=>_i,BQk:()=>g4,CHM:()=>ma,CRH:()=>vm,CZH:()=>eh,CqO:()=>Jh,D6c:()=>M8,DdM:()=>Jp,Dn7:()=>lm,EJc:()=>bg,EiD:()=>v2,EpF:()=>Tu,F$t:()=>Iu,F4k:()=>qh,FYo:()=>D2,FiY:()=>_l,G48:()=>Ng,Gf:()=>_m,GfV:()=>n3,GkF:()=>y3,Gpc:()=>E,Gre:()=>Gn,HOy:()=>tn,Hsn:()=>Ou,Ikx:()=>hr,JOm:()=>Go,JVY:()=>F0,Jf7:()=>k2,KtG:()=>La,L6k:()=>El,LAX:()=>$3,LFG:()=>Yr,LSH:()=>f1,Lbi:()=>_g,Lck:()=>Bp,MAs:()=>u4,MGl:()=>v4,MMx:()=>If,NdJ:()=>b3,O4$:()=>sn,OlP:()=>cr,Oqu:()=>oi,PXZ:()=>Og,PiD:()=>s0,Q6J:()=>h4,QGY:()=>_4,QP$:()=>$t,QbO:()=>vg,Qsj:()=>_d,R0b:()=>Po,RDi:()=>Sl,Rgc:()=>T4,SBq:()=>Lc,Sil:()=>Bm,Suo:()=>Wf,TTD:()=>wa,TgZ:()=>v3,Tol:()=>ff,Udp:()=>Bu,VKq:()=>Xp,W1O:()=>xm,WFA:()=>Au,WLB:()=>Qu,X6Q:()=>u8,XFs:()=>he,Xpm:()=>Ve,Xts:()=>Eo,Y36:()=>Ua,YKP:()=>zp,YNc:()=>Qh,Yjl:()=>rt,Yz7:()=>me,Z0I:()=>De,ZZ4:()=>P4,_Bn:()=>Vp,_UZ:()=>Eu,_Vd:()=>Ac,_c5:()=>Qg,_uU:()=>Zt,aQg:()=>v6,c2e:()=>yg,cJS:()=>Pe,cg1:()=>oa,d8E:()=>Gi,dDg:()=>Qm,dqk:()=>Wt,eBb:()=>d2,eFA:()=>e8,ekj:()=>y4,eoX:()=>qm,f3M:()=>Ul,g9A:()=>a6,h0i:()=>w3,hGG:()=>C8,hYB:()=>ku,hij:()=>pi,iGM:()=>gm,ifc:()=>gt,ip1:()=>Hm,jDz:()=>Zp,kEZ:()=>$p,kL8:()=>Hl,kcU:()=>ar,lG2:()=>Ae,lcZ:()=>qu,lnq:()=>Ci,lqb:()=>Dl,lri:()=>Km,mCW:()=>u1,n5z:()=>$s,n_E:()=>E4,oAB:()=>ct,oJD:()=>h1,oxw:()=>$h,pB0:()=>ed,q3G:()=>ba,qLn:()=>Ic,qOj:()=>p3,qZA:()=>f4,qzn:()=>jl,rWj:()=>jm,s9C:()=>Pu,sBO:()=>Rg,sIi:()=>tc,s_b:()=>Ju,soG:()=>th,tBr:()=>uc,tb:()=>Vm,tp0:()=>vl,uIk:()=>s4,vHH:()=>w,vpe:()=>ac,wAp:()=>On,xi3:()=>om,xp6:()=>y1,ynx:()=>m4,z2F:()=>nh,z3N:()=>Zo,zSh:()=>S2,zs3:()=>Ft});var t=p(7579),e=p(727),f=p(9751),C=p(6451),a=p(3099);function M(s){for(let c in s)if(s[c]===M)return c;throw Error("Could not find renamed property on target object.")}function d(s,c){for(const m in c)c.hasOwnProperty(m)&&!s.hasOwnProperty(m)&&(s[m]=c[m])}function R(s){if("string"==typeof s)return s;if(Array.isArray(s))return"["+s.map(R).join(", ")+"]";if(null==s)return""+s;if(s.overriddenName)return`${s.overriddenName}`;if(s.name)return`${s.name}`;const c=s.toString();if(null==c)return""+c;const m=c.indexOf("\n");return-1===m?c:c.substring(0,m)}function h(s,c){return null==s||""===s?null===c?"":c:null==c||""===c?s:s+" "+c}const I=M({__forward_ref__:M});function E(s){return s.__forward_ref__=E,s.toString=function(){return R(this())},s}function L(s){return T(s)?s():s}function T(s){return"function"==typeof s&&s.hasOwnProperty(I)&&s.__forward_ref__===E}class w extends Error{constructor(c,m){super(function G(s,c){return`NG0${Math.abs(s)}${c?": "+c.trim():""}`}(c,m)),this.code=c}}function K(s){return"string"==typeof s?s:null==s?"":String(s)}function ae(s,c){throw new w(-201,!1)}function n(s,c){null==s&&function _(s,c,m,A){throw new Error(`ASSERTION ERROR: ${s}`+(null==A?"":` [Expected=> ${m} ${A} ${c} <=Actual]`))}(c,s,null,"!=")}function me(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}function Pe(s){return{providers:s.providers||[],imports:s.imports||[]}}function Oe(s){return ue(s,Ge)||ue(s,Ee)}function De(s){return null!==Oe(s)}function ue(s,c){return s.hasOwnProperty(c)?s[c]:null}function $(s){return s&&(s.hasOwnProperty(ut)||s.hasOwnProperty(ye))?s[ut]:null}const Ge=M({\u0275prov:M}),ut=M({\u0275inj:M}),Ee=M({ngInjectableDef:M}),ye=M({ngInjectorDef:M});var he=(()=>((he=he||{})[he.Default=0]="Default",he[he.Host=1]="Host",he[he.Self=2]="Self",he[he.SkipSelf=4]="SkipSelf",he[he.Optional=8]="Optional",he))();let de;function Y(s){const c=de;return de=s,c}function j(s,c,m){const A=Oe(s);return A&&"root"==A.providedIn?void 0===A.value?A.value=A.factory():A.value:m&he.Optional?null:void 0!==c?c:void ae(R(s))}function Se(s){return{toString:s}.toString()}var X=(()=>((X=X||{})[X.OnPush=0]="OnPush",X[X.Default=1]="Default",X))(),gt=(()=>{return(s=gt||(gt={}))[s.Emulated=0]="Emulated",s[s.None=2]="None",s[s.ShadowDom=3]="ShadowDom",gt;var s})();const Wt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),hi={},yt=[],Pt=M({\u0275cmp:M}),pt=M({\u0275dir:M}),vt=M({\u0275pipe:M}),Ct=M({\u0275mod:M}),At=M({\u0275fac:M}),dt=M({__NG_ELEMENT_ID__:M});let ze=0;function Ve(s){return Se(()=>{const m=!0===s.standalone,A={},z={type:s.type,providersResolver:null,decls:s.decls,vars:s.vars,factory:null,template:s.template||null,consts:s.consts||null,ngContentSelectors:s.ngContentSelectors,hostBindings:s.hostBindings||null,hostVars:s.hostVars||0,hostAttrs:s.hostAttrs||null,contentQueries:s.contentQueries||null,declaredInputs:A,inputs:null,outputs:null,exportAs:s.exportAs||null,onPush:s.changeDetection===X.OnPush,directiveDefs:null,pipeDefs:null,standalone:m,dependencies:m&&s.dependencies||null,getStandaloneInjector:null,selectors:s.selectors||yt,viewQuery:s.viewQuery||null,features:s.features||null,data:s.data||{},encapsulation:s.encapsulation||gt.Emulated,id:"c"+ze++,styles:s.styles||yt,_:null,setInput:null,schemas:s.schemas||null,tView:null},Z=s.dependencies,oe=s.features;return z.inputs=et(s.inputs,A),z.outputs=et(s.outputs),oe&&oe.forEach(Me=>Me(z)),z.directiveDefs=Z?()=>("function"==typeof Z?Z():Z).map(be).filter(xt):null,z.pipeDefs=Z?()=>("function"==typeof Z?Z():Z).map(mt).filter(xt):null,z})}function be(s){return Qe(s)||Ke(s)}function xt(s){return null!==s}function ct(s){return Se(()=>({type:s.type,bootstrap:s.bootstrap||yt,declarations:s.declarations||yt,imports:s.imports||yt,exports:s.exports||yt,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null}))}function et(s,c){if(null==s)return hi;const m={};for(const A in s)if(s.hasOwnProperty(A)){let z=s[A],Z=z;Array.isArray(z)&&(Z=z[1],z=z[0]),m[z]=A,c&&(c[z]=Z)}return m}const Ae=Ve;function rt(s){return{type:s.type,name:s.name,factory:null,pure:!1!==s.pure,standalone:!0===s.standalone,onDestroy:s.type.prototype.ngOnDestroy||null}}function Qe(s){return s[Pt]||null}function Ke(s){return s[pt]||null}function mt(s){return s[vt]||null}function $t(s){const c=Qe(s)||Ke(s)||mt(s);return null!==c&&c.standalone}function Gt(s,c){const m=s[Ct]||null;if(!m&&!0===c)throw new Error(`Type ${R(s)} does not have '\u0275mod' property.`);return m}function Li(s){return Array.isArray(s)&&"object"==typeof s[1]}function Ri(s){return Array.isArray(s)&&!0===s[1]}function Dn(s){return 0!=(8&s.flags)}function Zn(s){return 2==(2&s.flags)}function Nn(s){return 1==(1&s.flags)}function Qn(s){return null!==s.template}function An(s){return 0!=(256&s[2])}function ta(s,c){return s.hasOwnProperty(At)?s[At]:null}class as{constructor(c,m,A){this.previousValue=c,this.currentValue=m,this.firstChange=A}isFirstChange(){return this.firstChange}}function wa(){return As}function As(s){return s.type.prototype.ngOnChanges&&(s.setInput=Sa),Rr}function Rr(){const s=_s(this),c=s?.current;if(c){const m=s.previous;if(m===hi)s.previous=c;else for(let A in c)m[A]=c[A];s.current=null,this.ngOnChanges(c)}}function Sa(s,c,m,A){const z=_s(s)||function ss(s,c){return s[yr]=c}(s,{previous:hi,current:null}),Z=z.current||(z.current={}),oe=z.previous,Me=this.declaredInputs[m],Re=oe[Me];Z[Me]=new as(Re&&Re.currentValue,c,oe===hi),s[A]=c}wa.ngInherit=!0;const yr="__ngSimpleChanges__";function _s(s){return s[yr]||null}function nr(s){for(;Array.isArray(s);)s=s[0];return s}function Ta(s,c){return nr(c[s])}function Zr(s,c){return nr(c[s.index])}function Aa(s,c){return s.data[c]}function Tr(s,c){return s[c]}function Jn(s,c){const m=c[s];return Li(m)?m:m[0]}function rr(s){return 64==(64&s[2])}function jr(s,c){return null==c?null:s[c]}function ys(s){s[18]=0}function ls(s,c){s[5]+=c;let m=s,A=s[3];for(;null!==A&&(1===c&&1===m[5]||-1===c&&0===m[5]);)A[5]+=c,m=A,A=A[3]}const St={lFrame:xo(null),bindingsEnabled:!0};function Kn(){return St.bindingsEnabled}function Di(){return St.lFrame.lView}function on(){return St.lFrame.tView}function ma(s){return St.lFrame.contextLView=s,s[8]}function La(s){return St.lFrame.contextLView=null,s}function br(){let s=Ze();for(;null!==s&&64===s.type;)s=s.parent;return s}function Ze(){return St.lFrame.currentTNode}function He(s,c){const m=St.lFrame;m.currentTNode=s,m.isParent=c}function Lt(){return St.lFrame.isParent}function vi(){St.lFrame.isParent=!1}function xr(){const s=St.lFrame;let c=s.bindingRootIndex;return-1===c&&(c=s.bindingRootIndex=s.tView.bindingStartIndex),c}function qa(){return St.lFrame.bindingIndex}function qs(){return St.lFrame.bindingIndex++}function bs(s){const c=St.lFrame,m=c.bindingIndex;return c.bindingIndex=c.bindingIndex+s,m}function Js(s,c){const m=St.lFrame;m.bindingIndex=m.bindingRootIndex=s,Vs(c)}function Vs(s){St.lFrame.currentDirectiveIndex=s}function zs(s){const c=St.lFrame.currentDirectiveIndex;return-1===c?null:s[c]}function Xs(){return St.lFrame.currentQueryIndex}function Is(s){St.lFrame.currentQueryIndex=s}function Ra(s){const c=s[1];return 2===c.type?c.declTNode:1===c.type?s[6]:null}function vr(s,c,m){if(m&he.SkipSelf){let z=c,Z=s;for(;!(z=z.parent,null!==z||m&he.Host||(z=Ra(Z),null===z||(Z=Z[15],10&z.type))););if(null===z)return!1;c=z,s=Z}const A=St.lFrame=xs();return A.currentTNode=c,A.lView=s,!0}function Ni(s){const c=xs(),m=s[1];St.lFrame=c,c.currentTNode=m.firstChild,c.lView=s,c.tView=m,c.contextLView=s,c.bindingIndex=m.bindingStartIndex,c.inI18n=!1}function xs(){const s=St.lFrame,c=null===s?null:s.child;return null===c?xo(s):c}function xo(s){const c={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:s,child:null,inI18n:!1};return null!==s&&(s.child=c),c}function Bi(){const s=St.lFrame;return St.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const Ne=Bi;function ft(){const s=Bi();s.isParent=!0,s.tView=null,s.selectedIndex=-1,s.contextLView=null,s.elementDepthCount=0,s.currentDirectiveIndex=-1,s.currentNamespace=null,s.bindingRootIndex=-1,s.bindingIndex=-1,s.currentQueryIndex=0}function ii(){return St.lFrame.selectedIndex}function yi(s){St.lFrame.selectedIndex=s}function Mi(){const s=St.lFrame;return Aa(s.tView,s.selectedIndex)}function sn(){St.lFrame.currentNamespace="svg"}function ar(){!function pr(){St.lFrame.currentNamespace=null}()}function lr(s,c){for(let m=c.directiveStart,A=c.directiveEnd;m<A;m++){const Z=s.data[m].type.prototype,{ngAfterContentInit:oe,ngAfterContentChecked:Me,ngAfterViewInit:Re,ngAfterViewChecked:lt,ngOnDestroy:Ot}=Z;oe&&(s.contentHooks||(s.contentHooks=[])).push(-m,oe),Me&&((s.contentHooks||(s.contentHooks=[])).push(m,Me),(s.contentCheckHooks||(s.contentCheckHooks=[])).push(m,Me)),Re&&(s.viewHooks||(s.viewHooks=[])).push(-m,Re),lt&&((s.viewHooks||(s.viewHooks=[])).push(m,lt),(s.viewCheckHooks||(s.viewCheckHooks=[])).push(m,lt)),null!=Ot&&(s.destroyHooks||(s.destroyHooks=[])).push(m,Ot)}}function Xn(s,c,m){en(s,c,3,m)}function Da(s,c,m,A){(3&s[2])===m&&en(s,c,m,A)}function ga(s,c){let m=s[2];(3&m)===c&&(m&=2047,m+=1,s[2]=m)}function en(s,c,m,A){const Z=A??-1,oe=c.length-1;let Me=0;for(let Re=void 0!==A?65535&s[18]:0;Re<oe;Re++)if("number"==typeof c[Re+1]){if(Me=c[Re],null!=A&&Me>=A)break}else c[Re]<0&&(s[18]+=65536),(Me<Z||-1==Z)&&(Cs(s,m,c,Re),s[18]=(4294901760&s[18])+Re+2),Re++}function Cs(s,c,m,A){const z=m[A]<0,Z=m[A+1],Me=s[z?-m[A]:m[A]];if(z){if(s[2]>>11<s[18]>>16&&(3&s[2])===c){s[2]+=2048;try{Z.call(Me)}finally{}}}else try{Z.call(Me)}finally{}}class cs{constructor(c,m,A){this.factory=c,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=A}}function tr(s,c,m){let A=0;for(;A<m.length;){const z=m[A];if("number"==typeof z){if(0!==z)break;A++;const Z=m[A++],oe=m[A++],Me=m[A++];s.setAttribute(c,oe,Me,Z)}else{const Z=z,oe=m[++A];st(Z)?s.setProperty(c,Z,oe):s.setAttribute(c,Z,oe),A++}}return A}function ds(s){return 3===s||4===s||6===s}function st(s){return 64===s.charCodeAt(0)}function wt(s,c){if(null!==c&&0!==c.length)if(null===s||0===s.length)s=c.slice();else{let m=-1;for(let A=0;A<c.length;A++){const z=c[A];"number"==typeof z?m=z:0===m||Tt(s,m,z,null,-1===m||2===m?c[++A]:null)}}return s}function Tt(s,c,m,A,z){let Z=0,oe=s.length;if(-1===c)oe=-1;else for(;Z<s.length;){const Me=s[Z++];if("number"==typeof Me){if(Me===c){oe=-1;break}if(Me>c){oe=Z-1;break}}}for(;Z<s.length;){const Me=s[Z];if("number"==typeof Me)break;if(Me===m){if(null===A)return void(null!==z&&(s[Z+1]=z));if(A===s[Z+1])return void(s[Z+2]=z)}Z++,null!==A&&Z++,null!==z&&Z++}-1!==oe&&(s.splice(oe,0,c),Z=oe+1),s.splice(Z++,0,m),null!==A&&s.splice(Z++,0,A),null!==z&&s.splice(Z++,0,z)}function Ht(s){return-1!==s}function $e(s){return 32767&s}function ui(s,c){let m=function ai(s){return s>>16}(s),A=c;for(;m>0;)A=A[15],m--;return A}let ri=!0;function Ai(s){const c=ri;return ri=s,c}let Tn=0;const wn={};function ya(s,c){const m=na(s,c);if(-1!==m)return m;const A=c[1];A.firstCreatePass&&(s.injectorIndex=c.length,ia(A.data,s),ia(c,null),ia(A.blueprint,null));const z=Wr(s,c),Z=s.injectorIndex;if(Ht(z)){const oe=$e(z),Me=ui(z,c),Re=Me[1].data;for(let lt=0;lt<8;lt++)c[Z+lt]=Me[oe+lt]|Re[oe+lt]}return c[Z+8]=z,Z}function ia(s,c){s.push(0,0,0,0,0,0,0,0,c)}function na(s,c){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===c[s.injectorIndex+8]?-1:s.injectorIndex}function Wr(s,c){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let m=0,A=null,z=c;for(;null!==z;){if(A=Bs(z),null===A)return-1;if(m++,z=z[15],-1!==A.injectorIndex)return A.injectorIndex|m<<16}return-1}function wr(s,c,m){!function va(s,c,m){let A;"string"==typeof m?A=m.charCodeAt(0)||0:m.hasOwnProperty(dt)&&(A=m[dt]),null==A&&(A=m[dt]=Tn++);const z=255&A;c.data[s+(z>>5)]|=1<<z}(s,c,m)}function Br(s,c,m){if(m&he.Optional||void 0!==s)return s;ae()}function Os(s,c,m,A){if(m&he.Optional&&void 0===A&&(A=null),0==(m&(he.Self|he.Host))){const z=s[9],Z=Y(void 0);try{return z?z.get(c,A,m&he.Optional):j(c,A,m&he.Optional)}finally{Y(Z)}}return Br(A,0,m)}function $n(s,c,m,A=he.Default,z){if(null!==s){if(1024&c[2]){const oe=function lc(s,c,m,A,z){let Z=s,oe=c;for(;null!==Z&&null!==oe&&1024&oe[2]&&!(256&oe[2]);){const Me=Ms(Z,oe,m,A|he.Self,wn);if(Me!==wn)return Me;let Re=Z.parent;if(!Re){const lt=oe[21];if(lt){const Ot=lt.get(m,wn,A);if(Ot!==wn)return Ot}Re=Bs(oe),oe=oe[15]}Z=Re}return z}(s,c,m,A,wn);if(oe!==wn)return oe}const Z=Ms(s,c,m,A,wn);if(Z!==wn)return Z}return Os(c,m,A,z)}function Ms(s,c,m,A,z){const Z=function sc(s){if("string"==typeof s)return s.charCodeAt(0)||0;const c=s.hasOwnProperty(dt)?s[dt]:void 0;return"number"==typeof c?c>=0?255&c:E1:c}(m);if("function"==typeof Z){if(!vr(c,s,A))return A&he.Host?Br(z,0,A):Os(c,m,A,z);try{const oe=Z(A);if(null!=oe||A&he.Optional)return oe;ae()}finally{Ne()}}else if("number"==typeof Z){let oe=null,Me=na(s,c),Re=-1,lt=A&he.Host?c[16][6]:null;for((-1===Me||A&he.SkipSelf)&&(Re=-1===Me?Wr(s,c):c[Me+8],-1!==Re&&oc(A,!1)?(oe=c[1],Me=$e(Re),c=ui(Re,c)):Me=-1);-1!==Me;){const Ot=c[1];if(jc(Z,Me,Ot.data)){const Kt=Ps(Me,c,m,oe,A,lt);if(Kt!==wn)return Kt}Re=c[Me+8],-1!==Re&&oc(A,c[1].data[Me+8]===lt)&&jc(Z,Me,c)?(oe=Ot,Me=$e(Re),c=ui(Re,c)):Me=-1}}return z}function Ps(s,c,m,A,z,Z){const oe=c[1],Me=oe.data[s+8],Ot=ao(Me,oe,m,null==A?Zn(Me)&&ri:A!=oe&&0!=(3&Me.type),z&he.Host&&Z===Me);return null!==Ot?Mo(c,oe,Ot,Me):wn}function ao(s,c,m,A,z){const Z=s.providerIndexes,oe=c.data,Me=1048575&Z,Re=s.directiveStart,Ot=Z>>20,li=z?Me+Ot:s.directiveEnd;for(let gi=A?Me:Me+Ot;gi<li;gi++){const Oi=oe[gi];if(gi<Re&&m===Oi||gi>=Re&&Oi.type===m)return gi}if(z){const gi=oe[Re];if(gi&&Qn(gi)&&gi.type===m)return Re}return null}function Mo(s,c,m,A){let z=s[m];const Z=c.data;if(function ro(s){return s instanceof cs}(z)){const oe=z;oe.resolving&&function re(s,c){const m=c?`. Dependency path: ${c.join(" > ")} > ${s}`:"";throw new w(-200,`Circular dependency in DI detected for ${s}${m}`)}(function Q(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():K(s)}(Z[m]));const Me=Ai(oe.canSeeViewProviders);oe.resolving=!0;const Re=oe.injectImpl?Y(oe.injectImpl):null;vr(s,A,he.Default);try{z=s[m]=oe.factory(void 0,Z,s,A),c.firstCreatePass&&m>=A.directiveStart&&function Vr(s,c,m){const{ngOnChanges:A,ngOnInit:z,ngDoCheck:Z}=c.type.prototype;if(A){const oe=As(c);(m.preOrderHooks||(m.preOrderHooks=[])).push(s,oe),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(s,oe)}z&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-s,z),Z&&((m.preOrderHooks||(m.preOrderHooks=[])).push(s,Z),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(s,Z))}(m,Z[m],c)}finally{null!==Re&&Y(Re),Ai(Me),oe.resolving=!1,Ne()}}return z}function jc(s,c,m){return!!(m[c+(s>>5)]&1<<s)}function oc(s,c){return!(s&he.Self||s&he.Host&&c)}class ml{constructor(c,m){this._tNode=c,this._lView=m}get(c,m,A){return $n(this._tNode,this._lView,c,A,m)}}function E1(){return new ml(br(),Di())}function $s(s){return Se(()=>{const c=s.prototype.constructor,m=c[At]||Ro(c),A=Object.prototype;let z=Object.getPrototypeOf(s.prototype).constructor;for(;z&&z!==A;){const Z=z[At]||Ro(z);if(Z&&Z!==m)return Z;z=Object.getPrototypeOf(z)}return Z=>new Z})}function Ro(s){return T(s)?()=>{const c=Ro(L(s));return c&&c()}:ta(s)}function Bs(s){const c=s[1],m=c.type;return 2===m?c.declTNode:1===m?s[6]:null}function T1(s){return function us(s,c){if("class"===c)return s.classes;if("style"===c)return s.styles;const m=s.attrs;if(m){const A=m.length;let z=0;for(;z<A;){const Z=m[z];if(ds(Z))break;if(0===Z)z+=2;else if("number"==typeof Z)for(z++;z<A&&"string"==typeof m[z];)z++;else{if(Z===c)return m[z+1];z+=2}}}return null}(br(),s)}const ks="__parameters__";function Ho(s,c,m){return Se(()=>{const A=function gl(s){return function(...m){if(s){const A=s(...m);for(const z in A)this[z]=A[z]}}}(c);function z(...Z){if(this instanceof z)return A.apply(this,Z),this;const oe=new z(...Z);return Me.annotation=oe,Me;function Me(Re,lt,Ot){const Kt=Re.hasOwnProperty(ks)?Re[ks]:Object.defineProperty(Re,ks,{value:[]})[ks];for(;Kt.length<=Ot;)Kt.push(null);return(Kt[Ot]=Kt[Ot]||[]).push(oe),Re}}return m&&(z.prototype=Object.create(m.prototype)),z.prototype.ngMetadataName=s,z.annotationCls=z,z})}class cr{constructor(c,m){this._desc=c,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=me({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Xa(s,c){void 0===c&&(c=s);for(let m=0;m<s.length;m++){let A=s[m];Array.isArray(A)?(c===s&&(c=s.slice(0,m)),Xa(A,c)):c!==s&&c.push(A)}return c}function eo(s,c){s.forEach(m=>Array.isArray(m)?eo(m,c):c(m))}function P1(s,c,m){c>=s.length?s.push(m):s.splice(c,0,m)}function ge(s,c){return c>=s.length-1?s.pop():s.splice(c,1)[0]}function xe(s,c){const m=[];for(let A=0;A<s;A++)m.push(c);return m}function bi(s,c,m){let A=Rn(s,c);return A>=0?s[1|A]=m:(A=~A,function tt(s,c,m,A){let z=s.length;if(z==c)s.push(m,A);else if(1===z)s.push(A,s[0]),s[0]=m;else{for(z--,s.push(s[z-1],s[z]);z>c;)s[z]=s[z-2],z--;s[c]=m,s[c+1]=A}}(s,A,c,m)),A}function Xi(s,c){const m=Rn(s,c);if(m>=0)return s[1|m]}function Rn(s,c){return function mn(s,c,m){let A=0,z=s.length>>m;for(;z!==A;){const Z=A+(z-A>>1),oe=s[Z<<m];if(c===oe)return Z<<m;oe>c?z=Z:A=Z+1}return~(z<<m)}(s,c,1)}const hs={},uo="__NG_DI_FLAG__",So="ngTempTokenPath",n0=/\n/gm,Bl="__source";let Bo;function Ur(s){const c=Bo;return Bo=s,c}function dc(s,c=he.Default){if(void 0===Bo)throw new w(-203,!1);return null===Bo?j(s,void 0,c):Bo.get(s,c&he.Optional?null:void 0,c)}function Yr(s,c=he.Default){return(function we(){return de}()||dc)(L(s),c)}function Ul(s,c=he.Default){return"number"!=typeof c&&(c=0|(c.optional&&8)|(c.host&&1)|(c.self&&2)|(c.skipSelf&&4)),Yr(s,c)}function ho(s){const c=[];for(let m=0;m<s.length;m++){const A=L(s[m]);if(Array.isArray(A)){if(0===A.length)throw new w(900,!1);let z,Z=he.Default;for(let oe=0;oe<A.length;oe++){const Me=A[oe],Re=r0(Me);"number"==typeof Re?-1===Re?z=Me.token:Z|=Re:z=Me}c.push(Yr(z,Z))}else c.push(Yr(A))}return c}function Qc(s,c){return s[uo]=c,s.prototype[uo]=c,s}function r0(s){return s[uo]}const uc=Qc(Ho("Inject",s=>({token:s})),-1),_l=Qc(Ho("Optional"),8),s0=Qc(Ho("Self"),2),vl=Qc(Ho("SkipSelf"),4);var Go=(()=>((Go=Go||{})[Go.Important=1]="Important",Go[Go.DashCase=2]="DashCase",Go))();const p0=new Map;let m0=0;const G1="__ngContext__";function $a(s,c){Li(c)?(s[G1]=c[20],function B1(s){p0.set(s[20],s)}(c)):s[G1]=c}function Y1(s,c){return undefined(s,c)}function Va(s){const c=s[3];return Ri(c)?c[3]:c}function K1(s){return v0(s[13])}function j1(s){return v0(s[4])}function v0(s){for(;null!==s&&!Ri(s);)s=s[4];return s}function Yl(s,c,m,A,z){if(null!=A){let Z,oe=!1;Ri(A)?Z=A:Li(A)&&(oe=!0,A=A[0]);const Me=nr(A);0===s&&null!==m?null==z?e2(c,m,Me):Ml(c,m,Me,z||null,!0):1===s&&null!==m?Ml(c,m,Me,z||null,!0):2===s?function o1(s,c,m){const A=n1(s,c);A&&function K3(s,c,m,A){s.removeChild(c,m,A)}(s,A,c,m)}(c,Me,oe):3===s&&c.destroyNode(Me),null!=Z&&function D0(s,c,m,A,z){const Z=m[7];Z!==nr(m)&&Yl(c,s,A,Z,z);for(let Me=10;Me<m.length;Me++){const Re=m[Me];xc(Re[1],Re,s,c,A,Z)}}(c,s,Z,m,z)}}function Cl(s,c,m){return s.createElement(c,m)}function C0(s,c){const m=s[9],A=m.indexOf(c),z=c[3];512&c[2]&&(c[2]&=-513,ls(z,-1)),m.splice(A,1)}function nl(s,c){if(s.length<=10)return;const m=10+c,A=s[m];if(A){const z=A[17];null!==z&&z!==s&&C0(z,A),c>0&&(s[m-1][4]=A[4]);const Z=ge(s,10+c);!function b0(s,c){xc(s,c,c[11],2,null,null),c[0]=null,c[6]=null}(A[1],A);const oe=Z[19];null!==oe&&oe.detachView(Z[1]),A[3]=null,A[4]=null,A[2]&=-65}return A}function J1(s,c){if(!(128&c[2])){const m=c[11];m.destroyNode&&xc(s,c,m,3,null,null),function G3(s){let c=s[13];if(!c)return X1(s[1],s);for(;c;){let m=null;if(Li(c))m=c[13];else{const A=c[10];A&&(m=A)}if(!m){for(;c&&!c[4]&&c!==s;)Li(c)&&X1(c[1],c),c=c[3];null===c&&(c=s),Li(c)&&X1(c[1],c),m=c&&c[4]}c=m}}(c)}}function X1(s,c){if(!(128&c[2])){c[2]&=-65,c[2]|=128,function Y3(s,c){let m;if(null!=s&&null!=(m=s.destroyHooks))for(let A=0;A<m.length;A+=2){const z=c[m[A]];if(!(z instanceof cs)){const Z=m[A+1];if(Array.isArray(Z))for(let oe=0;oe<Z.length;oe+=2){const Me=z[Z[oe]],Re=Z[oe+1];try{Re.call(Me)}finally{}}else try{Z.call(z)}finally{}}}}(s,c),function W3(s,c){const m=s.cleanup,A=c[7];let z=-1;if(null!==m)for(let Z=0;Z<m.length-1;Z+=2)if("string"==typeof m[Z]){const oe=m[Z+1],Me="function"==typeof oe?oe(c):nr(c[oe]),Re=A[z=m[Z+2]],lt=m[Z+3];"boolean"==typeof lt?Me.removeEventListener(m[Z],Re,lt):lt>=0?A[z=lt]():A[z=-lt].unsubscribe(),Z+=2}else{const oe=A[z=m[Z+1]];m[Z].call(oe)}if(null!==A){for(let Z=z+1;Z<A.length;Z++)(0,A[Z])();c[7]=null}}(s,c),1===c[1].type&&c[11].destroy();const m=c[17];if(null!==m&&Ri(c[3])){m!==c[3]&&C0(m,c);const A=c[19];null!==A&&A.detachView(s)}!function Wl(s){p0.delete(s[20])}(c)}}function $1(s,c,m){return function M0(s,c,m){let A=c;for(;null!==A&&40&A.type;)A=(c=A).parent;if(null===A)return m[0];if(2&A.flags){const z=s.data[A.directiveStart].encapsulation;if(z===gt.None||z===gt.Emulated)return null}return Zr(A,m)}(s,c.parent,m)}function Ml(s,c,m,A,z){s.insertBefore(c,m,A,z)}function e2(s,c,m){s.appendChild(c,m)}function t2(s,c,m,A,z){null!==A?Ml(s,c,m,A,z):e2(s,c,m)}function n1(s,c){return s.parentNode(c)}function w0(s,c,m){return E0(s,c,m)}let Cc,l1,c1,E0=function S0(s,c,m){return 40&s.type?Zr(s,m):null};function bc(s,c,m,A){const z=$1(s,A,c),Z=c[11],Me=w0(A.parent||c[6],A,c);if(null!=z)if(Array.isArray(m))for(let Re=0;Re<m.length;Re++)t2(Z,z,m[Re],Me,!1);else t2(Z,z,m,Me,!1)}function a1(s,c){if(null!==c){const m=c.type;if(3&m)return Zr(c,s);if(4&m)return n2(-1,s[c.index]);if(8&m){const A=c.child;if(null!==A)return a1(s,A);{const z=s[c.index];return Ri(z)?n2(-1,z):nr(z)}}if(32&m)return Y1(c,s)()||nr(s[c.index]);{const A=s1(s,c);return null!==A?Array.isArray(A)?A[0]:a1(Va(s[16]),A):a1(s,c.next)}}return null}function s1(s,c){return null!==c?s[16][6].projection[c.projection]:null}function n2(s,c){const m=10+s+1;if(m<c.length){const A=c[m],z=A[1].firstChild;if(null!==z)return a1(A,z)}return c[7]}function r2(s,c,m,A,z,Z,oe){for(;null!=m;){const Me=A[m.index],Re=m.type;if(oe&&0===c&&(Me&&$a(nr(Me),A),m.flags|=4),64!=(64&m.flags))if(8&Re)r2(s,c,m.child,A,z,Z,!1),Yl(c,s,z,Me,Z);else if(32&Re){const lt=Y1(m,A);let Ot;for(;Ot=lt();)Yl(c,s,z,Ot,Z);Yl(c,s,z,Me,Z)}else 16&Re?L0(s,c,A,m,z,Z):Yl(c,s,z,Me,Z);m=oe?m.projectionNext:m.next}}function xc(s,c,m,A,z,Z){r2(m,A,s.firstChild,c,z,Z,!1)}function L0(s,c,m,A,z,Z){const oe=m[16],Re=oe[6].projection[A.projection];if(Array.isArray(Re))for(let lt=0;lt<Re.length;lt++)Yl(c,s,z,Re[lt],Z);else r2(s,c,Re,oe[3],z,Z,!0)}function O0(s,c,m){s.setAttribute(c,"style",m)}function a2(s,c,m){""===m?s.removeAttribute(c,"class"):s.setAttribute(c,"class",m)}function wl(s){return function s2(){if(void 0===Cc&&(Cc=null,Wt.trustedTypes))try{Cc=Wt.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return Cc}()?.createHTML(s)||s}function Sl(s){l1=s}function k0(s){return function c2(){if(void 0===c1&&(c1=null,Wt.trustedTypes))try{c1=Wt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return c1}()?.createHTML(s)||s}class Kl{constructor(c){this.changingThisBreaksApplicationSecurity=c}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class N0 extends Kl{getTypeName(){return"HTML"}}class X3 extends Kl{getTypeName(){return"Style"}}class W4 extends Kl{getTypeName(){return"Script"}}class Y4 extends Kl{getTypeName(){return"URL"}}class R0 extends Kl{getTypeName(){return"ResourceURL"}}function Zo(s){return s instanceof Kl?s.changingThisBreaksApplicationSecurity:s}function jl(s,c){const m=function H0(s){return s instanceof Kl&&s.getTypeName()||null}(s);if(null!=m&&m!==c){if("ResourceURL"===m&&"URL"===c)return!0;throw new Error(`Required a safe ${c}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===c}function F0(s){return new N0(s)}function El(s){return new X3(s)}function d2(s){return new W4(s)}function $3(s){return new Y4(s)}function ed(s){return new R0(s)}class V0{constructor(c){this.inertDocumentHelper=c}getInertBodyElement(c){c="<body><remove></remove>"+c;try{const m=(new window.DOMParser).parseFromString(wl(c),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(c):(m.removeChild(m.firstChild),m)}catch{return null}}}class h2{constructor(c){if(this.defaultDoc=c,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const A=this.inertDocument.createElement("body");m.appendChild(A)}}getInertBodyElement(c){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=wl(c),m;const A=this.inertDocument.createElement("body");return A.innerHTML=wl(c),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(A),A}stripCustomNsAttrs(c){const m=c.attributes;for(let z=m.length-1;0<z;z--){const oe=m.item(z).name;("xmlns:ns1"===oe||0===oe.indexOf("ns1:"))&&c.removeAttribute(oe)}let A=c.firstChild;for(;A;)A.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(A),A=A.nextSibling}}const Mc=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function u1(s){return(s=String(s)).match(Mc)?s:"unsafe:"+s}function Wo(s){const c={};for(const m of s.split(","))c[m]=!0;return c}function wc(...s){const c={};for(const m of s)for(const A in m)m.hasOwnProperty(A)&&(c[A]=!0);return c}const f2=Wo("area,br,col,hr,img,wbr"),p2=Wo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),B0=Wo("rp,rt"),g2=wc(f2,wc(p2,Wo("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")),wc(B0,Wo("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")),wc(B0,p2)),Ql=Wo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),G0=wc(Ql,Wo("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"),Wo("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")),Z0=Wo("script,style,template");class id{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(c){let m=c.firstChild,A=!0;for(;m;)if(m.nodeType===Node.ELEMENT_NODE?A=this.startElement(m):m.nodeType===Node.TEXT_NODE?this.chars(m.nodeValue):this.sanitizedSomething=!0,A&&m.firstChild)m=m.firstChild;else for(;m;){m.nodeType===Node.ELEMENT_NODE&&this.endElement(m);let z=this.checkClobberedElement(m,m.nextSibling);if(z){m=z;break}m=this.checkClobberedElement(m,m.parentNode)}return this.buf.join("")}startElement(c){const m=c.nodeName.toLowerCase();if(!g2.hasOwnProperty(m))return this.sanitizedSomething=!0,!Z0.hasOwnProperty(m);this.buf.push("<"),this.buf.push(m);const A=c.attributes;for(let z=0;z<A.length;z++){const Z=A.item(z),oe=Z.name,Me=oe.toLowerCase();if(!G0.hasOwnProperty(Me)){this.sanitizedSomething=!0;continue}let Re=Z.value;Ql[Me]&&(Re=u1(Re)),this.buf.push(" ",oe,'="',_2(Re),'"')}return this.buf.push(">"),!0}endElement(c){const m=c.nodeName.toLowerCase();g2.hasOwnProperty(m)&&!f2.hasOwnProperty(m)&&(this.buf.push("</"),this.buf.push(m),this.buf.push(">"))}chars(c){this.buf.push(_2(c))}checkClobberedElement(c,m){if(m&&(c.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${c.outerHTML}`);return m}}const W0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Y0=/([^\#-~ |!])/g;function _2(s){return s.replace(/&/g,"&amp;").replace(W0,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(Y0,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ec;function v2(s,c){let m=null;try{Ec=Ec||function u2(s){const c=new h2(s);return function z0(){try{return!!(new window.DOMParser).parseFromString(wl(""),"text/html")}catch{return!1}}()?new V0(c):c}(s);let A=c?String(c):"";m=Ec.getInertBodyElement(A);let z=5,Z=A;do{if(0===z)throw new Error("Failed to sanitize html because the input is unstable");z--,A=Z,Z=m.innerHTML,m=Ec.getInertBodyElement(A)}while(A!==Z);return wl((new id).sanitizeChildren(y2(m)||m))}finally{if(m){const A=y2(m)||m;for(;A.firstChild;)A.removeChild(A.firstChild)}}}function y2(s){return"content"in s&&function nd(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var ba=(()=>((ba=ba||{})[ba.NONE=0]="NONE",ba[ba.HTML=1]="HTML",ba[ba.STYLE=2]="STYLE",ba[ba.SCRIPT=3]="SCRIPT",ba[ba.URL=4]="URL",ba[ba.RESOURCE_URL=5]="RESOURCE_URL",ba))();function h1(s){const c=Al();return c?k0(c.sanitize(ba.HTML,s)||""):jl(s,"HTML")?k0(Zo(s)):v2(function l2(){return void 0!==l1?l1:typeof document<"u"?document:void 0}(),K(s))}function f1(s){const c=Al();return c?c.sanitize(ba.URL,s)||"":jl(s,"URL")?Zo(s):u1(K(s))}function Al(){const s=Di();return s&&s[12]}const Eo=new cr("ENVIRONMENT_INITIALIZER"),b2=new cr("INJECTOR",-1),x2=new cr("INJECTOR_DEF_TYPES");class es{get(c,m=hs){if(m===hs){const A=new Error(`NullInjectorError: No provider for ${R(c)}!`);throw A.name="NullInjectorError",A}return m}}function J0(...s){return{\u0275providers:C2(0,s)}}function C2(s,...c){const m=[],A=new Set;let z;return eo(c,Z=>{const oe=Z;M2(oe,m,[],A)&&(z||(z=[]),z.push(oe))}),void 0!==z&&X0(z,m),m}function X0(s,c){for(let m=0;m<s.length;m++){const{providers:z}=s[m];eo(z,Z=>{c.push(Z)})}}function M2(s,c,m,A){if(!(s=L(s)))return!1;let z=null,Z=$(s);const oe=!Z&&Qe(s);if(Z||oe){if(oe&&!oe.standalone)return!1;z=s}else{const Re=s.ngModule;if(Z=$(Re),!Z)return!1;z=Re}const Me=A.has(z);if(oe){if(Me)return!1;if(A.add(z),oe.dependencies){const Re="function"==typeof oe.dependencies?oe.dependencies():oe.dependencies;for(const lt of Re)M2(lt,c,m,A)}}else{if(!Z)return!1;{if(null!=Z.imports&&!Me){let lt;A.add(z);try{eo(Z.imports,Ot=>{M2(Ot,c,m,A)&&(lt||(lt=[]),lt.push(Ot))})}finally{}void 0!==lt&&X0(lt,c)}if(!Me){const lt=ta(z)||(()=>new z);c.push({provide:z,useFactory:lt,deps:yt},{provide:x2,useValue:z,multi:!0},{provide:Eo,useValue:()=>Yr(z),multi:!0})}const Re=Z.providers;null==Re||Me||eo(Re,Ot=>{c.push(Ot)})}}return z!==s&&void 0!==s.providers}const od=M({provide:String,useValue:M});function p1(s){return null!==s&&"object"==typeof s&&od in s}function Ll(s){return"function"==typeof s}const S2=new cr("Set Injector scope."),Tc={},cd={};let m1;function g1(){return void 0===m1&&(m1=new es),m1}class Dl{}class e3 extends Dl{constructor(c,m,A,z){super(),this.parent=m,this.source=A,this.scopes=z,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,v1(c,oe=>this.processProvider(oe)),this.records.set(b2,ql(void 0,this)),z.has("environment")&&this.records.set(Dl,ql(void 0,this));const Z=this.records.get(S2);null!=Z&&"string"==typeof Z.value&&this.scopes.add(Z.value),this.injectorDefTypes=new Set(this.get(x2.multi,yt,he.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const c of this._ngOnDestroyHooks)c.ngOnDestroy();for(const c of this._onDestroyHooks)c()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(c){this._onDestroyHooks.push(c)}runInContext(c){this.assertNotDestroyed();const m=Ur(this),A=Y(void 0);try{return c()}finally{Ur(m),Y(A)}}get(c,m=hs,A=he.Default){this.assertNotDestroyed();const z=Ur(this),Z=Y(void 0);try{if(!(A&he.SkipSelf)){let Me=this.records.get(c);if(void 0===Me){const Re=function fd(s){return"function"==typeof s||"object"==typeof s&&s instanceof cr}(c)&&Oe(c);Me=Re&&this.injectableDefInScope(Re)?ql(E2(c),Tc):null,this.records.set(c,Me)}if(null!=Me)return this.hydrate(c,Me)}return(A&he.Self?g1():this.parent).get(c,m=A&he.Optional&&m===hs?null:m)}catch(oe){if("NullInjectorError"===oe.name){if((oe[So]=oe[So]||[]).unshift(R(c)),z)throw oe;return function a0(s,c,m,A){const z=s[So];throw c[Bl]&&z.unshift(c[Bl]),s.message=function k4(s,c,m,A=null){s=s&&"\n"===s.charAt(0)&&"\u0275"==s.charAt(1)?s.slice(2):s;let z=R(c);if(Array.isArray(c))z=c.map(R).join(" -> ");else if("object"==typeof c){let Z=[];for(let oe in c)if(c.hasOwnProperty(oe)){let Me=c[oe];Z.push(oe+":"+("string"==typeof Me?JSON.stringify(Me):R(Me)))}z=`{${Z.join(", ")}}`}return`${m}${A?"("+A+")":""}[${z}]: ${s.replace(n0,"\n ")}`}("\n"+s.message,z,m,A),s.ngTokenPath=z,s[So]=null,s}(oe,c,"R3InjectorError",this.source)}throw oe}finally{Y(Z),Ur(z)}}resolveInjectorInitializers(){const c=Ur(this),m=Y(void 0);try{const A=this.get(Eo.multi,yt,he.Self);for(const z of A)z()}finally{Ur(c),Y(m)}}toString(){const c=[],m=this.records;for(const A of m.keys())c.push(R(A));return`R3Injector[${c.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(c){let m=Ll(c=L(c))?c:L(c&&c.provide);const A=function ud(s){return p1(s)?ql(void 0,s.useValue):ql(T2(s),Tc)}(c);if(Ll(c)||!0!==c.multi)this.records.get(m);else{let z=this.records.get(m);z||(z=ql(void 0,Tc,!0),z.factory=()=>ho(z.multi),this.records.set(m,z)),m=c,z.multi.push(c)}this.records.set(m,A)}hydrate(c,m){return m.value===Tc&&(m.value=cd,m.value=m.factory()),"object"==typeof m.value&&m.value&&function hd(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(c){if(!c.providedIn)return!1;const m=L(c.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function E2(s){const c=Oe(s),m=null!==c?c.factory:ta(s);if(null!==m)return m;if(s instanceof cr)throw new w(204,!1);if(s instanceof Function)return function dd(s){const c=s.length;if(c>0)throw xe(c,"?"),new w(204,!1);const m=function ve(s){const c=s&&(s[Ge]||s[Ee]);if(c){const m=function Ie(s){if(s.hasOwnProperty("name"))return s.name;const c=(""+s).match(/^function\s*([^\s(]+)/);return null===c?"":c[1]}(s);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${m}" class.`),c}return null}(s);return null!==m?()=>m.factory(s):()=>new s}(s);throw new w(204,!1)}function T2(s,c,m){let A;if(Ll(s)){const z=L(s);return ta(z)||E2(z)}if(p1(s))A=()=>L(s.useValue);else if(function $0(s){return!(!s||!s.useFactory)}(s))A=()=>s.useFactory(...ho(s.deps||[]));else if(function w2(s){return!(!s||!s.useExisting)}(s))A=()=>Yr(L(s.useExisting));else{const z=L(s&&(s.useClass||s.provide));if(!function _1(s){return!!s.deps}(s))return ta(z)||E2(z);A=()=>new z(...ho(s.deps))}return A}function ql(s,c,m=!1){return{factory:s,value:c,multi:m?[]:void 0}}function A2(s){return!!s.\u0275providers}function v1(s,c){for(const m of s)Array.isArray(m)?v1(m,c):A2(m)?v1(m.\u0275providers,c):c(m)}class mo{}class t3{resolveComponentFactory(c){throw function Q4(s){const c=Error(`No component factory found for ${R(s)}. Did you add it to @NgModule.entryComponents?`);return c.ngComponent=s,c}(c)}}let Ac=(()=>{class s{}return s.NULL=new t3,s})();function md(){return Ol(br(),Di())}function Ol(s,c){return new Lc(Zr(s,c))}let Lc=(()=>{class s{constructor(m){this.nativeElement=m}}return s.__NG_ELEMENT_ID__=md,s})();function gd(s){return s instanceof Lc?s.nativeElement:s}class D2{}let _d=(()=>{class s{}return s.__NG_ELEMENT_ID__=()=>function vd(){const s=Di(),m=Jn(br().index,s);return(Li(m)?m:s)[11]}(),s})(),i3=(()=>{class s{}return s.\u0275prov=me({token:s,providedIn:"root",factory:()=>null}),s})();class n3{constructor(c){this.full=c,this.major=c.split(".")[0],this.minor=c.split(".")[1],this.patch=c.split(".").slice(2).join(".")}}const yd=new n3("14.2.12"),I2={};function O2(s){return s.ngOriginalError}class Ic{constructor(){this._console=console}handleError(c){const m=this._findOriginalError(c);this._console.error("ERROR",c),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(c){let m=c&&O2(c);for(;m&&O2(m);)m=O2(m);return m||null}}function k2(s){return s.ownerDocument.defaultView}function Yo(s){return s instanceof Function?s():s}function Ed(s,c,m){let A=s.length;for(;;){const z=s.indexOf(c,m);if(-1===z)return z;if(0===z||s.charCodeAt(z-1)<=32){const Z=c.length;if(z+Z===A||s.charCodeAt(z+Z)<=32)return z}m=z+1}}const Td="ng-template";function Ad(s,c,m){let A=0;for(;A<s.length;){let z=s[A++];if(m&&"class"===z){if(z=s[A],-1!==Ed(z.toLowerCase(),c,0))return!0}else if(1===z){for(;A<s.length&&"string"==typeof(z=s[A++]);)if(z.toLowerCase()===c)return!0;return!1}}return!1}function Ld(s){return 4===s.type&&s.value!==Td}function Dd(s,c,m){return c===(4!==s.type||m?s.value:Td)}function al(s,c,m){let A=4;const z=s.attrs||[],Z=function s3(s){for(let c=0;c<s.length;c++)if(ds(s[c]))return c;return s.length}(z);let oe=!1;for(let Me=0;Me<c.length;Me++){const Re=c[Me];if("number"!=typeof Re){if(!oe)if(4&A){if(A=2|1&A,""!==Re&&!Dd(s,Re,m)||""===Re&&1===c.length){if(To(A))return!1;oe=!0}}else{const lt=8&A?Re:c[++Me];if(8&A&&null!==s.attrs){if(!Ad(s.attrs,lt,m)){if(To(A))return!1;oe=!0}continue}const Kt=eu(8&A?"class":Re,z,Ld(s),m);if(-1===Kt){if(To(A))return!1;oe=!0;continue}if(""!==lt){let li;li=Kt>Z?"":z[Kt+1].toLowerCase();const gi=8&A?li:null;if(gi&&-1!==Ed(gi,lt,0)||2&A&&lt!==li){if(To(A))return!1;oe=!0}}}}else{if(!oe&&!To(A)&&!To(Re))return!1;if(oe&&To(Re))continue;oe=!1,A=Re|1&A}}return To(A)||oe}function To(s){return 0==(1&s)}function eu(s,c,m,A){if(null===c)return-1;let z=0;if(A||!m){let Z=!1;for(;z<c.length;){const oe=c[z];if(oe===s)return z;if(3===oe||6===oe)Z=!0;else{if(1===oe||2===oe){let Me=c[++z];for(;"string"==typeof Me;)Me=c[++z];continue}if(4===oe)break;if(0===oe){z+=4;continue}}z+=Z?1:2}return-1}return function o3(s,c){let m=s.indexOf(4);if(m>-1)for(m++;m<s.length;){const A=s[m];if("number"==typeof A)return-1;if(A===c)return m;m++}return-1}(c,s)}function Id(s,c,m=!1){for(let A=0;A<c.length;A++)if(al(s,c[A],m))return!0;return!1}function Pd(s,c){e:for(let m=0;m<c.length;m++){const A=c[m];if(s.length===A.length){for(let z=0;z<s.length;z++)if(s[z]!==A[z])continue e;return!0}}return!1}function l3(s,c){return s?":not("+c.trim()+")":c}function R2(s){let c=s[0],m=1,A=2,z="",Z=!1;for(;m<s.length;){let oe=s[m];if("string"==typeof oe)if(2&A){const Me=s[++m];z+="["+oe+(Me.length>0?'="'+Me+'"':"")+"]"}else 8&A?z+="."+oe:4&A&&(z+=" "+oe);else""!==z&&!To(oe)&&(c+=l3(Z,z),z=""),A=oe,Z=Z||!To(A);m++}return""!==z&&(c+=l3(Z,z)),c}const Un={};function y1(s){kd(on(),Di(),ii()+s,!1)}function kd(s,c,m,A){if(!A)if(3==(3&c[2])){const Z=s.preOrderCheckHooks;null!==Z&&Xn(c,Z,m)}else{const Z=s.preOrderHooks;null!==Z&&Da(c,Z,0,m)}yi(m)}function te(s,c=null,m=null,A){const z=je(s,c,m,A);return z.resolveInjectorInitializers(),z}function je(s,c=null,m=null,A,z=new Set){const Z=[m||yt,J0(s)];return A=A||("object"==typeof s?void 0:R(s)),new e3(Z,c||g1(),A||null,z)}let Ft=(()=>{class s{static create(m,A){if(Array.isArray(m))return te({name:""},A,m,"");{const z=m.name??"";return te({name:z},m.parent,m.providers,z)}}}return s.THROW_IF_NOT_FOUND=hs,s.NULL=new es,s.\u0275prov=me({token:s,providedIn:"any",factory:()=>Yr(b2)}),s.__NG_ELEMENT_ID__=-1,s})();function Ua(s,c=he.Default){const m=Di();return null===m?Yr(s,c):$n(br(),m,L(s),c)}function Qo(){throw new Error("invalid")}function Pc(s,c){return s<<17|c<<2}function Do(s){return s>>17&32767}function Ns(s){return 2|s}function _o(s){return(131068&s)>>2}function kc(s,c){return-131069&s|c<<2}function Fd(s){return 1|s}function Ch(s,c){const m=s.contentQueries;if(null!==m)for(let A=0;A<m.length;A+=2){const z=m[A],Z=m[A+1];if(-1!==Z){const oe=s.data[Z];Is(z),oe.contentQueries(2,c[Z],Z)}}}function B2(s,c,m,A,z,Z,oe,Me,Re,lt,Ot){const Kt=c.blueprint.slice();return Kt[0]=z,Kt[2]=76|A,(null!==Ot||s&&1024&s[2])&&(Kt[2]|=1024),ys(Kt),Kt[3]=Kt[15]=s,Kt[8]=m,Kt[10]=oe||s&&s[10],Kt[11]=Me||s&&s[11],Kt[12]=Re||s&&s[12]||null,Kt[9]=lt||s&&s[9]||null,Kt[6]=Z,Kt[20]=function R3(){return m0++}(),Kt[21]=Ot,Kt[16]=2==c.type?s[16]:Kt,Kt}function U2(s,c,m,A,z){let Z=s.data[c];if(null===Z)Z=function Wd(s,c,m,A,z){const Z=Ze(),oe=Lt(),Re=s.data[c]=function Ah(s,c,m,A,z,Z){return{type:m,index:A,insertBeforeIndex:null,injectorIndex:c?c.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:z,attrs:Z,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:c,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,oe?Z:Z&&Z.parent,m,c,A,z);return null===s.firstChild&&(s.firstChild=Re),null!==Z&&(oe?null==Z.child&&null!==Re.parent&&(Z.child=Re):null===Z.next&&(Z.next=Re)),Re}(s,c,m,A,z),function Xo(){return St.lFrame.inI18n}()&&(Z.flags|=64);else if(64&Z.type){Z.type=m,Z.value=A,Z.attrs=z;const oe=function qe(){const s=St.lFrame,c=s.currentTNode;return s.isParent?c:c.parent}();Z.injectorIndex=null===oe?-1:oe.injectorIndex}return He(Z,!0),Z}function G2(s,c,m,A){if(0===m)return-1;const z=c.length;for(let Z=0;Z<m;Z++)c.push(A),s.blueprint.push(A),s.data.push(null);return z}function Yd(s,c,m){Ni(c);try{const A=s.viewQuery;null!==A&&Gs(1,A,m);const z=s.template;null!==z&&cu(s,c,z,1,m),s.firstCreatePass&&(s.firstCreatePass=!1),s.staticContentQueries&&Ch(s,c),s.staticViewQueries&&Gs(2,s.viewQuery,m);const Z=s.components;null!==Z&&function H6(s,c){for(let m=0;m<c.length;m++)Vh(s,c[m])}(c,Z)}catch(A){throw s.firstCreatePass&&(s.incompleteFirstPass=!0,s.firstCreatePass=!1),A}finally{c[2]&=-5,ft()}}function u3(s,c,m,A){const z=c[2];if(128!=(128&z)){Ni(c);try{ys(c),function ko(s){return St.lFrame.bindingIndex=s}(s.bindingStartIndex),null!==m&&cu(s,c,m,2,A);const oe=3==(3&z);if(oe){const lt=s.preOrderCheckHooks;null!==lt&&Xn(c,lt,null)}else{const lt=s.preOrderHooks;null!==lt&&Da(c,lt,0,null),ga(c,0)}if(function Fh(s){for(let c=K1(s);null!==c;c=j1(c)){if(!c[2])continue;const m=c[9];for(let A=0;A<m.length;A++){const z=m[A],Z=z[3];0==(512&z[2])&&ls(Z,1),z[2]|=512}}}(c),function K6(s){for(let c=K1(s);null!==c;c=j1(c))for(let m=10;m<c.length;m++){const A=c[m],z=A[1];rr(A)&&u3(z,A,z.template,A[8])}}(c),null!==s.contentQueries&&Ch(s,c),oe){const lt=s.contentCheckHooks;null!==lt&&Xn(c,lt)}else{const lt=s.contentHooks;null!==lt&&Da(c,lt,1),ga(c,1)}!function xh(s,c){const m=s.hostBindingOpCodes;if(null!==m)try{for(let A=0;A<m.length;A++){const z=m[A];if(z<0)yi(~z);else{const Z=z,oe=m[++A],Me=m[++A];Js(oe,Z),Me(2,c[Z])}}}finally{yi(-1)}}(s,c);const Me=s.components;null!==Me&&function Mh(s,c){for(let m=0;m<c.length;m++)j6(s,c[m])}(c,Me);const Re=s.viewQuery;if(null!==Re&&Gs(2,Re,A),oe){const lt=s.viewCheckHooks;null!==lt&&Xn(c,lt)}else{const lt=s.viewHooks;null!==lt&&Da(c,lt,2),ga(c,2)}!0===s.firstUpdatePass&&(s.firstUpdatePass=!1),c[2]&=-41,512&c[2]&&(c[2]&=-513,ls(c[3],-1))}finally{ft()}}}function cu(s,c,m,A,z){const Z=ii(),oe=2&A;try{yi(-1),oe&&c.length>22&&kd(s,c,22,!1),m(A,z)}finally{yi(Z)}}function wh(s,c,m){if(Dn(c)){const z=c.directiveEnd;for(let Z=c.directiveStart;Z<z;Z++){const oe=s.data[Z];oe.contentQueries&&oe.contentQueries(1,m[Z],Z)}}}function du(s,c,m){!Kn()||(function B6(s,c,m,A){const z=m.directiveStart,Z=m.directiveEnd;s.firstCreatePass||ya(m,c),$a(A,c);const oe=m.initialInputs;for(let Me=z;Me<Z;Me++){const Re=s.data[Me],lt=Qn(Re);lt&&Rh(c,m,Re);const Ot=Mo(c,s,Me,m);$a(Ot,c),null!==oe&&Z6(0,Me-z,Ot,Re,0,oe),lt&&(Jn(m.index,c)[8]=Ot)}}(s,c,m,Zr(m,c)),128==(128&m.flags)&&function U6(s,c,m){const A=m.directiveStart,z=m.directiveEnd,Z=m.index,oe=function No(){return St.lFrame.currentDirectiveIndex}();try{yi(Z);for(let Me=A;Me<z;Me++){const Re=s.data[Me],lt=c[Me];Vs(Me),(null!==Re.hostBindings||0!==Re.hostVars||null!==Re.hostAttrs)&&fu(Re,lt)}}finally{yi(-1),Vs(oe)}}(s,c,m))}function uu(s,c,m=Zr){const A=c.localNames;if(null!==A){let z=c.index+1;for(let Z=0;Z<A.length;Z+=2){const oe=A[Z+1],Me=-1===oe?m(c,s):s[oe];s[z++]=Me}}}function Sh(s){const c=s.tView;return null===c||c.incompleteFirstPass?s.tView=Kd(1,null,s.template,s.decls,s.vars,s.directiveDefs,s.pipeDefs,s.viewQuery,s.schemas,s.consts):c}function Kd(s,c,m,A,z,Z,oe,Me,Re,lt){const Ot=22+A,Kt=Ot+z,li=function F6(s,c){const m=[];for(let A=0;A<c;A++)m.push(A<s?null:Un);return m}(Ot,Kt),gi="function"==typeof lt?lt():lt;return li[1]={type:s,blueprint:li,template:m,queries:null,viewQuery:Me,declTNode:c,data:li.slice().fill(null,Ot),bindingStartIndex:Ot,expandoStartIndex:Kt,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof Z?Z():Z,pipeRegistry:"function"==typeof oe?oe():oe,firstChild:null,schemas:Re,consts:gi,incompleteFirstPass:!1}}function Th(s,c,m,A){const z=Jd(c);null===m?z.push(A):(z.push(m),s.firstCreatePass&&vu(s).push(A,z.length-1))}function hu(s,c,m){for(let A in s)if(s.hasOwnProperty(A)){const z=s[A];(m=null===m?{}:m).hasOwnProperty(A)?m[A].push(c,z):m[A]=[c,z]}return m}function jd(s,c){const A=c.directiveEnd,z=s.data,Z=c.attrs,oe=[];let Me=null,Re=null;for(let lt=c.directiveStart;lt<A;lt++){const Ot=z[lt],Kt=Ot.inputs,li=null===Z||Ld(c)?null:W6(Kt,Z);oe.push(li),Me=hu(Kt,lt,Me),Re=hu(Ot.outputs,lt,Re)}null!==Me&&(Me.hasOwnProperty("class")&&(c.flags|=16),Me.hasOwnProperty("style")&&(c.flags|=32)),c.initialInputs=oe,c.inputs=Me,c.outputs=Re}function to(s,c,m,A,z,Z,oe,Me){const Re=Zr(c,m);let Ot,lt=c.inputs;!Me&&null!=lt&&(Ot=lt[A])?(vo(s,m,Ot,A,z),Zn(c)&&Dh(m,c.index)):3&c.type&&(A=function Lh(s){return"class"===s?"className":"for"===s?"htmlFor":"formaction"===s?"formAction":"innerHtml"===s?"innerHTML":"readonly"===s?"readOnly":"tabindex"===s?"tabIndex":s}(A),z=null!=oe?oe(z,c.value||"",A):z,Z.setProperty(Re,A,z))}function Dh(s,c){const m=Jn(c,s);16&m[2]||(m[2]|=32)}function Qd(s,c,m,A){let z=!1;if(Kn()){const Z=function pu(s,c,m){const A=s.directiveRegistry;let z=null;if(A)for(let Z=0;Z<A.length;Z++){const oe=A[Z];Id(m,oe.selectors,!1)&&(z||(z=[]),wr(ya(m,c),s,oe.type),Qn(oe)?(Ph(s,m),z.unshift(oe)):z.push(oe))}return z}(s,c,m),oe=null===A?null:{"":-1};if(null!==Z){z=!0,kh(m,s.data.length,Z.length);for(let Ot=0;Ot<Z.length;Ot++){const Kt=Z[Ot];Kt.providersResolver&&Kt.providersResolver(Kt)}let Me=!1,Re=!1,lt=G2(s,c,Z.length,null);for(let Ot=0;Ot<Z.length;Ot++){const Kt=Z[Ot];m.mergedAttrs=wt(m.mergedAttrs,Kt.hostAttrs),Nh(s,m,c,lt,Kt),G6(lt,Kt,oe),null!==Kt.contentQueries&&(m.flags|=8),(null!==Kt.hostBindings||null!==Kt.hostAttrs||0!==Kt.hostVars)&&(m.flags|=128);const li=Kt.type.prototype;!Me&&(li.ngOnChanges||li.ngOnInit||li.ngDoCheck)&&((s.preOrderHooks||(s.preOrderHooks=[])).push(m.index),Me=!0),!Re&&(li.ngOnChanges||li.ngDoCheck)&&((s.preOrderCheckHooks||(s.preOrderCheckHooks=[])).push(m.index),Re=!0),lt++}jd(s,m)}oe&&function mu(s,c,m){if(c){const A=s.localNames=[];for(let z=0;z<c.length;z+=2){const Z=m[c[z+1]];if(null==Z)throw new w(-301,!1);A.push(c[z],Z)}}}(m,A,oe)}return m.mergedAttrs=wt(m.mergedAttrs,m.attrs),z}function Ih(s,c,m,A,z,Z){const oe=Z.hostBindings;if(oe){let Me=s.hostBindingOpCodes;null===Me&&(Me=s.hostBindingOpCodes=[]);const Re=~c.index;(function Oh(s){let c=s.length;for(;c>0;){const m=s[--c];if("number"==typeof m&&m<0)return m}return 0})(Me)!=Re&&Me.push(Re),Me.push(A,z,oe)}}function fu(s,c){null!==s.hostBindings&&s.hostBindings(1,c)}function Ph(s,c){c.flags|=2,(s.components||(s.components=[])).push(c.index)}function G6(s,c,m){if(m){if(c.exportAs)for(let A=0;A<c.exportAs.length;A++)m[c.exportAs[A]]=s;Qn(c)&&(m[""]=s)}}function kh(s,c,m){s.flags|=1,s.directiveStart=c,s.directiveEnd=c+m,s.providerIndexes=c}function Nh(s,c,m,A,z){s.data[A]=z;const Z=z.factory||(z.factory=ta(z.type)),oe=new cs(Z,Qn(z),Ua);s.blueprint[A]=oe,m[A]=oe,Ih(s,c,0,A,G2(s,m,z.hostVars,Un),z)}function Rh(s,c,m){const A=Zr(c,s),z=Sh(m),Z=s[10],oe=jn(s,B2(s,z,null,m.onPush?32:16,A,c,Z,Z.createRenderer(A,m),null,null,null));s[c.index]=oe}function Pl(s,c,m,A,z,Z){const oe=Zr(s,c);!function gu(s,c,m,A,z,Z,oe){if(null==Z)s.removeAttribute(c,z,m);else{const Me=null==oe?K(Z):oe(Z,A||"",z);s.setAttribute(c,z,Me,m)}}(c[11],oe,Z,s.value,m,A,z)}function Z6(s,c,m,A,z,Z){const oe=Z[c];if(null!==oe){const Me=A.setInput;for(let Re=0;Re<oe.length;){const lt=oe[Re++],Ot=oe[Re++],Kt=oe[Re++];null!==Me?A.setInput(m,Kt,lt,Ot):m[Ot]=Kt}}}function W6(s,c){let m=null,A=0;for(;A<c.length;){const z=c[A];if(0!==z)if(5!==z){if("number"==typeof z)break;s.hasOwnProperty(z)&&(null===m&&(m=[]),m.push(z,s[z],c[A+1])),A+=2}else A+=2;else A+=4}return m}function Hh(s,c,m,A){return new Array(s,!0,!1,c,null,0,A,m,null,null)}function j6(s,c){const m=Jn(c,s);if(rr(m)){const A=m[1];48&m[2]?u3(A,m,A.template,m[8]):m[5]>0&&qd(m)}}function qd(s){for(let A=K1(s);null!==A;A=j1(A))for(let z=10;z<A.length;z++){const Z=A[z];if(rr(Z))if(512&Z[2]){const oe=Z[1];u3(oe,Z,oe.template,Z[8])}else Z[5]>0&&qd(Z)}const m=s[1].components;if(null!==m)for(let A=0;A<m.length;A++){const z=Jn(m[A],s);rr(z)&&z[5]>0&&qd(z)}}function Vh(s,c){const m=Jn(c,s),A=m[1];(function zh(s,c){for(let m=c.length;m<s.blueprint.length;m++)c.push(s.blueprint[m])})(A,m),Yd(A,m,m[8])}function jn(s,c){return s[13]?s[14][4]=c:s[13]=c,s[14]=c,c}function ll(s){for(;s;){s[2]|=32;const c=Va(s);if(An(s)&&!c)return s;s=c}return null}function Z2(s,c,m,A=!0){const z=c[10];z.begin&&z.begin();try{u3(s,c,s.template,m)}catch(oe){throw A&&h3(c,oe),oe}finally{z.end&&z.end()}}function Gs(s,c,m){Is(0),c(s,m)}function Jd(s){return s[7]||(s[7]=[])}function vu(s){return s.cleanup||(s.cleanup=[])}function Xd(s,c,m){return(null===s||Qn(s))&&(m=function Hr(s){for(;Array.isArray(s);){if("object"==typeof s[1])return s;s=s[0]}return null}(m[c.index])),m[11]}function h3(s,c){const m=s[9],A=m?m.get(Ic,null):null;A&&A.handleError(c)}function vo(s,c,m,A,z){for(let Z=0;Z<m.length;){const oe=m[Z++],Me=m[Z++],Re=c[oe],lt=s.data[oe];null!==lt.setInput?lt.setInput(Re,z,A,Me):Re[Me]=z}}function Zs(s,c,m){const A=Ta(c,s);!function Q1(s,c,m){s.setValue(c,m)}(s[11],A,m)}function bn(s,c,m){let A=m?s.styles:null,z=m?s.classes:null,Z=0;if(null!==c)for(let oe=0;oe<c.length;oe++){const Me=c[oe];"number"==typeof Me?Z=Me:1==Z?z=h(z,Me):2==Z&&(A=h(A,Me+": "+c[++oe]+";"))}m?s.styles=A:s.stylesWithoutHost=A,m?s.classes=z:s.classesWithoutHost=z}function Hc(s,c,m,A,z=!1){for(;null!==m;){const Z=c[m.index];if(null!==Z&&A.push(nr(Z)),Ri(Z))for(let Me=10;Me<Z.length;Me++){const Re=Z[Me],lt=Re[1].firstChild;null!==lt&&Hc(Re[1],Re,lt,A)}const oe=m.type;if(8&oe)Hc(s,c,m.child,A);else if(32&oe){const Me=Y1(m,c);let Re;for(;Re=Me();)A.push(Re)}else if(16&oe){const Me=s1(c,m);if(Array.isArray(Me))A.push(...Me);else{const Re=Va(c[16]);Hc(Re[1],Re,Me,A,!0)}}m=z?m.projectionNext:m.next}return A}class kl{constructor(c,m){this._lView=c,this._cdRefInjectingView=m,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const c=this._lView,m=c[1];return Hc(m,c,m.firstChild,[])}get context(){return this._lView[8]}set context(c){this._lView[8]=c}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const c=this._lView[3];if(Ri(c)){const m=c[8],A=m?m.indexOf(this):-1;A>-1&&(nl(c,A),ge(m,A))}this._attachedToViewContainer=!1}J1(this._lView[1],this._lView)}onDestroy(c){Th(this._lView[1],this._lView,null,c)}markForCheck(){ll(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Z2(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function x0(s,c){xc(s,c,c[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(c){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=c}}class $d extends kl{constructor(c){super(c),this._view=c}detectChanges(){const c=this._view;Z2(c[1],c,c[8],!1)}checkNoChanges(){}get context(){return null}}class f3 extends Ac{constructor(c){super(),this.ngModule=c}resolveComponentFactory(c){const m=Qe(c);return new x1(m,this.ngModule)}}function e4(s){const c=[];for(let m in s)s.hasOwnProperty(m)&&c.push({propName:s[m],templateName:m});return c}class Uh{constructor(c,m){this.injector=c,this.parentInjector=m}get(c,m,A){const z=this.injector.get(c,I2,A);return z!==I2||m===I2?z:this.parentInjector.get(c,m,A)}}class x1 extends mo{constructor(c,m){super(),this.componentDef=c,this.ngModule=m,this.componentType=c.type,this.selector=function c3(s){return s.map(R2).join(",")}(c.selectors),this.ngContentSelectors=c.ngContentSelectors?c.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return e4(this.componentDef.inputs)}get outputs(){return e4(this.componentDef.outputs)}create(c,m,A,z){let Z=(z=z||this.ngModule)instanceof Dl?z:z?.injector;Z&&null!==this.componentDef.getStandaloneInjector&&(Z=this.componentDef.getStandaloneInjector(Z)||Z);const oe=Z?new Uh(c,Z):c,Me=oe.get(D2,null);if(null===Me)throw new w(407,!1);const Re=oe.get(i3,null),lt=Me.createRenderer(null,this.componentDef),Ot=this.componentDef.selectors[0][0]||"div",Kt=A?function Eh(s,c,m){return s.selectRootElement(c,m===gt.ShadowDom)}(lt,A,this.componentDef.encapsulation):Cl(lt,Ot,function t4(s){const c=s.toLowerCase();return"svg"===c?"svg":"math"===c?"math":null}(Ot)),li=this.componentDef.onPush?288:272,gi=Kd(0,null,null,1,0,null,null,null,null,null),Oi=B2(null,gi,null,li,null,null,Me,lt,Re,oe,null);let Wi,rn;Ni(Oi);try{const yn=function n4(s,c,m,A,z,Z){const oe=m[1];m[22]=s;const Re=U2(oe,22,2,"#host",null),lt=Re.mergedAttrs=c.hostAttrs;null!==lt&&(bn(Re,lt,!0),null!==s&&(tr(z,s,lt),null!==Re.classes&&a2(z,s,Re.classes),null!==Re.styles&&O0(z,s,Re.styles)));const Ot=A.createRenderer(s,c),Kt=B2(m,Sh(c),null,c.onPush?32:16,m[22],Re,A,Ot,Z||null,null,null);return oe.firstCreatePass&&(wr(ya(Re,m),oe,c.type),Ph(oe,Re),kh(Re,m.length,1)),jn(m,Kt),m[22]=Kt}(Kt,this.componentDef,Oi,Me,lt);if(Kt)if(A)tr(lt,Kt,["ng-version",yd.full]);else{const{attrs:Sn,classes:Fi}=function tu(s){const c=[],m=[];let A=1,z=2;for(;A<s.length;){let Z=s[A];if("string"==typeof Z)2===z?""!==Z&&c.push(Z,s[++A]):8===z&&m.push(Z);else{if(!To(z))break;z=Z}A++}return{attrs:c,classes:m}}(this.componentDef.selectors[0]);Sn&&tr(lt,Kt,Sn),Fi&&Fi.length>0&&a2(lt,Kt,Fi.join(" "))}if(rn=Aa(gi,22),void 0!==m){const Sn=rn.projection=[];for(let Fi=0;Fi<this.ngContentSelectors.length;Fi++){const Fn=m[Fi];Sn.push(null!=Fn?Array.from(Fn):null)}}Wi=function bu(s,c,m,A){const z=m[1],Z=function z6(s,c,m){const A=br();s.firstCreatePass&&(m.providersResolver&&m.providersResolver(m),Nh(s,A,c,G2(s,c,1,null),m),jd(s,A));const z=Mo(c,s,A.directiveStart,A);$a(z,c);const Z=Zr(A,c);return Z&&$a(Z,c),z}(z,m,c);if(s[8]=m[8]=Z,null!==A)for(const Me of A)Me(Z,c);if(c.contentQueries){const Me=br();c.contentQueries(1,Z,Me.directiveStart)}const oe=br();return!z.firstCreatePass||null===c.hostBindings&&null===c.hostAttrs||(yi(oe.index),Ih(m[1],oe,0,oe.directiveStart,oe.directiveEnd,c),fu(c,Z)),Z}(yn,this.componentDef,Oi,[qo]),Yd(gi,Oi,null)}finally{ft()}return new ts(this.componentType,Wi,Ol(rn,Oi),Oi,rn)}}class ts extends class L2{}{constructor(c,m,A,z,Z){super(),this.location=A,this._rootLView=z,this._tNode=Z,this.instance=m,this.hostView=this.changeDetectorRef=new $d(z),this.componentType=c}setInput(c,m){const A=this._tNode.inputs;let z;if(null!==A&&(z=A[c])){const Z=this._rootLView;vo(Z[1],Z,z,c,m),Dh(Z,this._tNode.index)}}get injector(){return new ml(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(c){this.hostView.onDestroy(c)}}function qo(){const s=br();lr(Di()[1],s)}function p3(s){let c=function r4(s){return Object.getPrototypeOf(s.prototype).constructor}(s.type),m=!0;const A=[s];for(;c;){let z;if(Qn(s))z=c.\u0275cmp||c.\u0275dir;else{if(c.\u0275cmp)throw new w(903,!1);z=c.\u0275dir}if(z){if(m){A.push(z);const oe=s;oe.inputs=m3(s.inputs),oe.declaredInputs=m3(s.declaredInputs),oe.outputs=m3(s.outputs);const Me=z.hostBindings;Me&&Fc(s,Me);const Re=z.viewQuery,lt=z.contentQueries;if(Re&&a4(s,Re),lt&&xu(s,lt),d(s.inputs,z.inputs),d(s.declaredInputs,z.declaredInputs),d(s.outputs,z.outputs),Qn(z)&&z.data.animation){const Ot=s.data;Ot.animation=(Ot.animation||[]).concat(z.data.animation)}}const Z=z.features;if(Z)for(let oe=0;oe<Z.length;oe++){const Me=Z[oe];Me&&Me.ngInherit&&Me(s),Me===p3&&(m=!1)}}c=Object.getPrototypeOf(c)}!function $l(s){let c=0,m=null;for(let A=s.length-1;A>=0;A--){const z=s[A];z.hostVars=c+=z.hostVars,z.hostAttrs=wt(z.hostAttrs,m=wt(m,z.hostAttrs))}}(A)}function m3(s){return s===hi?{}:s===yt?[]:s}function a4(s,c){const m=s.viewQuery;s.viewQuery=m?(A,z)=>{c(A,z),m(A,z)}:c}function xu(s,c){const m=s.contentQueries;s.contentQueries=m?(A,z,Z)=>{c(A,z,Z),m(A,z,Z)}:c}function Fc(s,c){const m=s.hostBindings;s.hostBindings=m?(A,z)=>{c(A,z),m(A,z)}:c}let W2=null;function Jo(){if(!W2){const s=Wt.Symbol;if(s&&s.iterator)W2=s.iterator;else{const c=Object.getOwnPropertyNames(Map.prototype);for(let m=0;m<c.length;++m){const A=c[m];"entries"!==A&&"size"!==A&&Map.prototype[A]===Map.prototype.entries&&(W2=A)}}}return W2}function tc(s){return!!_3(s)&&(Array.isArray(s)||!(s instanceof Map)&&Jo()in s)}function _3(s){return null!==s&&("function"==typeof s||"object"==typeof s)}function Ws(s,c,m){return s[c]=m}function Rs(s,c,m){return!Object.is(s[c],m)&&(s[c]=m,!0)}function Bc(s,c,m,A){const z=Rs(s,c,m);return Rs(s,c+1,A)||z}function C1(s,c,m,A,z){const Z=Bc(s,c,m,A);return Rs(s,c+2,z)||Z}function s4(s,c,m,A){const z=Di();return Rs(z,qs(),c)&&(on(),Pl(Mi(),z,s,c,m,A)),s4}function Nl(s,c,m,A){return Rs(s,qs(),m)?c+K(m)+A:Un}function ic(s,c,m,A,z,Z){const Me=Bc(s,qa(),m,z);return bs(2),Me?c+K(m)+A+K(z)+Z:Un}function Y2(s,c,m,A,z,Z,oe,Me,Re,lt){const Kt=function Io(s,c,m,A,z,Z){const oe=Bc(s,c,m,A);return Bc(s,c+2,z,Z)||oe}(s,qa(),m,z,oe,Re);return bs(4),Kt?c+K(m)+A+K(z)+Z+K(oe)+Me+K(Re)+lt:Un}function Qh(s,c,m,A,z,Z,oe,Me){const Re=Di(),lt=on(),Ot=s+22,Kt=lt.firstCreatePass?function jh(s,c,m,A,z,Z,oe,Me,Re){const lt=c.consts,Ot=U2(c,s,4,oe||null,jr(lt,Me));Qd(c,m,Ot,jr(lt,Re)),lr(c,Ot);const Kt=Ot.tViews=Kd(2,Ot,A,z,Z,c.directiveRegistry,c.pipeRegistry,null,c.schemas,lt);return null!==c.queries&&(c.queries.template(c,Ot),Kt.queries=c.queries.embeddedTView(Ot)),Ot}(Ot,lt,Re,c,m,A,z,Z,oe):lt.data[Ot];He(Kt,!1);const li=Re[11].createComment("");bc(lt,Re,li,Kt),$a(li,Re),jn(Re,Re[Ot]=Hh(li,Re,li,Kt)),Nn(Kt)&&du(lt,Re,Kt),null!=oe&&uu(Re,Kt,Me)}function u4(s){return Tr(function _r(){return St.lFrame.contextLView}(),22+s)}function h4(s,c,m){const A=Di();return Rs(A,qs(),c)&&to(on(),Mi(),A,s,c,A[11],m,!1),h4}function Oo(s,c,m,A,z){const oe=z?"class":"style";vo(s,m,c.inputs[oe],oe,A)}function v3(s,c,m,A){const z=Di(),Z=on(),oe=22+s,Me=z[11],Re=z[oe]=Cl(Me,c,function Vn(){return St.lFrame.currentNamespace}()),lt=Z.firstCreatePass?function Rl(s,c,m,A,z,Z,oe){const Me=c.consts,lt=U2(c,s,2,z,jr(Me,Z));return Qd(c,m,lt,jr(Me,oe)),null!==lt.attrs&&bn(lt,lt.attrs,!1),null!==lt.mergedAttrs&&bn(lt,lt.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,lt),lt}(oe,Z,z,0,c,m,A):Z.data[oe];He(lt,!0);const Ot=lt.mergedAttrs;null!==Ot&&tr(Me,Re,Ot);const Kt=lt.classes;null!==Kt&&a2(Me,Re,Kt);const li=lt.styles;return null!==li&&O0(Me,Re,li),64!=(64&lt.flags)&&bc(Z,z,Re,lt),0===function ti(){return St.lFrame.elementDepthCount}()&&$a(Re,z),function ki(){St.lFrame.elementDepthCount++}(),Nn(lt)&&(du(Z,z,lt),wh(Z,lt,z)),null!==A&&uu(z,lt),v3}function f4(){let s=br();Lt()?vi():(s=s.parent,He(s,!1));const c=s;!function $i(){St.lFrame.elementDepthCount--}();const m=on();return m.firstCreatePass&&(lr(m,s),Dn(s)&&m.queries.elementEnd(s)),null!=c.classesWithoutHost&&function ji(s){return 0!=(16&s.flags)}(c)&&Oo(m,c,Di(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function zr(s){return 0!=(32&s.flags)}(c)&&Oo(m,c,Di(),c.stylesWithoutHost,!1),f4}function Eu(s,c,m,A){return v3(s,c,m,A),f4(),Eu}function m4(s,c,m){const A=Di(),z=on(),Z=s+22,oe=z.firstCreatePass?function p4(s,c,m,A,z){const Z=c.consts,oe=jr(Z,A),Me=U2(c,s,8,"ng-container",oe);return null!==oe&&bn(Me,oe,!0),Qd(c,m,Me,jr(Z,z)),null!==c.queries&&c.queries.elementStart(c,Me),Me}(Z,z,A,c,m):z.data[Z];He(oe,!0);const Me=A[Z]=A[11].createComment("");return bc(z,A,Me,oe),$a(Me,A),Nn(oe)&&(du(z,A,oe),wh(z,oe,A)),null!=m&&uu(A,oe),m4}function g4(){let s=br();const c=on();return Lt()?vi():(s=s.parent,He(s,!1)),c.firstCreatePass&&(lr(c,s),Dn(s)&&c.queries.elementEnd(s)),g4}function y3(s,c,m){return m4(s,c,m),g4(),y3}function Tu(){return Di()}function _4(s){return!!s&&"function"==typeof s.then}function qh(s){return!!s&&"function"==typeof s.subscribe}const Jh=qh;function b3(s,c,m,A){const z=Di(),Z=on(),oe=br();return Xh(Z,z,z[11],oe,s,c,0,A),b3}function Au(s,c){const m=br(),A=Di(),z=on();return Xh(z,A,Xd(zs(z.data),m,A),m,s,c),Au}function Xh(s,c,m,A,z,Z,oe,Me){const Re=Nn(A),Ot=s.firstCreatePass&&vu(s),Kt=c[8],li=Jd(c);let gi=!0;if(3&A.type||Me){const rn=Zr(A,c),yn=Me?Me(rn):rn,Sn=li.length,Fi=Me?Nr=>Me(nr(Nr[A.index])):A.index;let Fn=null;if(!Me&&Re&&(Fn=function J6(s,c,m,A){const z=s.cleanup;if(null!=z)for(let Z=0;Z<z.length-1;Z+=2){const oe=z[Z];if(oe===m&&z[Z+1]===A){const Me=c[7],Re=z[Z+2];return Me.length>Re?Me[Re]:null}"string"==typeof oe&&(Z+=2)}return null}(s,c,z,A.index)),null!==Fn)(Fn.__ngLastListenerFn__||Fn).__ngNextListenerFn__=Z,Fn.__ngLastListenerFn__=Z,gi=!1;else{Z=Du(A,c,Kt,Z,!1);const Nr=m.listen(yn,z,Z);li.push(Z,Nr),Ot&&Ot.push(z,Fi,Sn,Sn+1)}}else Z=Du(A,c,Kt,Z,!1);const Oi=A.outputs;let Wi;if(gi&&null!==Oi&&(Wi=Oi[z])){const rn=Wi.length;if(rn)for(let yn=0;yn<rn;yn+=2){const Ca=c[Wi[yn]][Wi[yn+1]].subscribe(Z),$2=li.length;li.push(Z,Ca),Ot&&Ot.push(z,A.index,$2,-($2+1))}}}function Lu(s,c,m,A){try{return!1!==m(A)}catch(z){return h3(s,z),!1}}function Du(s,c,m,A,z){return function Z(oe){if(oe===Function)return A;ll(2&s.flags?Jn(s.index,c):c);let Re=Lu(c,0,A,oe),lt=Z.__ngNextListenerFn__;for(;lt;)Re=Lu(c,0,lt,oe)&&Re,lt=lt.__ngNextListenerFn__;return z&&!1===Re&&(oe.preventDefault(),oe.returnValue=!1),Re}}function $h(s=1){return function We(s){return(St.lFrame.contextLView=function Dt(s,c){for(;s>0;)c=c[15],s--;return c}(s,St.lFrame.contextLView))[8]}(s)}function X6(s,c){let m=null;const A=function Od(s){const c=s.attrs;if(null!=c){const m=c.indexOf(5);if(0==(1&m))return c[m+1]}return null}(s);for(let z=0;z<c.length;z++){const Z=c[z];if("*"!==Z){if(null===A?Id(s,Z,!0):Pd(A,Z))return z}else m=z}return m}function Iu(s){const c=Di()[16][6];if(!c.projection){const A=c.projection=xe(s?s.length:1,null),z=A.slice();let Z=c.child;for(;null!==Z;){const oe=s?X6(Z,s):0;null!==oe&&(z[oe]?z[oe].projectionNext=Z:A[oe]=Z,z[oe]=Z),Z=Z.next}}}function Ou(s,c=0,m){const A=Di(),z=on(),Z=U2(z,22+s,16,null,m||null);null===Z.projection&&(Z.projection=c),vi(),64!=(64&Z.flags)&&function A0(s,c,m){L0(c[11],0,c,m,$1(s,m,c),w0(m.parent||c[6],m,c))}(z,A,Z)}function Pu(s,c,m){return v4(s,"",c,"",m),Pu}function v4(s,c,m,A,z){const Z=Di(),oe=Nl(Z,c,m,A);return oe!==Un&&to(on(),Mi(),Z,s,oe,Z[11],z,!1),v4}function ku(s,c,m,A,z,Z,oe){const Me=Di(),Re=ic(Me,c,m,A,z,Z);return Re!==Un&&to(on(),Mi(),Me,s,Re,Me[11],oe,!1),ku}function af(s,c,m,A,z){const Z=s[m+1],oe=null===c;let Me=A?Do(Z):_o(Z),Re=!1;for(;0!==Me&&(!1===Re||oe);){const Ot=s[Me+1];sf(s[Me],c)&&(Re=!0,s[Me+1]=A?Fd(Ot):Ns(Ot)),Me=A?Do(Ot):_o(Ot)}Re&&(s[m+1]=A?Ns(Z):Fd(Z))}function sf(s,c){return null===s||null==c||(Array.isArray(s)?s[1]:s)===c||!(!Array.isArray(s)||"string"!=typeof c)&&Rn(s,c)>=0}const ms={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fu(s){return s.substring(ms.key,ms.keyEnd)}function df(s,c){const m=ms.textEnd;return m===c?-1:(c=ms.keyEnd=function uf(s,c,m){for(;c<m&&s.charCodeAt(c)>32;)c++;return c}(s,ms.key=c,m),q2(s,c,m))}function q2(s,c,m){for(;c<m&&s.charCodeAt(c)<=32;)c++;return c}function Bu(s,c,m){return ul(s,c,m,!1),Bu}function y4(s,c){return ul(s,c,null,!0),y4}function ff(s){hl(bi,dl,s,!0)}function dl(s,c){for(let m=function cf(s){return function Vu(s){ms.key=0,ms.keyEnd=0,ms.value=0,ms.valueEnd=0,ms.textEnd=s.length}(s),df(s,q2(s,0,ms.textEnd))}(c);m>=0;m=df(c,m))bi(s,Fu(c),!0)}function ul(s,c,m,A){const z=Di(),Z=on(),oe=bs(2);Z.firstUpdatePass&&pf(Z,s,oe,A),c!==Un&&Rs(z,oe,c)&&B(Z,Z.data[ii()],z,z[11],s,z[oe+1]=function it(s,c){return null==s||("string"==typeof c?s+=c:"object"==typeof s&&(s=R(Zo(s)))),s}(c,m),A,oe)}function hl(s,c,m,A){const z=on(),Z=bs(2);z.firstUpdatePass&&pf(z,null,Z,A);const oe=Di();if(m!==Un&&Rs(oe,Z,m)){const Me=z.data[ii()];if(Yt(Me,A)&&!Uu(z,Z)){let Re=A?Me.classesWithoutHost:Me.stylesWithoutHost;null!==Re&&(m=h(Re,m||"")),Oo(z,Me,oe,m,A)}else!function x(s,c,m,A,z,Z,oe,Me){z===Un&&(z=yt);let Re=0,lt=0,Ot=0<z.length?z[0]:null,Kt=0<Z.length?Z[0]:null;for(;null!==Ot||null!==Kt;){const li=Re<z.length?z[Re+1]:void 0,gi=lt<Z.length?Z[lt+1]:void 0;let Wi,Oi=null;Ot===Kt?(Re+=2,lt+=2,li!==gi&&(Oi=Kt,Wi=gi)):null===Kt||null!==Ot&&Ot<Kt?(Re+=2,Oi=Ot):(lt+=2,Oi=Kt,Wi=gi),null!==Oi&&B(s,c,m,A,Oi,Wi,oe,Me),Ot=Re<z.length?z[Re]:null,Kt=lt<Z.length?Z[lt]:null}}(z,Me,oe,oe[11],oe[Z+1],oe[Z+1]=function O(s,c,m){if(null==m||""===m)return yt;const A=[],z=Zo(m);if(Array.isArray(z))for(let Z=0;Z<z.length;Z++)s(A,z[Z],!0);else if("object"==typeof z)for(const Z in z)z.hasOwnProperty(Z)&&s(A,Z,z[Z]);else"string"==typeof z&&c(A,z);return A}(s,c,m),A,Z)}}function Uu(s,c){return c>=s.expandoStartIndex}function pf(s,c,m,A){const z=s.data;if(null===z[m+1]){const Z=z[ii()],oe=Uu(s,m);Yt(Z,A)&&null===c&&!oe&&(c=!1),c=function ap(s,c,m,A){const z=zs(s);let Z=A?c.residualClasses:c.residualStyles;if(null===z)0===(A?c.classBindings:c.styleBindings)&&(m=g(m=Gu(null,s,c,m,A),c.attrs,A),Z=null);else{const oe=c.directiveStylingLast;if(-1===oe||s[oe]!==z)if(m=Gu(z,s,c,m,A),null===Z){let Re=function mf(s,c,m){const A=m?c.classBindings:c.styleBindings;if(0!==_o(A))return s[Do(A)]}(s,c,A);void 0!==Re&&Array.isArray(Re)&&(Re=Gu(null,s,c,Re[1],A),Re=g(Re,c.attrs,A),function gf(s,c,m,A){s[Do(m?c.classBindings:c.styleBindings)]=A}(s,c,A,Re))}else Z=function _f(s,c,m){let A;const z=c.directiveEnd;for(let Z=1+c.directiveStylingLast;Z<z;Z++)A=g(A,s[Z].hostAttrs,m);return g(A,c.attrs,m)}(s,c,A)}return void 0!==Z&&(A?c.residualClasses=Z:c.residualStyles=Z),m}(z,Z,c,A),function rf(s,c,m,A,z,Z){let oe=Z?c.classBindings:c.styleBindings,Me=Do(oe),Re=_o(oe);s[A]=m;let Ot,lt=!1;if(Array.isArray(m)){const Kt=m;Ot=Kt[1],(null===Ot||Rn(Kt,Ot)>0)&&(lt=!0)}else Ot=m;if(z)if(0!==Re){const li=Do(s[Me+1]);s[A+1]=Pc(li,Me),0!==li&&(s[li+1]=kc(s[li+1],A)),s[Me+1]=function Xl(s,c){return 131071&s|c<<17}(s[Me+1],A)}else s[A+1]=Pc(Me,0),0!==Me&&(s[Me+1]=kc(s[Me+1],A)),Me=A;else s[A+1]=Pc(Re,0),0===Me?Me=A:s[Re+1]=kc(s[Re+1],A),Re=A;lt&&(s[A+1]=Ns(s[A+1])),af(s,Ot,A,!0),af(s,Ot,A,!1),function $6(s,c,m,A,z){const Z=z?s.residualClasses:s.residualStyles;null!=Z&&"string"==typeof c&&Rn(Z,c)>=0&&(m[A+1]=Fd(m[A+1]))}(c,Ot,s,A,Z),oe=Pc(Me,Re),Z?c.classBindings=oe:c.styleBindings=oe}(z,Z,c,m,oe,A)}}function Gu(s,c,m,A,z){let Z=null;const oe=m.directiveEnd;let Me=m.directiveStylingLast;for(-1===Me?Me=m.directiveStart:Me++;Me<oe&&(Z=c[Me],A=g(A,Z.hostAttrs,z),Z!==s);)Me++;return null!==s&&(m.directiveStylingLast=Me),A}function g(s,c,m){const A=m?1:2;let z=-1;if(null!==c)for(let Z=0;Z<c.length;Z++){const oe=c[Z];"number"==typeof oe?z=oe:z===A&&(Array.isArray(s)||(s=void 0===s?[]:["",s]),bi(s,oe,!!m||c[++Z]))}return void 0===s?null:s}function B(s,c,m,A,z,Z,oe,Me){if(!(3&c.type))return;const Re=s.data,lt=Re[Me+1];Te(function iu(s){return 1==(1&s)}(lt)?q(Re,c,m,z,_o(lt),oe):void 0)||(Te(Z)||function Ga(s){return 2==(2&s)}(lt)&&(Z=q(Re,null,m,z,Me,oe)),function I0(s,c,m,A,z){if(c)z?s.addClass(m,A):s.removeClass(m,A);else{let Z=-1===A.indexOf("-")?void 0:Go.DashCase;null==z?s.removeStyle(m,A,Z):("string"==typeof z&&z.endsWith("!important")&&(z=z.slice(0,-10),Z|=Go.Important),s.setStyle(m,A,z,Z))}}(A,oe,Ta(ii(),m),z,Z))}function q(s,c,m,A,z,Z){const oe=null===c;let Me;for(;z>0;){const Re=s[z],lt=Array.isArray(Re),Ot=lt?Re[1]:Re,Kt=null===Ot;let li=m[z+1];li===Un&&(li=Kt?yt:void 0);let gi=Kt?Xi(li,A):Ot===A?li:void 0;if(lt&&!Te(gi)&&(gi=Xi(Re,A)),Te(gi)&&(Me=gi,oe))return Me;const Oi=s[z+1];z=oe?Do(Oi):_o(Oi)}if(null!==c){let Re=Z?c.residualClasses:c.residualStyles;null!=Re&&(Me=Xi(Re,A))}return Me}function Te(s){return void 0!==s}function Yt(s,c){return 0!=(s.flags&(c?16:32))}function Zt(s,c=""){const m=Di(),A=on(),z=s+22,Z=A.firstCreatePass?U2(A,z,1,c,null):A.data[z],oe=m[z]=function t1(s,c){return s.createText(c)}(m[11],c);bc(A,m,oe,Z),He(Z,!1)}function oi(s){return pi("",s,""),oi}function pi(s,c,m){const A=Di(),z=Nl(A,s,c,m);return z!==Un&&Zs(A,ii(),z),pi}function _i(s,c,m,A,z){const Z=Di(),oe=ic(Z,s,c,m,A,z);return oe!==Un&&Zs(Z,ii(),oe),_i}function Ci(s,c,m,A,z,Z,oe){const Me=Di(),Re=function nc(s,c,m,A,z,Z,oe,Me){const lt=C1(s,qa(),m,z,oe);return bs(3),lt?c+K(m)+A+K(z)+Z+K(oe)+Me:Un}(Me,s,c,m,A,z,Z,oe);return Re!==Un&&Zs(Me,ii(),Re),Ci}function tn(s,c,m,A,z,Z,oe,Me,Re){const lt=Di(),Ot=Y2(lt,s,c,m,A,z,Z,oe,Me,Re);return Ot!==Un&&Zs(lt,ii(),Ot),tn}function Gn(s,c,m){hl(bi,dl,Nl(Di(),s,c,m),!0)}function hr(s,c,m){const A=Di();return Rs(A,qs(),c)&&to(on(),Mi(),A,s,c,A[11],m,!0),hr}function Gi(s,c,m){const A=Di();if(Rs(A,qs(),c)){const Z=on(),oe=Mi();to(Z,oe,A,s,c,Xd(zs(Z.data),oe,A),m,!0)}return Gi}const Pr=void 0;var Hs=["en",[["a","p"],["AM","PM"],Pr],[["AM","PM"],Pr,Pr],[["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"]],Pr,[["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"]],Pr,[["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}",Pr,"{1} 'at' {0}",Pr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function kr(s){const m=Math.floor(Math.abs(s)),A=s.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===A?1:5}];let Za={};function oa(s){const c=function z8(s){return s.toLowerCase().replace(/_/g,"-")}(s);let m=vf(c);if(m)return m;const A=c.split("-")[0];if(m=vf(A),m)return m;if("en"===A)return Hs;throw new w(701,!1)}function Hl(s){return oa(s)[On.PluralCase]}function vf(s){return s in Za||(Za[s]=Wt.ng&&Wt.ng.common&&Wt.ng.common.locales&&Wt.ng.common.locales[s]),Za[s]}var On=(()=>((On=On||{})[On.LocaleId=0]="LocaleId",On[On.DayPeriodsFormat=1]="DayPeriodsFormat",On[On.DayPeriodsStandalone=2]="DayPeriodsStandalone",On[On.DaysFormat=3]="DaysFormat",On[On.DaysStandalone=4]="DaysStandalone",On[On.MonthsFormat=5]="MonthsFormat",On[On.MonthsStandalone=6]="MonthsStandalone",On[On.Eras=7]="Eras",On[On.FirstDayOfWeek=8]="FirstDayOfWeek",On[On.WeekendRange=9]="WeekendRange",On[On.DateFormat=10]="DateFormat",On[On.TimeFormat=11]="TimeFormat",On[On.DateTimeFormat=12]="DateTimeFormat",On[On.NumberSymbols=13]="NumberSymbols",On[On.NumberFormats=14]="NumberFormats",On[On.CurrencyCode=15]="CurrencyCode",On[On.CurrencySymbol=16]="CurrencySymbol",On[On.CurrencyName=17]="CurrencyName",On[On.Currencies=18]="Currencies",On[On.Directionality=19]="Directionality",On[On.PluralCase=20]="PluralCase",On[On.ExtraData=21]="ExtraData",On))();const M3="en-US";let sp=M3;function Sf(s,c,m,A,z){if(s=L(s),Array.isArray(s))for(let Z=0;Z<s.length;Z++)Sf(s[Z],c,m,A,z);else{const Z=on(),oe=Di();let Me=Ll(s)?s:L(s.provide),Re=T2(s);const lt=br(),Ot=1048575&lt.providerIndexes,Kt=lt.directiveStart,li=lt.providerIndexes>>20;if(Ll(s)||!s.multi){const gi=new cs(Re,z,Ua),Oi=Tf(Me,c,z?Ot:Ot+li,Kt);-1===Oi?(wr(ya(lt,oe),Z,Me),Ef(Z,s,c.length),c.push(Me),lt.directiveStart++,lt.directiveEnd++,z&&(lt.providerIndexes+=1048576),m.push(gi),oe.push(gi)):(m[Oi]=gi,oe[Oi]=gi)}else{const gi=Tf(Me,c,Ot+li,Kt),Oi=Tf(Me,c,Ot,Ot+li),Wi=gi>=0&&m[gi],rn=Oi>=0&&m[Oi];if(z&&!rn||!z&&!Wi){wr(ya(lt,oe),Z,Me);const yn=function Lf(s,c,m,A,z){const Z=new cs(s,m,Ua);return Z.multi=[],Z.index=c,Z.componentProviders=0,Fp(Z,z,A&&!m),Z}(z?S5:w5,m.length,z,A,Re);!z&&rn&&(m[Oi].providerFactory=yn),Ef(Z,s,c.length,0),c.push(Me),lt.directiveStart++,lt.directiveEnd++,z&&(lt.providerIndexes+=1048576),m.push(yn),oe.push(yn)}else Ef(Z,s,gi>-1?gi:Oi,Fp(m[z?Oi:gi],Re,!z&&A));!z&&A&&rn&&m[Oi].componentProviders++}}}function Ef(s,c,m,A){const z=Ll(c),Z=function ld(s){return!!s.useClass}(c);if(z||Z){const Re=(Z?L(c.useClass):c).prototype.ngOnDestroy;if(Re){const lt=s.destroyHooks||(s.destroyHooks=[]);if(!z&&c.multi){const Ot=lt.indexOf(m);-1===Ot?lt.push(m,[A,Re]):lt[Ot+1].push(A,Re)}else lt.push(m,Re)}}}function Fp(s,c,m){return m&&s.componentProviders++,s.multi.push(c)-1}function Tf(s,c,m,A){for(let z=m;z<A;z++)if(c[z]===s)return z;return-1}function w5(s,c,m,A){return Af(this.multi,[])}function S5(s,c,m,A){const z=this.multi;let Z;if(this.providerFactory){const oe=this.providerFactory.componentProviders,Me=Mo(m,m[1],this.providerFactory.index,A);Z=Me.slice(0,oe),Af(z,Z);for(let Re=oe;Re<Me.length;Re++)Z.push(Me[Re])}else Z=[],Af(z,Z);return Z}function Af(s,c){for(let m=0;m<s.length;m++)c.push((0,s[m])());return c}function Vp(s,c=[]){return m=>{m.providersResolver=(A,z)=>function M5(s,c,m){const A=on();if(A.firstCreatePass){const z=Qn(s);Sf(m,A.data,A.blueprint,z,!0),Sf(c,A.data,A.blueprint,z,!1)}}(A,z?z(s):s,c)}}class w3{}class zp{}function Bp(s,c){return new Up(s,c??null)}class Up extends w3{constructor(c,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new f3(this);const A=Gt(c);this._bootstrapComponents=Yo(A.bootstrap),this._r3Injector=je(c,m,[{provide:w3,useValue:this},{provide:Ac,useValue:this.componentFactoryResolver}],R(c),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(c)}get injector(){return this._r3Injector}destroy(){const c=this._r3Injector;!c.destroyed&&c.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(c){this.destroyCbs.push(c)}}class Df extends zp{constructor(c){super(),this.moduleType=c}create(c){return new Up(this.moduleType,c)}}class T5 extends w3{constructor(c,m,A){super(),this.componentFactoryResolver=new f3(this),this.instance=null;const z=new e3([...c,{provide:w3,useValue:this},{provide:Ac,useValue:this.componentFactoryResolver}],m||g1(),A,new Set(["environment"]));this.injector=z,z.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(c){this.injector.onDestroy(c)}}function If(s,c,m=null){return new T5(s,c,m).injector}let Gp=(()=>{class s{constructor(m){this._injector=m,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(m){if(!m.standalone)return null;if(!this.cachedInjectors.has(m.id)){const A=C2(0,m.type),z=A.length>0?If([A],this._injector,`Standalone[${m.type.name}]`):null;this.cachedInjectors.set(m.id,z)}return this.cachedInjectors.get(m.id)}ngOnDestroy(){try{for(const m of this.cachedInjectors.values())null!==m&&m.destroy()}finally{this.cachedInjectors.clear()}}}return s.\u0275prov=me({token:s,providedIn:"environment",factory:()=>new s(Yr(Dl))}),s})();function Zp(s){s.getStandaloneInjector=c=>c.get(Gp).getOrCreateStandaloneInjector(s)}function Jp(s,c,m){const A=xr()+s,z=Di();return z[A]===Un?Ws(z,A,m?c.call(m):c()):function zc(s,c){return s[c]}(z,A)}function Xp(s,c,m,A){return tm(Di(),xr(),s,c,m,A)}function Qu(s,c,m,A,z){return im(Di(),xr(),s,c,m,A,z)}function $p(s,c,m,A,z,Z){return nm(Di(),xr(),s,c,m,A,z,Z)}function S3(s,c){const m=s[c];return m===Un?void 0:m}function tm(s,c,m,A,z,Z){const oe=c+m;return Rs(s,oe,z)?Ws(s,oe+1,Z?A.call(Z,z):A(z)):S3(s,oe+1)}function im(s,c,m,A,z,Z,oe){const Me=c+m;return Bc(s,Me,z,Z)?Ws(s,Me+2,oe?A.call(oe,z,Z):A(z,Z)):S3(s,Me+2)}function nm(s,c,m,A,z,Z,oe,Me){const Re=c+m;return C1(s,Re,z,Z,oe)?Ws(s,Re+3,Me?A.call(Me,z,Z,oe):A(z,Z,oe)):S3(s,Re+3)}function sm(s,c){const m=on();let A;const z=s+22;m.firstCreatePass?(A=function z5(s,c){if(c)for(let m=c.length-1;m>=0;m--){const A=c[m];if(s===A.name)return A}}(c,m.pipeRegistry),m.data[z]=A,A.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(z,A.onDestroy)):A=m.data[z];const Z=A.factory||(A.factory=ta(A.type)),oe=Y(Ua);try{const Me=Ai(!1),Re=Z();return Ai(Me),function q6(s,c,m,A){m>=s.data.length&&(s.data[m]=null,s.blueprint[m]=null),c[m]=A}(m,Di(),z,Re),Re}finally{Y(oe)}}function qu(s,c,m){const A=s+22,z=Di(),Z=Tr(z,A);return Wc(z,A)?tm(z,xr(),c,Z.transform,m,Z):Z.transform(m)}function om(s,c,m,A){const z=s+22,Z=Di(),oe=Tr(Z,z);return Wc(Z,z)?im(Z,xr(),c,oe.transform,m,A,oe):oe.transform(m,A)}function lm(s,c,m,A,z){const Z=s+22,oe=Di(),Me=Tr(oe,Z);return Wc(oe,Z)?nm(oe,xr(),c,Me.transform,m,A,z,Me):Me.transform(m,A,z)}function Wc(s,c){return s[1].data[c].pure}function Nf(s){return c=>{setTimeout(s,void 0,c)}}const ac=class G5 extends t.x{constructor(c=!1){super(),this.__isAsync=c}emit(c){super.next(c)}subscribe(c,m,A){let z=c,Z=m||(()=>null),oe=A;if(c&&"object"==typeof c){const Re=c;z=Re.next?.bind(Re),Z=Re.error?.bind(Re),oe=Re.complete?.bind(Re)}this.__isAsync&&(Z=Nf(Z),z&&(z=Nf(z)),oe&&(oe=Nf(oe)));const Me=super.subscribe({next:z,error:Z,complete:oe});return c instanceof e.w0&&c.add(Me),Me}};function Z5(){return this._results[Jo()]()}class E4{constructor(c=!1){this._emitDistinctChangesOnly=c,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=Jo(),A=E4.prototype;A[m]||(A[m]=Z5)}get changes(){return this._changes||(this._changes=new ac)}get(c){return this._results[c]}map(c){return this._results.map(c)}filter(c){return this._results.filter(c)}find(c){return this._results.find(c)}reduce(c,m){return this._results.reduce(c,m)}forEach(c){this._results.forEach(c)}some(c){return this._results.some(c)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(c,m){const A=this;A.dirty=!1;const z=Xa(c);(this._changesDetected=!function co(s,c,m){if(s.length!==c.length)return!1;for(let A=0;A<s.length;A++){let z=s[A],Z=c[A];if(m&&(z=m(z),Z=m(Z)),Z!==z)return!1}return!0}(A._results,z,m))&&(A._results=z,A.length=z.length,A.last=z[this.length-1],A.first=z[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let T4=(()=>{class s{}return s.__NG_ELEMENT_ID__=dm,s})();const cm=T4,W5=class extends cm{constructor(c,m,A){super(),this._declarationLView=c,this._declarationTContainer=m,this.elementRef=A}createEmbeddedView(c,m){const A=this._declarationTContainer.tViews,z=B2(this._declarationLView,A,c,16,null,A.declTNode,null,null,null,null,m||null);z[17]=this._declarationLView[this._declarationTContainer.index];const oe=this._declarationLView[19];return null!==oe&&(z[19]=oe.createEmbeddedView(A)),Yd(A,z,c),new kl(z)}};function dm(){return A4(br(),Di())}function A4(s,c){return 4&s.type?new W5(c,s,Ol(s,c)):null}let Ju=(()=>{class s{}return s.__NG_ELEMENT_ID__=Y5,s})();function Y5(){return hm(br(),Di())}const K5=Ju,Rf=class extends K5{constructor(c,m,A){super(),this._lContainer=c,this._hostTNode=m,this._hostLView=A}get element(){return Ol(this._hostTNode,this._hostLView)}get injector(){return new ml(this._hostTNode,this._hostLView)}get parentInjector(){const c=Wr(this._hostTNode,this._hostLView);if(Ht(c)){const m=ui(c,this._hostLView),A=$e(c);return new ml(m[1].data[A+8],m)}return new ml(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(c){const m=um(this._lContainer);return null!==m&&m[c]||null}get length(){return this._lContainer.length-10}createEmbeddedView(c,m,A){let z,Z;"number"==typeof A?z=A:null!=A&&(z=A.index,Z=A.injector);const oe=c.createEmbeddedView(m||{},Z);return this.insert(oe,z),oe}createComponent(c,m,A,z,Z){const oe=c&&!function Us(s){return"function"==typeof s}(c);let Me;if(oe)Me=m;else{const Kt=m||{};Me=Kt.index,A=Kt.injector,z=Kt.projectableNodes,Z=Kt.environmentInjector||Kt.ngModuleRef}const Re=oe?c:new x1(Qe(c)),lt=A||this.parentInjector;if(!Z&&null==Re.ngModule){const li=(oe?lt:this.parentInjector).get(Dl,null);li&&(Z=li)}const Ot=Re.create(lt,z,void 0,Z);return this.insert(Ot.hostView,Me),Ot}insert(c,m){const A=c._lView,z=A[1];if(function io(s){return Ri(s[3])}(A)){const Ot=this.indexOf(c);if(-1!==Ot)this.detach(Ot);else{const Kt=A[3],li=new Rf(Kt,Kt[6],Kt[3]);li.detach(li.indexOf(c))}}const Z=this._adjustIndex(m),oe=this._lContainer;!function q1(s,c,m,A){const z=10+A,Z=m.length;A>0&&(m[z-1][4]=c),A<Z-10?(c[4]=m[z],P1(m,10+A,c)):(m.push(c),c[4]=null),c[3]=m;const oe=c[17];null!==oe&&m!==oe&&function Z3(s,c){const m=s[9];c[16]!==c[3][3][16]&&(s[2]=!0),null===m?s[9]=[c]:m.push(c)}(oe,c);const Me=c[19];null!==Me&&Me.insertView(s),c[2]|=64}(z,A,oe,Z);const Me=n2(Z,oe),Re=A[11],lt=n1(Re,oe[7]);return null!==lt&&function U3(s,c,m,A,z,Z){A[0]=z,A[6]=c,xc(s,A,m,1,z,Z)}(z,oe[6],Re,A,lt,Me),c.attachToViewContainerRef(),P1(Hf(oe),Z,c),c}move(c,m){return this.insert(c,m)}indexOf(c){const m=um(this._lContainer);return null!==m?m.indexOf(c):-1}remove(c){const m=this._adjustIndex(c,-1),A=nl(this._lContainer,m);A&&(ge(Hf(this._lContainer),m),J1(A[1],A))}detach(c){const m=this._adjustIndex(c,-1),A=nl(this._lContainer,m);return A&&null!=ge(Hf(this._lContainer),m)?new kl(A):null}_adjustIndex(c,m=0){return c??this.length+m}};function um(s){return s[8]}function Hf(s){return s[8]||(s[8]=[])}function hm(s,c){let m;const A=c[s.index];if(Ri(A))m=A;else{let z;if(8&s.type)z=nr(A);else{const Z=c[11];z=Z.createComment("");const oe=Zr(s,c);Ml(Z,n1(Z,oe),z,function Q3(s,c){return s.nextSibling(c)}(Z,oe),!1)}c[s.index]=m=Hh(A,c,z,s),jn(c,m)}return new Rf(m,s,c)}class Ff{constructor(c){this.queryList=c,this.matches=null}clone(){return new Ff(this.queryList)}setDirty(){this.queryList.setDirty()}}class Vf{constructor(c=[]){this.queries=c}createEmbeddedView(c){const m=c.queries;if(null!==m){const A=null!==c.contentQueries?c.contentQueries[0]:m.length,z=[];for(let Z=0;Z<A;Z++){const oe=m.getByIndex(Z);z.push(this.queries[oe.indexInDeclarationView].clone())}return new Vf(z)}return null}insertView(c){this.dirtyQueriesWithMatches(c)}detachView(c){this.dirtyQueriesWithMatches(c)}dirtyQueriesWithMatches(c){for(let m=0;m<this.queries.length;m++)null!==bm(c,m).matches&&this.queries[m].setDirty()}}class Xu{constructor(c,m,A=null){this.predicate=c,this.flags=m,this.read=A}}class zf{constructor(c=[]){this.queries=c}elementStart(c,m){for(let A=0;A<this.queries.length;A++)this.queries[A].elementStart(c,m)}elementEnd(c){for(let m=0;m<this.queries.length;m++)this.queries[m].elementEnd(c)}embeddedTView(c){let m=null;for(let A=0;A<this.length;A++){const z=null!==m?m.length:0,Z=this.getByIndex(A).embeddedTView(c,z);Z&&(Z.indexInDeclarationView=A,null!==m?m.push(Z):m=[Z])}return null!==m?new zf(m):null}template(c,m){for(let A=0;A<this.queries.length;A++)this.queries[A].template(c,m)}getByIndex(c){return this.queries[c]}get length(){return this.queries.length}track(c){this.queries.push(c)}}class Bf{constructor(c,m=-1){this.metadata=c,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=m}elementStart(c,m){this.isApplyingToNode(m)&&this.matchTNode(c,m)}elementEnd(c){this._declarationNodeIndex===c.index&&(this._appliesToNextNode=!1)}template(c,m){this.elementStart(c,m)}embeddedTView(c,m){return this.isApplyingToNode(c)?(this.crossesNgTemplate=!0,this.addMatch(-c.index,m),new Bf(this.metadata)):null}isApplyingToNode(c){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const m=this._declarationNodeIndex;let A=c.parent;for(;null!==A&&8&A.type&&A.index!==m;)A=A.parent;return m===(null!==A?A.index:-1)}return this._appliesToNextNode}matchTNode(c,m){const A=this.metadata.predicate;if(Array.isArray(A))for(let z=0;z<A.length;z++){const Z=A[z];this.matchTNodeWithReadOption(c,m,pm(m,Z)),this.matchTNodeWithReadOption(c,m,ao(m,c,Z,!1,!1))}else A===T4?4&m.type&&this.matchTNodeWithReadOption(c,m,-1):this.matchTNodeWithReadOption(c,m,ao(m,c,A,!1,!1))}matchTNodeWithReadOption(c,m,A){if(null!==A){const z=this.metadata.read;if(null!==z)if(z===Lc||z===Ju||z===T4&&4&m.type)this.addMatch(m.index,-2);else{const Z=ao(m,c,z,!1,!1);null!==Z&&this.addMatch(m.index,Z)}else this.addMatch(m.index,A)}}addMatch(c,m){null===this.matches?this.matches=[c,m]:this.matches.push(c,m)}}function pm(s,c){const m=s.localNames;if(null!==m)for(let A=0;A<m.length;A+=2)if(m[A]===c)return m[A+1];return null}function Uf(s,c,m,A){return-1===m?function q5(s,c){return 11&s.type?Ol(s,c):4&s.type?A4(s,c):null}(c,s):-2===m?function mm(s,c,m){return m===Lc?Ol(c,s):m===T4?A4(c,s):m===Ju?hm(c,s):void 0}(s,c,A):Mo(s,s[1],m,c)}function Gf(s,c,m,A){const z=c[19].queries[A];if(null===z.matches){const Z=s.data,oe=m.matches,Me=[];for(let Re=0;Re<oe.length;Re+=2){const lt=oe[Re];Me.push(lt<0?null:Uf(c,Z[lt],oe[Re+1],m.metadata.read))}z.matches=Me}return z.matches}function Zf(s,c,m,A){const z=s.queries.getByIndex(m),Z=z.matches;if(null!==Z){const oe=Gf(s,c,z,m);for(let Me=0;Me<Z.length;Me+=2){const Re=Z[Me];if(Re>0)A.push(oe[Me/2]);else{const lt=Z[Me+1],Ot=c[-Re];for(let Kt=10;Kt<Ot.length;Kt++){const li=Ot[Kt];li[17]===li[3]&&Zf(li[1],li,lt,A)}if(null!==Ot[9]){const Kt=Ot[9];for(let li=0;li<Kt.length;li++){const gi=Kt[li];Zf(gi[1],gi,lt,A)}}}}}return A}function gm(s){const c=Di(),m=on(),A=Xs();Is(A+1);const z=bm(m,A);if(s.dirty&&function vs(s){return 4==(4&s[2])}(c)===(2==(2&z.metadata.flags))){if(null===z.matches)s.reset([]);else{const Z=z.crossesNgTemplate?Zf(m,c,A,[]):Gf(m,c,z,A);s.reset(Z,gd),s.notifyOnChanges()}return!0}return!1}function _m(s,c,m){const A=on();A.firstCreatePass&&(ym(A,new Xu(s,c,m),-1),2==(2&c)&&(A.staticViewQueries=!0)),Yf(A,Di(),c)}function Wf(s,c,m,A){const z=on();if(z.firstCreatePass){const Z=br();ym(z,new Xu(c,m,A),Z.index),function X5(s,c){const m=s.contentQueries||(s.contentQueries=[]);c!==(m.length?m[m.length-1]:-1)&&m.push(s.queries.length-1,c)}(z,s),2==(2&m)&&(z.staticContentQueries=!0)}Yf(z,Di(),m)}function vm(){return function J5(s,c){return s[19].queries[c].queryList}(Di(),Xs())}function Yf(s,c,m){const A=new E4(4==(4&m));Th(s,c,A,A.destroy),null===c[19]&&(c[19]=new Vf),c[19].queries.push(new Ff(A))}function ym(s,c,m){null===s.queries&&(s.queries=new zf),s.queries.track(new Bf(c,m))}function bm(s,c){return s.queries.getByIndex(c)}function xm(s,c){return A4(s,c)}function I4(...s){}const Hm=new cr("Application Initializer");let eh=(()=>{class s{constructor(m){this.appInits=m,this.resolve=I4,this.reject=I4,this.initialized=!1,this.done=!1,this.donePromise=new Promise((A,z)=>{this.resolve=A,this.reject=z})}runInitializers(){if(this.initialized)return;const m=[],A=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let z=0;z<this.appInits.length;z++){const Z=this.appInits[z]();if(_4(Z))m.push(Z);else if(Jh(Z)){const oe=new Promise((Me,Re)=>{Z.subscribe({complete:Me,error:Re})});m.push(oe)}}Promise.all(m).then(()=>{A()}).catch(z=>{this.reject(z)}),0===m.length&&A(),this.initialized=!0}}return s.\u0275fac=function(m){return new(m||s)(Yr(Hm,8))},s.\u0275prov=me({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const n6=new cr("AppId",{providedIn:"root",factory:function Fm(){return`${r6()}${r6()}${r6()}`}});function r6(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const a6=new cr("Platform Initializer"),_g=new cr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Vm=new cr("appBootstrapListener"),vg=new cr("AnimationModuleType");let yg=(()=>{class s{log(m){console.log(m)}warn(m){console.warn(m)}}return s.\u0275fac=function(m){return new(m||s)},s.\u0275prov=me({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();const th=new cr("LocaleId",{providedIn:"root",factory:()=>Ul(th,he.Optional|he.SkipSelf)||function zm(){return typeof $localize<"u"&&$localize.locale||M3}()}),bg=new cr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class xg{constructor(c,m){this.ngModuleFactory=c,this.componentFactories=m}}let Bm=(()=>{class s{compileModuleSync(m){return new Df(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const A=this.compileModuleSync(m),Z=Yo(Gt(m).declarations).reduce((oe,Me)=>{const Re=Qe(Me);return Re&&oe.push(new x1(Re)),oe},[]);return new xg(A,Z)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return s.\u0275fac=function(m){return new(m||s)},s.\u0275prov=me({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Sg=(()=>Promise.resolve(0))();function ih(s){typeof Zone>"u"?Sg.then(()=>{s&&s.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",s)}class Po{constructor({enableLongStackTrace:c=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:A=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ac(!1),this.onMicrotaskEmpty=new ac(!1),this.onStable=new ac(!1),this.onError=new ac(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();const z=this;if(z._nesting=0,z._outer=z._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const Z=Zone.AsyncStackTaggingZoneSpec;z._inner=z._inner.fork(new Z("Angular"))}Zone.TaskTrackingZoneSpec&&(z._inner=z._inner.fork(new Zone.TaskTrackingZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(z._inner=z._inner.fork(Zone.longStackTraceZoneSpec)),z.shouldCoalesceEventChangeDetection=!A&&m,z.shouldCoalesceRunChangeDetection=A,z.lastRequestAnimationFrameId=-1,z.nativeRequestAnimationFrame=function Eg(){let s=Wt.requestAnimationFrame,c=Wt.cancelAnimationFrame;if(typeof Zone<"u"&&s&&c){const m=s[Zone.__symbol__("OriginalDelegate")];m&&(s=m);const A=c[Zone.__symbol__("OriginalDelegate")];A&&(c=A)}return{nativeRequestAnimationFrame:s,nativeCancelAnimationFrame:c}}().nativeRequestAnimationFrame,function Lg(s){const c=()=>{!function Ag(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(Wt,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,O4(s),s.isCheckStableRunning=!0,s6(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),O4(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,A,z,Z,oe,Me)=>{try{return Zm(s),m.invokeTask(z,Z,oe,Me)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===Z.type||s.shouldCoalesceRunChangeDetection)&&c(),Wm(s)}},onInvoke:(m,A,z,Z,oe,Me,Re)=>{try{return Zm(s),m.invoke(z,Z,oe,Me,Re)}finally{s.shouldCoalesceRunChangeDetection&&c(),Wm(s)}},onHasTask:(m,A,z,Z)=>{m.hasTask(z,Z),A===z&&("microTask"==Z.change?(s._hasPendingMicrotasks=Z.microTask,O4(s),s6(s)):"macroTask"==Z.change&&(s.hasPendingMacrotasks=Z.macroTask))},onHandleError:(m,A,z,Z)=>(m.handleError(z,Z),s.runOutsideAngular(()=>s.onError.emit(Z)),!1)})}(z)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Po.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(Po.isInAngularZone())throw new w(909,!1)}run(c,m,A){return this._inner.run(c,m,A)}runTask(c,m,A,z){const Z=this._inner,oe=Z.scheduleEventTask("NgZoneEvent: "+z,c,Tg,I4,I4);try{return Z.runTask(oe,m,A)}finally{Z.cancelTask(oe)}}runGuarded(c,m,A){return this._inner.runGuarded(c,m,A)}runOutsideAngular(c){return this._outer.run(c)}}const Tg={};function s6(s){if(0==s._nesting&&!s.hasPendingMicrotasks&&!s.isStable)try{s._nesting++,s.onMicrotaskEmpty.emit(null)}finally{if(s._nesting--,!s.hasPendingMicrotasks)try{s.runOutsideAngular(()=>s.onStable.emit(null))}finally{s.isStable=!0}}}function O4(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function Zm(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function Wm(s){s._nesting--,s6(s)}class Ym{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ac,this.onMicrotaskEmpty=new ac,this.onStable=new ac,this.onError=new ac}run(c,m,A){return c.apply(m,A)}runGuarded(c,m,A){return c.apply(m,A)}runOutsideAngular(c){return c()}runTask(c,m,A,z){return c.apply(m,A)}}const Km=new cr(""),jm=new cr("");let o6,Qm=(()=>{class s{constructor(m,A,z){this._ngZone=m,this.registry=A,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,o6||(function Jm(s){o6=s}(z),z.addToWindow(A)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Po.assertNotInAngularZone(),ih(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())ih(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(A=>!A.updateCb||!A.updateCb(m)||(clearTimeout(A.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,A,z){let Z=-1;A&&A>0&&(Z=setTimeout(()=>{this._callbacks=this._callbacks.filter(oe=>oe.timeoutId!==Z),m(this._didWork,this.getPendingTasks())},A)),this._callbacks.push({doneCb:m,timeoutId:Z,updateCb:z})}whenStable(m,A,z){if(z&&!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(m,A,z),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,A,z){return[]}}return s.\u0275fac=function(m){return new(m||s)(Yr(Po),Yr(qm),Yr(jm))},s.\u0275prov=me({token:s,factory:s.\u0275fac}),s})(),qm=(()=>{class s{constructor(){this._applications=new Map}registerApplication(m,A){this._applications.set(m,A)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,A=!0){return o6?.findTestabilityInTree(this,m,A)??null}}return s.\u0275fac=function(m){return new(m||s)},s.\u0275prov=me({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})(),Kc=null;const Xm=new cr("AllowMultipleToken"),l6=new cr("PlatformDestroyListeners");class Og{constructor(c,m){this.name=c,this.token=m}}function e8(s,c,m=[]){const A=`Platform: ${c}`,z=new cr(A);return(Z=[])=>{let oe=c6();if(!oe||oe.injector.get(Xm,!1)){const Me=[...m,...Z,{provide:z,useValue:!0}];s?s(Me):function Pg(s){if(Kc&&!Kc.get(Xm,!1))throw new w(400,!1);Kc=s;const c=s.get(r8);(function $m(s){const c=s.get(a6,null);c&&c.forEach(m=>m())})(s)}(function i8(s=[],c){return Ft.create({name:c,providers:[{provide:S2,useValue:"platform"},{provide:l6,useValue:new Set([()=>Kc=null])},...s]})}(Me,A))}return function t8(s){const c=c6();if(!c)throw new w(401,!1);return c}()}}function c6(){return Kc?.get(r8)??null}let r8=(()=>{class s{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,A){const z=function a8(s,c){let m;return m="noop"===s?new Ym:("zone.js"===s?void 0:s)||new Po(c),m}(A?.ngZone,function d6(s){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!s||!s.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!s||!s.ngZoneRunCoalescing)||!1}}(A)),Z=[{provide:Po,useValue:z}];return z.run(()=>{const oe=Ft.create({providers:Z,parent:this.injector,name:m.moduleType.name}),Me=m.create(oe),Re=Me.injector.get(Ic,null);if(!Re)throw new w(402,!1);return z.runOutsideAngular(()=>{const lt=z.onError.subscribe({next:Ot=>{Re.handleError(Ot)}});Me.onDestroy(()=>{rh(this._modules,Me),lt.unsubscribe()})}),function u6(s,c,m){try{const A=m();return _4(A)?A.catch(z=>{throw c.runOutsideAngular(()=>s.handleError(z)),z}):A}catch(A){throw c.runOutsideAngular(()=>s.handleError(A)),A}}(Re,z,()=>{const lt=Me.injector.get(eh);return lt.runInitializers(),lt.donePromise.then(()=>(function op(s){n(s,"Expected localeId to be defined"),"string"==typeof s&&(sp=s.toLowerCase().replace(/_/g,"-"))}(Me.injector.get(th,M3)||M3),this._moduleDoBootstrap(Me),Me))})})}bootstrapModule(m,A=[]){const z=s8({},A);return function Dg(s,c,m){const A=new Df(m);return Promise.resolve(A)}(0,0,m).then(Z=>this.bootstrapModuleFactory(Z,z))}_moduleDoBootstrap(m){const A=m.injector.get(nh);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(z=>A.bootstrap(z));else{if(!m.instance.ngDoBootstrap)throw new w(403,!1);m.instance.ngDoBootstrap(A)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,!1);this._modules.slice().forEach(A=>A.destroy()),this._destroyListeners.forEach(A=>A());const m=this._injector.get(l6,null);m&&(m.forEach(A=>A()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return s.\u0275fac=function(m){return new(m||s)(Yr(Ft))},s.\u0275prov=me({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();function s8(s,c){return Array.isArray(c)?c.reduce(s8,s):{...s,...c}}let nh=(()=>{class s{constructor(m,A,z){this._zone=m,this._injector=A,this._exceptionHandler=z,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const Z=new f.y(Me=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Me.next(this._stable),Me.complete()})}),oe=new f.y(Me=>{let Re;this._zone.runOutsideAngular(()=>{Re=this._zone.onStable.subscribe(()=>{Po.assertNotInAngularZone(),ih(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Me.next(!0))})})});const lt=this._zone.onUnstable.subscribe(()=>{Po.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Me.next(!1)}))});return()=>{Re.unsubscribe(),lt.unsubscribe()}});this.isStable=(0,C.T)(Z,oe.pipe((0,a.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(m,A){const z=m instanceof mo;if(!this._injector.get(eh).done)throw!z&&$t(m),new w(405,false);let oe;oe=z?m:this._injector.get(Ac).resolveComponentFactory(m),this.componentTypes.push(oe.componentType);const Me=function Ig(s){return s.isBoundToModule}(oe)?void 0:this._injector.get(w3),lt=oe.create(Ft.NULL,[],A||oe.selector,Me),Ot=lt.location.nativeElement,Kt=lt.injector.get(Km,null);return Kt?.registerApplication(Ot),lt.onDestroy(()=>{this.detachView(lt.hostView),rh(this.components,lt),Kt?.unregisterApplication(Ot)}),this._loadComponent(lt),lt}tick(){if(this._runningTick)throw new w(101,!1);try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const A=m;this._views.push(A),A.attachToAppRef(this)}detachView(m){const A=m;rh(this._views,A),A.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(Vm,[]).concat(this._bootstrapListeners).forEach(z=>z(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>rh(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new w(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return s.\u0275fac=function(m){return new(m||s)(Yr(Po),Yr(Dl),Yr(Ic))},s.\u0275prov=me({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function rh(s,c){const m=s.indexOf(c);m>-1&&s.splice(m,1)}let c8=!0,d8=!1;function u8(){return d8=!0,c8}function Ng(){if(d8)throw new Error("Cannot enable prod mode after platform setup.");c8=!1}let Rg=(()=>{class s{}return s.__NG_ELEMENT_ID__=Hg,s})();function Hg(s){return function Fg(s,c,m){if(Zn(s)&&!m){const A=Jn(s.index,c);return new kl(A,A)}return 47&s.type?new kl(c[16],c):null}(br(),Di(),16==(16&s))}class m8{constructor(){}supports(c){return tc(c)}create(c){return new g8(c)}}const Gg=(s,c)=>c;class g8{constructor(c){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=c||Gg}forEachItem(c){let m;for(m=this._itHead;null!==m;m=m._next)c(m)}forEachOperation(c){let m=this._itHead,A=this._removalsHead,z=0,Z=null;for(;m||A;){const oe=!A||m&&m.currentIndex<v8(A,z,Z)?m:A,Me=v8(oe,z,Z),Re=oe.currentIndex;if(oe===A)z--,A=A._nextRemoved;else if(m=m._next,null==oe.previousIndex)z++;else{Z||(Z=[]);const lt=Me-z,Ot=Re-z;if(lt!=Ot){for(let li=0;li<lt;li++){const gi=li<Z.length?Z[li]:Z[li]=0,Oi=gi+li;Ot<=Oi&&Oi<lt&&(Z[li]=gi+1)}Z[oe.previousIndex]=Ot-lt}}Me!==Re&&c(oe,Me,Re)}}forEachPreviousItem(c){let m;for(m=this._previousItHead;null!==m;m=m._nextPrevious)c(m)}forEachAddedItem(c){let m;for(m=this._additionsHead;null!==m;m=m._nextAdded)c(m)}forEachMovedItem(c){let m;for(m=this._movesHead;null!==m;m=m._nextMoved)c(m)}forEachRemovedItem(c){let m;for(m=this._removalsHead;null!==m;m=m._nextRemoved)c(m)}forEachIdentityChange(c){let m;for(m=this._identityChangesHead;null!==m;m=m._nextIdentityChange)c(m)}diff(c){if(null==c&&(c=[]),!tc(c))throw new w(900,!1);return this.check(c)?this:null}onDestroy(){}check(c){this._reset();let z,Z,oe,m=this._itHead,A=!1;if(Array.isArray(c)){this.length=c.length;for(let Me=0;Me<this.length;Me++)Z=c[Me],oe=this._trackByFn(Me,Z),null!==m&&Object.is(m.trackById,oe)?(A&&(m=this._verifyReinsertion(m,Z,oe,Me)),Object.is(m.item,Z)||this._addIdentityChange(m,Z)):(m=this._mismatch(m,Z,oe,Me),A=!0),m=m._next}else z=0,function Vc(s,c){if(Array.isArray(s))for(let m=0;m<s.length;m++)c(s[m]);else{const m=s[Jo()]();let A;for(;!(A=m.next()).done;)c(A.value)}}(c,Me=>{oe=this._trackByFn(z,Me),null!==m&&Object.is(m.trackById,oe)?(A&&(m=this._verifyReinsertion(m,Me,oe,z)),Object.is(m.item,Me)||this._addIdentityChange(m,Me)):(m=this._mismatch(m,Me,oe,z),A=!0),m=m._next,z++}),this.length=z;return this._truncate(m),this.collection=c,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let c;for(c=this._previousItHead=this._itHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._additionsHead;null!==c;c=c._nextAdded)c.previousIndex=c.currentIndex;for(this._additionsHead=this._additionsTail=null,c=this._movesHead;null!==c;c=c._nextMoved)c.previousIndex=c.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(c,m,A,z){let Z;return null===c?Z=this._itTail:(Z=c._prev,this._remove(c)),null!==(c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(A,null))?(Object.is(c.item,m)||this._addIdentityChange(c,m),this._reinsertAfter(c,Z,z)):null!==(c=null===this._linkedRecords?null:this._linkedRecords.get(A,z))?(Object.is(c.item,m)||this._addIdentityChange(c,m),this._moveAfter(c,Z,z)):c=this._addAfter(new Zg(m,A),Z,z),c}_verifyReinsertion(c,m,A,z){let Z=null===this._unlinkedRecords?null:this._unlinkedRecords.get(A,null);return null!==Z?c=this._reinsertAfter(Z,c._prev,z):c.currentIndex!=z&&(c.currentIndex=z,this._addToMoves(c,z)),c}_truncate(c){for(;null!==c;){const m=c._next;this._addToRemovals(this._unlink(c)),c=m}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(c,m,A){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(c);const z=c._prevRemoved,Z=c._nextRemoved;return null===z?this._removalsHead=Z:z._nextRemoved=Z,null===Z?this._removalsTail=z:Z._prevRemoved=z,this._insertAfter(c,m,A),this._addToMoves(c,A),c}_moveAfter(c,m,A){return this._unlink(c),this._insertAfter(c,m,A),this._addToMoves(c,A),c}_addAfter(c,m,A){return this._insertAfter(c,m,A),this._additionsTail=null===this._additionsTail?this._additionsHead=c:this._additionsTail._nextAdded=c,c}_insertAfter(c,m,A){const z=null===m?this._itHead:m._next;return c._next=z,c._prev=m,null===z?this._itTail=c:z._prev=c,null===m?this._itHead=c:m._next=c,null===this._linkedRecords&&(this._linkedRecords=new _8),this._linkedRecords.put(c),c.currentIndex=A,c}_remove(c){return this._addToRemovals(this._unlink(c))}_unlink(c){null!==this._linkedRecords&&this._linkedRecords.remove(c);const m=c._prev,A=c._next;return null===m?this._itHead=A:m._next=A,null===A?this._itTail=m:A._prev=m,c}_addToMoves(c,m){return c.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=c:this._movesTail._nextMoved=c),c}_addToRemovals(c){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _8),this._unlinkedRecords.put(c),c.currentIndex=null,c._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=c,c._prevRemoved=null):(c._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=c),c}_addIdentityChange(c,m){return c.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=c:this._identityChangesTail._nextIdentityChange=c,c}}class Zg{constructor(c,m){this.item=c,this.trackById=m,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Wg{constructor(){this._head=null,this._tail=null}add(c){null===this._head?(this._head=this._tail=c,c._nextDup=null,c._prevDup=null):(this._tail._nextDup=c,c._prevDup=this._tail,c._nextDup=null,this._tail=c)}get(c,m){let A;for(A=this._head;null!==A;A=A._nextDup)if((null===m||m<=A.currentIndex)&&Object.is(A.trackById,c))return A;return null}remove(c){const m=c._prevDup,A=c._nextDup;return null===m?this._head=A:m._nextDup=A,null===A?this._tail=m:A._prevDup=m,null===this._head}}class _8{constructor(){this.map=new Map}put(c){const m=c.trackById;let A=this.map.get(m);A||(A=new Wg,this.map.set(m,A)),A.add(c)}get(c,m){const z=this.map.get(c);return z?z.get(c,m):null}remove(c){const m=c.trackById;return this.map.get(m).remove(c)&&this.map.delete(m),c}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function v8(s,c,m){const A=s.previousIndex;if(null===A)return A;let z=0;return m&&A<m.length&&(z=m[A]),A+c+z}class _6{constructor(){}supports(c){return c instanceof Map||_3(c)}create(){return new Yg}}class Yg{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(c){let m;for(m=this._mapHead;null!==m;m=m._next)c(m)}forEachPreviousItem(c){let m;for(m=this._previousMapHead;null!==m;m=m._nextPrevious)c(m)}forEachChangedItem(c){let m;for(m=this._changesHead;null!==m;m=m._nextChanged)c(m)}forEachAddedItem(c){let m;for(m=this._additionsHead;null!==m;m=m._nextAdded)c(m)}forEachRemovedItem(c){let m;for(m=this._removalsHead;null!==m;m=m._nextRemoved)c(m)}diff(c){if(c){if(!(c instanceof Map||_3(c)))throw new w(900,!1)}else c=new Map;return this.check(c)?this:null}onDestroy(){}check(c){this._reset();let m=this._mapHead;if(this._appendAfter=null,this._forEach(c,(A,z)=>{if(m&&m.key===z)this._maybeAddToChanges(m,A),this._appendAfter=m,m=m._next;else{const Z=this._getOrCreateRecordForKey(z,A);m=this._insertBeforeOrAppend(m,Z)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let A=m;null!==A;A=A._nextRemoved)A===this._mapHead&&(this._mapHead=null),this._records.delete(A.key),A._nextRemoved=A._next,A.previousValue=A.currentValue,A.currentValue=null,A._prev=null,A._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(c,m){if(c){const A=c._prev;return m._next=c,m._prev=A,c._prev=m,A&&(A._next=m),c===this._mapHead&&(this._mapHead=m),this._appendAfter=c,c}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(c,m){if(this._records.has(c)){const z=this._records.get(c);this._maybeAddToChanges(z,m);const Z=z._prev,oe=z._next;return Z&&(Z._next=oe),oe&&(oe._prev=Z),z._next=null,z._prev=null,z}const A=new y8(c);return this._records.set(c,A),A.currentValue=m,this._addToAdditions(A),A}_reset(){if(this.isDirty){let c;for(this._previousMapHead=this._mapHead,c=this._previousMapHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._changesHead;null!==c;c=c._nextChanged)c.previousValue=c.currentValue;for(c=this._additionsHead;null!=c;c=c._nextAdded)c.previousValue=c.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(c,m){Object.is(m,c.currentValue)||(c.previousValue=c.currentValue,c.currentValue=m,this._addToChanges(c))}_addToAdditions(c){null===this._additionsHead?this._additionsHead=this._additionsTail=c:(this._additionsTail._nextAdded=c,this._additionsTail=c)}_addToChanges(c){null===this._changesHead?this._changesHead=this._changesTail=c:(this._changesTail._nextChanged=c,this._changesTail=c)}_forEach(c,m){c instanceof Map?c.forEach(m):Object.keys(c).forEach(A=>m(c[A],A))}}class y8{constructor(c){this.key=c,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function b8(){return new P4([new m8])}let P4=(()=>{class s{constructor(m){this.factories=m}static create(m,A){if(null!=A){const z=A.factories.slice();m=m.concat(z)}return new s(m)}static extend(m){return{provide:s,useFactory:A=>s.create(m,A||b8()),deps:[[s,new vl,new _l]]}}find(m){const A=this.factories.find(z=>z.supports(m));if(null!=A)return A;throw new w(901,!1)}}return s.\u0275prov=me({token:s,providedIn:"root",factory:b8}),s})();function x8(){return new v6([new _6])}let v6=(()=>{class s{constructor(m){this.factories=m}static create(m,A){if(A){const z=A.factories.slice();m=m.concat(z)}return new s(m)}static extend(m){return{provide:s,useFactory:A=>s.create(m,A||x8()),deps:[[s,new vl,new _l]]}}find(m){const A=this.factories.find(z=>z.supports(m));if(A)return A;throw new w(901,!1)}}return s.\u0275prov=me({token:s,providedIn:"root",factory:x8}),s})();const Qg=e8(null,"core",[]);let C8=(()=>{class s{constructor(m){}}return s.\u0275fac=function(m){return new(m||s)(Yr(nh))},s.\u0275mod=ct({type:s}),s.\u0275inj=Pe({}),s})();function M8(s){return"boolean"==typeof s?s:null!=s&&"false"!==s}},5863:(ke,J,p)=>{"use strict";function t(I){for(let E in I){let L=I[E]||"";switch(E){case"display":I.display="flex"===L?["-webkit-flex","flex"]:"inline-flex"===L?["-webkit-inline-flex","inline-flex"]:L;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":I["-webkit-"+E]=L;break;case"flex-direction":L=L||"row",I["-webkit-flex-direction"]=L,I["flex-direction"]=L;break;case"order":I.order=I["-webkit-"+E]=isNaN(+L)?"0":L}}return I}p.d(J,{Ar:()=>C,GK:()=>t,iQ:()=>f,kt:()=>h,tj:()=>M});const e="inline",f=["row","column","row-reverse","column-reverse"];function C(I){let[E,L,T]=a(I);return function R(I,E=null,L=!1){return{display:L?"inline-flex":"flex","box-sizing":"border-box","flex-direction":I,"flex-wrap":E||null}}(E,L,T)}function a(I){I=I?.toLowerCase()??"";let[E,L,T]=I.split(" ");return f.find(N=>N===E)||(E=f[0]),L===e&&(L=T!==e?T:"",T=e),[E,d(L),!!T]}function M(I){let[E]=a(I);return E.indexOf("row")>-1}function d(I){if(I)switch(I.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":I="wrap-reverse";break;case"no":case"none":case"nowrap":I="nowrap";break;default:I="wrap"}return I}function h(I,...E){if(null==I)throw TypeError("Cannot convert undefined or null to object");for(let L of E)if(null!=L)for(let T in L)L.hasOwnProperty(T)&&(I[T]=L[T]);return I}},2233:(ke,J,p)=>{"use strict";p.d(J,{Bs:()=>re,FL:()=>hi,IR:()=>T,Ot:()=>Wt,QI:()=>ce,RK:()=>ae,WU:()=>K,g5:()=>G,iR:()=>we,wY:()=>Q,yB:()=>he});var t=p(4650),e=p(6895),f=p(1135),C=p(9751),a=p(6451),M=p(7579),d=p(5863),R=p(9300),h=p(8505);const E={provide:t.tb,useFactory:function I(yt,Pt){return()=>{if((0,e.NF)(Pt)){const pt=Array.from(yt.querySelectorAll(`[class*=${L}]`)),vt=/\bflex-layout-.+?\b/g;pt.forEach(Ct=>{Ct.classList.contains(`${L}ssr`)&&Ct.parentNode?Ct.parentNode.removeChild(Ct):Ct.className.replace(vt,"")})}}},deps:[e.K0,t.Lbi],multi:!0},L="flex-layout-";let T=(()=>{class yt{}return yt.\u0275fac=function(pt){return new(pt||yt)},yt.\u0275mod=t.oAB({type:yt}),yt.\u0275inj=t.cJS({providers:[E]}),yt})();class N{constructor(Pt=!1,pt="all",vt="",Ct="",At=0){this.matches=Pt,this.mediaQuery=pt,this.mqAlias=vt,this.suffix=Ct,this.priority=At,this.property=""}clone(){return new N(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let w=(()=>{class yt{constructor(){this.stylesheet=new Map}addStyleToElement(pt,vt,Ct){const At=this.stylesheet.get(pt);At?At.set(vt,Ct):this.stylesheet.set(pt,new Map([[vt,Ct]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(pt,vt){const Ct=this.stylesheet.get(pt);let At="";if(Ct){const dt=Ct.get(vt);("number"==typeof dt||"string"==typeof dt)&&(At=dt+"")}return At}}return yt.\u0275fac=function(pt){return new(pt||yt)},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();const G={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},K=new t.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>G}),Q=new t.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),re=new t.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ie(yt,Pt){return yt=yt?yt.clone():new N,Pt&&(yt.mqAlias=Pt.alias,yt.mediaQuery=Pt.mediaQuery,yt.suffix=Pt.suffix,yt.priority=Pt.priority),yt}class ce{constructor(){this.shouldCache=!0}sideEffect(Pt,pt,vt){}}let ae=(()=>{class yt{constructor(pt,vt,Ct,At){this._serverStylesheet=pt,this._serverModuleLoaded=vt,this._platformId=Ct,this.layoutConfig=At}applyStyleToElement(pt,vt,Ct=null){let At={};"string"==typeof vt&&(At[vt]=Ct,vt=At),At=this.layoutConfig.disableVendorPrefixes?vt:(0,d.GK)(vt),this._applyMultiValueStyleToElement(At,pt)}applyStyleToElements(pt,vt=[]){const Ct=this.layoutConfig.disableVendorPrefixes?pt:(0,d.GK)(pt);vt.forEach(At=>{this._applyMultiValueStyleToElement(Ct,At)})}getFlowDirection(pt){const vt="flex-direction";let Ct=this.lookupStyle(pt,vt);return[Ct||"row",this.lookupInlineStyle(pt,vt)||(0,e.PM)(this._platformId)&&this._serverModuleLoaded?Ct:""]}hasWrap(pt){return"wrap"===this.lookupStyle(pt,"flex-wrap")}lookupAttributeValue(pt,vt){return pt.getAttribute(vt)??""}lookupInlineStyle(pt,vt){return(0,e.NF)(this._platformId)?pt.style.getPropertyValue(vt):function ne(yt,Pt){return pe(yt)[Pt]??""}(pt,vt)}lookupStyle(pt,vt,Ct=!1){let At="";return pt&&((At=this.lookupInlineStyle(pt,vt))||((0,e.NF)(this._platformId)?Ct||(At=getComputedStyle(pt).getPropertyValue(vt)):this._serverModuleLoaded&&(At=this._serverStylesheet.getStyleForElement(pt,vt)))),At?At.trim():""}_applyMultiValueStyleToElement(pt,vt){Object.keys(pt).sort().forEach(Ct=>{const At=pt[Ct],dt=Array.isArray(At)?At:[At];dt.sort();for(let ze of dt)ze=ze?ze+"":"",(0,e.NF)(this._platformId)||!this._serverModuleLoaded?(0,e.NF)(this._platformId)?vt.style.setProperty(Ct,ze):le(vt,Ct,ze):this._serverStylesheet.addStyleToElement(vt,Ct,ze)})}}return yt.\u0275fac=function(pt){return new(pt||yt)(t.LFG(w),t.LFG(Q),t.LFG(t.Lbi),t.LFG(K))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();function le(yt,Pt,pt){Pt=Pt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const vt=pe(yt);vt[Pt]=pt??"",function ee(yt,Pt){let pt="";for(const vt in Pt)Pt[vt]&&(pt+=`${vt}:${Pt[vt]};`);yt.setAttribute("style",pt)}(yt,vt)}function pe(yt){const Pt={},pt=yt.getAttribute("style");if(pt){const vt=pt.split(/;+/g);for(let Ct=0;Ct<vt.length;Ct++){const At=vt[Ct].trim();if(At.length>0){const dt=At.indexOf(":");if(-1===dt)throw new Error(`Invalid CSS style: ${At}`);Pt[At.substr(0,dt).trim()]=At.substr(dt+1).trim()}}}return Pt}function S(yt,Pt){return(Pt&&Pt.priority||0)-(yt&&yt.priority||0)}function i(yt,Pt){return(yt.priority||0)-(Pt.priority||0)}let r=(()=>{class yt{constructor(pt,vt,Ct){this._zone=pt,this._platformId=vt,this._document=Ct,this.source=new f.X(new N(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const pt=[];return this.registry.forEach((vt,Ct)=>{vt.matches&&pt.push(Ct)}),pt}isActive(pt){return this.registry.get(pt)?.matches??this.registerQuery(pt).some(Ct=>Ct.matches)}observe(pt,vt=!1){if(pt&&pt.length){const Ct=this._observable$.pipe((0,R.h)(dt=>!vt||pt.indexOf(dt.mediaQuery)>-1)),At=new C.y(dt=>{const ze=this.registerQuery(pt);if(ze.length){const Ve=ze.pop();ze.forEach(Fe=>{dt.next(Fe)}),this.source.next(Ve)}dt.complete()});return(0,a.T)(At,Ct)}return this._observable$}registerQuery(pt){const vt=Array.isArray(pt)?pt:[pt],Ct=[];return function l(yt,Pt){const pt=yt.filter(vt=>!u[vt]);if(pt.length>0){const vt=pt.join(", ");try{const Ct=Pt.createElement("style");Ct.setAttribute("type","text/css"),Ct.styleSheet||Ct.appendChild(Pt.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${vt} {.fx-query-test{ }}\n`)),Pt.head.appendChild(Ct),pt.forEach(At=>u[At]=Ct)}catch(Ct){console.error(Ct)}}}(vt,this._document),vt.forEach(At=>{const dt=Ve=>{this._zone.run(()=>this.source.next(new N(Ve.matches,At)))};let ze=this.registry.get(At);ze||(ze=this.buildMQL(At),ze.addListener(dt),this.pendingRemoveListenerFns.push(()=>ze.removeListener(dt)),this.registry.set(At,ze)),ze.matches&&Ct.push(new N(!0,At))}),Ct}ngOnDestroy(){let pt;for(;pt=this.pendingRemoveListenerFns.pop();)pt()}buildMQL(pt){return function y(yt,Pt){return Pt&&window.matchMedia("all").addListener?window.matchMedia(yt):{matches:"all"===yt||""===yt,media:yt,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(pt,(0,e.NF)(this._platformId))}}return yt.\u0275fac=function(pt){return new(pt||yt)(t.LFG(t.R0b),t.LFG(t.Lbi),t.LFG(e.K0))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();const u={},D=[{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}],k="(orientation: portrait) and (max-width: 599.98px)",b="(orientation: landscape) and (max-width: 959.98px)",n="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",_="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",W="(orientation: portrait) and (min-width: 840px)",P="(orientation: landscape) and (min-width: 1280px)",U={HANDSET:`${k}, ${b}`,TABLET:`${n} , ${_}`,WEB:`${W}, ${P} `,HANDSET_PORTRAIT:`${k}`,TABLET_PORTRAIT:`${n} `,WEB_PORTRAIT:`${W}`,HANDSET_LANDSCAPE:`${b}`,TABLET_LANDSCAPE:`${_}`,WEB_LANDSCAPE:`${P}`},me=[{alias:"handset",priority:2e3,mediaQuery:U.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:U.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:U.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:U.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:U.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:U.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:U.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:U.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:U.WEB_PORTRAIT,overlapping:!0}],nt=/(\.|-|_)/g;function Pe(yt){let Pt=yt.length>0?yt.charAt(0):"",pt=yt.length>1?yt.slice(1):"";return Pt.toUpperCase()+pt}const ve=new t.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const yt=(0,t.f3M)(re),Pt=(0,t.f3M)(K),pt=[].concat.apply([],(yt||[]).map(Ct=>Array.isArray(Ct)?Ct:[Ct]));return function ue(yt,Pt=[]){const pt={};return yt.forEach(vt=>{pt[vt.alias]=vt}),Pt.forEach(vt=>{pt[vt.alias]?(0,d.kt)(pt[vt.alias],vt):pt[vt.alias]=vt}),function De(yt){return yt.forEach(Pt=>{Pt.suffix||(Pt.suffix=function Oe(yt){return yt.replace(nt,"|").split("|").map(Pe).join("")}(Pt.alias),Pt.overlapping=!!Pt.overlapping)}),yt}(Object.keys(pt).map(vt=>pt[vt]))}((Pt.disableDefaultBps?[]:D).concat(Pt.addOrientationBps?me:[]),pt)}});let Ie=(()=>{class yt{constructor(pt){this.findByMap=new Map,this.items=[...pt].sort(i)}findByAlias(pt){return pt?this.findWithPredicate(pt,vt=>vt.alias===pt):null}findByQuery(pt){return this.findWithPredicate(pt,vt=>vt.mediaQuery===pt)}get overlappings(){return this.items.filter(pt=>pt.overlapping)}get aliases(){return this.items.map(pt=>pt.alias)}get suffixes(){return this.items.map(pt=>pt?.suffix??"")}findWithPredicate(pt,vt){let Ct=this.findByMap.get(pt);return Ct||(Ct=this.items.find(vt)??null,this.findByMap.set(pt,Ct)),Ct??null}}return yt.\u0275fac=function(pt){return new(pt||yt)(t.LFG(ve))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();const $="print",Ge={alias:$,mediaQuery:$,priority:1e3};let ut=(()=>{class yt{constructor(pt,vt,Ct){this.breakpoints=pt,this.layoutConfig=vt,this._document=Ct,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Ee,this.deactivations=[]}withPrintQuery(pt){return[...pt,$]}isPrintEvent(pt){return pt.mediaQuery.startsWith($)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(pt=>this.breakpoints.findByAlias(pt)).filter(pt=>null!==pt)}getEventBreakpoints({mediaQuery:pt}){const vt=this.breakpoints.findByQuery(pt);return(vt?[...this.printBreakPoints,vt]:this.printBreakPoints).sort(S)}updateEvent(pt){let vt=this.breakpoints.findByQuery(pt.mediaQuery);return this.isPrintEvent(pt)&&(vt=this.getEventBreakpoints(pt)[0],pt.mediaQuery=vt?.mediaQuery??""),ie(pt,vt)}registerBeforeAfterPrintHooks(pt){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const vt=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(pt,this.getEventBreakpoints(new N(!0,$))),pt.updateStyles())},Ct=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(pt),pt.updateStyles())};this._document.defaultView.addEventListener("beforeprint",vt),this._document.defaultView.addEventListener("afterprint",Ct),this.beforePrintEventListeners.push(vt),this.afterPrintEventListeners.push(Ct)}interceptEvents(pt){return vt=>{this.isPrintEvent(vt)?vt.matches&&!this.isPrinting?(this.startPrinting(pt,this.getEventBreakpoints(vt)),pt.updateStyles()):!vt.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(pt),pt.updateStyles()):this.collectActivations(pt,vt)}}blockPropagation(){return pt=>!(this.isPrinting||this.isPrintEvent(pt))}startPrinting(pt,vt){this.isPrinting=!0,this.formerActivations=pt.activatedBreakpoints,pt.activatedBreakpoints=this.queue.addPrintBreakpoints(vt)}stopPrinting(pt){pt.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(pt,vt){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!vt.matches){const Ct=this.breakpoints.findByQuery(vt.mediaQuery);if(Ct){const At=this.formerActivations&&this.formerActivations.includes(Ct),dt=!this.formerActivations&&pt.activatedBreakpoints.includes(Ct);(At||dt)&&(this.deactivations.push(Ct),this.deactivations.sort(S))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(pt=>this._document.defaultView.removeEventListener("beforeprint",pt)),this.afterPrintEventListeners.forEach(pt=>this._document.defaultView.removeEventListener("afterprint",pt)))}}return yt.\u0275fac=function(pt){return new(pt||yt)(t.LFG(Ie),t.LFG(K),t.LFG(e.K0))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();class Ee{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Pt){return Pt.push(Ge),Pt.sort(S),Pt.forEach(pt=>this.addBreakpoint(pt)),this.printBreakpoints}addBreakpoint(Pt){Pt&&void 0===this.printBreakpoints.find(vt=>vt.mediaQuery===Pt.mediaQuery)&&(this.printBreakpoints=function ye(yt){return yt?.mediaQuery.startsWith($)??!1}(Pt)?[Pt,...this.printBreakpoints]:[...this.printBreakpoints,Pt])}clear(){this.printBreakpoints=[]}}let he=(()=>{class yt{constructor(pt,vt,Ct){this.matchMedia=pt,this.breakpoints=vt,this.hook=Ct,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 M.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(pt){this._activatedBreakpoints=[...pt]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(pt){this._useFallbacks=pt}onMediaChange(pt){const vt=this.findByQuery(pt.mediaQuery);if(vt){pt=ie(pt,vt);const Ct=this.activatedBreakpoints.indexOf(vt);pt.matches&&-1===Ct?(this._activatedBreakpoints.push(vt),this._activatedBreakpoints.sort(S),this.updateStyles()):!pt.matches&&-1!==Ct&&(this._activatedBreakpoints.splice(Ct,1),this._activatedBreakpoints.sort(S),this.updateStyles())}}init(pt,vt,Ct,At,dt=[]){de(this.updateMap,pt,vt,Ct),de(this.clearMap,pt,vt,At),this.buildElementKeyMap(pt,vt),this.watchExtraTriggers(pt,vt,dt)}getValue(pt,vt,Ct){const At=this.elementMap.get(pt);if(At){const dt=void 0!==Ct?At.get(Ct):this.getActivatedValues(At,vt);if(dt)return dt.get(vt)}}hasValue(pt,vt){const Ct=this.elementMap.get(pt);if(Ct){const At=this.getActivatedValues(Ct,vt);if(At)return void 0!==At.get(vt)||!1}return!1}setValue(pt,vt,Ct,At){let dt=this.elementMap.get(pt);if(dt){const Ve=(dt.get(At)??new Map).set(vt,Ct);dt.set(At,Ve),this.elementMap.set(pt,dt)}else dt=(new Map).set(At,(new Map).set(vt,Ct)),this.elementMap.set(pt,dt);const ze=this.getValue(pt,vt);void 0!==ze&&this.updateElement(pt,vt,ze)}trackValue(pt,vt){return this.subject.asObservable().pipe((0,R.h)(Ct=>Ct.element===pt&&Ct.key===vt))}updateStyles(){this.elementMap.forEach((pt,vt)=>{const Ct=new Set(this.elementKeyMap.get(vt));let At=this.getActivatedValues(pt);At&&At.forEach((dt,ze)=>{this.updateElement(vt,ze,dt),Ct.delete(ze)}),Ct.forEach(dt=>{if(At=this.getActivatedValues(pt,dt),At){const ze=At.get(dt);this.updateElement(vt,dt,ze)}else this.clearElement(vt,dt)})})}clearElement(pt,vt){const Ct=this.clearMap.get(pt);if(Ct){const At=Ct.get(vt);At&&(At(),this.subject.next({element:pt,key:vt,value:""}))}}updateElement(pt,vt,Ct){const At=this.updateMap.get(pt);if(At){const dt=At.get(vt);dt&&(dt(Ct),this.subject.next({element:pt,key:vt,value:Ct}))}}releaseElement(pt){const vt=this.watcherMap.get(pt);vt&&(vt.forEach(At=>At.unsubscribe()),this.watcherMap.delete(pt));const Ct=this.elementMap.get(pt);Ct&&(Ct.forEach((At,dt)=>Ct.delete(dt)),this.elementMap.delete(pt))}triggerUpdate(pt,vt){const Ct=this.elementMap.get(pt);if(Ct){const At=this.getActivatedValues(Ct,vt);At&&(vt?this.updateElement(pt,vt,At.get(vt)):At.forEach((dt,ze)=>this.updateElement(pt,ze,dt)))}}buildElementKeyMap(pt,vt){let Ct=this.elementKeyMap.get(pt);Ct||(Ct=new Set,this.elementKeyMap.set(pt,Ct)),Ct.add(vt)}watchExtraTriggers(pt,vt,Ct){if(Ct&&Ct.length){let At=this.watcherMap.get(pt);if(At||(At=new Map,this.watcherMap.set(pt,At)),!At.get(vt)){const ze=(0,a.T)(...Ct).subscribe(()=>{const Ve=this.getValue(pt,vt);this.updateElement(pt,vt,Ve)});At.set(vt,ze)}}}findByQuery(pt){return this.breakpoints.findByQuery(pt)}getActivatedValues(pt,vt){for(let At=0;At<this.activatedBreakpoints.length;At++){const ze=pt.get(this.activatedBreakpoints[At].alias);if(ze&&(void 0===vt||ze.has(vt)&&null!=ze.get(vt)))return ze}if(!this._useFallbacks)return;const Ct=pt.get("");return void 0===vt||Ct&&Ct.has(vt)?Ct:void 0}observeActivations(){const pt=this.breakpoints.items.map(vt=>vt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(pt)).pipe((0,h.b)(this.hook.interceptEvents(this)),(0,R.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return yt.\u0275fac=function(pt){return new(pt||yt)(t.LFG(r),t.LFG(Ie),t.LFG(ut))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();function de(yt,Pt,pt,vt){if(void 0!==vt){const Ct=yt.get(Pt)??new Map;Ct.set(pt,vt),yt.set(Pt,Ct)}}let we=(()=>{class yt{constructor(pt,vt,Ct,At){this.elementRef=pt,this.styleBuilder=vt,this.styler=Ct,this.marshal=At,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new M.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(pt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,pt,this.marshal.activatedAlias)}ngOnChanges(pt){Object.keys(pt).forEach(vt=>{if(-1!==this.inputs.indexOf(vt)){const Ct=vt.split(".").slice(1).join(".");this.setValue(pt[vt].currentValue,Ct)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(pt=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),pt)}addStyles(pt,vt){const Ct=this.styleBuilder,At=Ct.shouldCache;let dt=this.styleCache.get(pt);(!dt||!At)&&(dt=Ct.buildStyles(pt,vt),At&&this.styleCache.set(pt,dt)),this.mru={...dt},this.applyStyleToElement(dt),Ct.sideEffect(pt,dt,vt)}clearStyles(){Object.keys(this.mru).forEach(pt=>{this.mru[pt]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(pt,vt=!1){if(pt){const[Ct,At]=this.styler.getFlowDirection(pt);if(!At&&vt){const dt=(0,d.Ar)(Ct);this.styler.applyStyleToElements(dt,[pt])}return Ct.trim()}return"row"}hasWrap(pt){return this.styler.hasWrap(pt)}applyStyleToElement(pt,vt,Ct=this.nativeElement){this.styler.applyStyleToElement(Ct,pt,vt)}setValue(pt,vt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,pt,vt)}updateWithValue(pt){this.currentValue!==pt&&(this.addStyles(pt),this.currentValue=pt)}}return yt.\u0275fac=function(pt){return new(pt||yt)(t.Y36(t.SBq),t.Y36(ce),t.Y36(ae),t.Y36(he))},yt.\u0275dir=t.lG2({type:yt,features:[t.TTD]}),yt})();function Wt(yt,Pt="1",pt="1"){let vt=[Pt,pt,yt],Ct=yt.indexOf("calc");if(Ct>0){vt[2]=Rt(yt.substring(Ct).trim());let At=yt.substr(0,Ct).trim().split(" ");2==At.length&&(vt[0]=At[0],vt[1]=At[1])}else if(0==Ct)vt[2]=Rt(yt.trim());else{let At=yt.split(" ");vt=3===At.length?At:[Pt,pt,yt]}return vt}function Rt(yt){return yt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function hi(yt,Pt){if(void 0===Pt)return yt;const pt=vt=>{const Ct=+vt.slice(0,-"x".length);return yt.endsWith("x")&&!isNaN(Ct)?`${Ct*Pt.value}${Pt.unit}`:yt};return yt.includes(" ")?yt.split(" ").map(pt).join(" "):pt(yt)}},5829:(ke,J,p)=>{"use strict";p.d(J,{Zl:()=>D,aT:()=>n,oO:()=>G});var t=p(4650),e=p(2233),f=p(6895),M=(p(1281),p(2722),p(1481));let T=(()=>{class _ extends e.iR{constructor(P,U,me,nt,Pe,Oe,De){super(P,null,U,me),this.ngClassInstance=De,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new f.mk(nt,Pe,P,Oe)),this.init(),this.setValue("","")}set klass(P){this.ngClassInstance.klass=P,this.setValue(P,"")}updateWithValue(P){this.ngClassInstance.ngClass=P,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return _.\u0275fac=function(P){return new(P||_)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(f.mk,10))},_.\u0275dir=t.lG2({type:_,inputs:{klass:["class","klass"]},features:[t.qOj]}),_})();const N=["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 G=(()=>{class _ extends T{constructor(){super(...arguments),this.inputs=N}}return _.\u0275fac=function(){let W;return function(U){return(W||(W=t.n5z(_)))(U||_)}}(),_.\u0275dir=t.lG2({type:_,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[t.qOj]}),_})();class ne{constructor(W,P,U=!0){this.key=W,this.value=P,this.key=U?W.replace(/['"]/g,"").trim():W.trim(),this.value=U?P.replace(/['"]/g,"").trim():P.trim(),this.value=this.value.replace(/;/,"")}}function le(_){let W=typeof _;return"object"===W?_.constructor===Array?"array":_.constructor===Set?"set":"object":W}function i(_){const[W,...P]=_.split(":");return new ne(W,P.join(":"))}function r(_,W){return W.key&&(_[W.key]=W.value),_}let u=(()=>{class _ extends e.iR{constructor(P,U,me,nt,Pe,Oe,De,ue,ve){super(P,null,U,me),this.sanitizer=nt,this.ngStyleInstance=De,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new f.PC(P,Pe,Oe)),this.init();const Ie=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(Ie),this.isServer=ue&&(0,f.PM)(ve)}updateWithValue(P){const U=this.buildStyleMap(P);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...U},this.isServer&&this.applyStyleToElement(U),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(P){const U=me=>this.sanitizer.sanitize(t.q3G.STYLE,me)??"";if(P)switch(le(P)){case"string":return k(function ee(_,W=";"){return String(_).trim().split(W).map(P=>P.trim()).filter(P=>""!==P)}(P),U);case"array":return k(P,U);default:return function S(_,W){let P=[];return"set"===le(_)?_.forEach(U=>P.push(U)):Object.keys(_).forEach(U=>{P.push(`${U}:${_[U]}`)}),function pe(_,W){return _.map(i).filter(U=>!!U).map(U=>(W&&(U.value=W(U.value)),U)).reduce(r,{})}(P,W)}(P,U)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return _.\u0275fac=function(P){return new(P||_)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(M.H7),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(f.PC,10),t.Y36(e.wY),t.Y36(t.Lbi))},_.\u0275dir=t.lG2({type:_,features:[t.qOj]}),_})();const l=["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 D=(()=>{class _ extends u{constructor(){super(...arguments),this.inputs=l}}return _.\u0275fac=function(){let W;return function(U){return(W||(W=t.n5z(_)))(U||_)}}(),_.\u0275dir=t.lG2({type:_,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[t.qOj]}),_})();function k(_,W){return _.map(i).filter(U=>!!U).map(U=>(W&&(U.value=W(U.value)),U)).reduce(r,{})}let n=(()=>{class _{}return _.\u0275fac=function(P){return new(P||_)},_.\u0275mod=t.oAB({type:_}),_.\u0275inj=t.cJS({imports:[[e.IR]]}),_})()},1576:(ke,J,p)=>{"use strict";p.d(J,{Wh:()=>Rt,ae:()=>ze,xw:()=>E,yH:()=>y});var t=p(4650),e=p(445),f=p(2233),C=p(5863),M=(p(7579),p(2722));let d=(()=>{class Ve extends f.QI{buildStyles(be,{display:xt}){const ct=(0,C.Ar)(be);return{...ct,display:"none"===xt?xt:ct.display}}}return Ve.\u0275fac=function(){let Fe;return function(xt){return(Fe||(Fe=t.n5z(Ve)))(xt||Ve)}}(),Ve.\u0275prov=t.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();const R=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let I=(()=>{class Ve extends f.iR{constructor(be,xt,ct,Nt,et){super(be,ct,xt,Nt),this._config=et,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(be){const ct=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=L.get(ct)??new Map,L.set(ct,this.styleCache),this.currentValue!==be&&(this.addStyles(be,{display:ct}),this.currentValue=be)}}return Ve.\u0275fac=function(be){return new(be||Ve)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(d),t.Y36(f.yB),t.Y36(f.WU))},Ve.\u0275dir=t.lG2({type:Ve,features:[t.qOj]}),Ve})(),E=(()=>{class Ve extends I{constructor(){super(...arguments),this.inputs=R}}return Ve.\u0275fac=function(){let Fe;return function(xt){return(Fe||(Fe=t.n5z(Ve)))(xt||Ve)}}(),Ve.\u0275dir=t.lG2({type:Ve,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[t.qOj]}),Ve})();const L=new Map;let i=(()=>{class Ve extends f.QI{constructor(be){super(),this.layoutConfig=be}buildStyles(be,xt){let[ct,Nt,...et]=be.split(" "),Ae=et.join(" ");const rt=xt.direction.indexOf("column")>-1?"column":"row",Qe=(0,C.tj)(rt)?"max-width":"max-height",Ke=(0,C.tj)(rt)?"min-width":"min-height",mt=String(Ae).indexOf("calc")>-1,$t=mt||"auto"===Ae,Gt=String(Ae).indexOf("%")>-1&&!mt,zt=String(Ae).indexOf("px")>-1||String(Ae).indexOf("rem")>-1||String(Ae).indexOf("em")>-1||String(Ae).indexOf("vw")>-1||String(Ae).indexOf("vh")>-1;let Et=mt||zt;ct="0"==ct?0:ct,Nt="0"==Nt?0:Nt;const ht=!ct&&!Nt;let at={};const ei={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Ae||""){case"":const Ut=!1!==this.layoutConfig.useColumnBasisZero;Ae="row"===rt?"0%":Ut?"0.000000001px":"auto";break;case"initial":case"nogrow":ct=0,Ae="auto";break;case"grow":Ae="100%";break;case"noshrink":Nt=0,Ae="auto";break;case"auto":break;case"none":ct=0,Nt=0,Ae="auto";break;default:!Et&&!Gt&&!isNaN(Ae)&&(Ae+="%"),"0%"===Ae&&(Et=!0),"0px"===Ae&&(Ae="0%"),at=(0,C.kt)(ei,mt?{"flex-grow":ct,"flex-shrink":Nt,"flex-basis":Et?Ae:"100%"}:{flex:`${ct} ${Nt} ${Et?Ae:"100%"}`})}return at.flex||at["flex-grow"]||(at=(0,C.kt)(ei,mt?{"flex-grow":ct,"flex-shrink":Nt,"flex-basis":Ae}:{flex:`${ct} ${Nt} ${Ae}`})),"0%"!==Ae&&"0px"!==Ae&&"0.000000001px"!==Ae&&"auto"!==Ae&&(at[Ke]=ht||Et&&ct?Ae:null,at[Qe]=ht||!$t&&Nt?Ae:null),at[Ke]||at[Qe]?xt.hasWrap&&(at[mt?"flex-basis":"flex"]=at[Qe]?mt?at[Qe]:`${ct} ${Nt} ${at[Qe]}`:mt?at[Ke]:`${ct} ${Nt} ${at[Ke]}`):at=(0,C.kt)(ei,mt?{"flex-grow":ct,"flex-shrink":Nt,"flex-basis":Ae}:{flex:`${ct} ${Nt} ${Ae}`}),(0,C.kt)(at,{"box-sizing":"border-box"})}}return Ve.\u0275fac=function(be){return new(be||Ve)(t.LFG(f.WU))},Ve.\u0275prov=t.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();const r=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let l=(()=>{class Ve extends f.iR{constructor(be,xt,ct,Nt,et){super(be,Nt,xt,et),this.layoutConfig=ct,this.marshal=et,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(be){this.flexShrink=be||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(be){this.flexGrow=be||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,M.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,M.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(be){const ct=be.value.split(" ");this.direction=ct[0],this.wrap=void 0!==ct[1]&&"wrap"===ct[1],this.triggerUpdate()}updateWithValue(be){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 ct=this.direction,Nt=ct.startsWith("row"),et=this.wrap;Nt&&et?this.styleCache=b:Nt&&!et?this.styleCache=D:!Nt&&et?this.styleCache=n:!Nt&&!et&&(this.styleCache=k);const Ae=String(be).replace(";",""),rt=(0,f.Ot)(Ae,this.flexGrow,this.flexShrink);this.addStyles(rt.join(" "),{direction:ct,hasWrap:et})}triggerReflow(){const be=this.activatedValue;if(void 0!==be){const xt=(0,f.Ot)(be+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,xt.join(" "))}}}return Ve.\u0275fac=function(be){return new(be||Ve)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(f.WU),t.Y36(i),t.Y36(f.yB))},Ve.\u0275dir=t.lG2({type:Ve,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[t.qOj]}),Ve})(),y=(()=>{class Ve extends l{constructor(){super(...arguments),this.inputs=r}}return Ve.\u0275fac=function(){let Fe;return function(xt){return(Fe||(Fe=t.n5z(Ve)))(xt||Ve)}}(),Ve.\u0275dir=t.lG2({type:Ve,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[t.qOj]}),Ve})();const D=new Map,k=new Map,b=new Map,n=new Map;let Ye=(()=>{class Ve extends f.QI{buildStyles(be,xt){const ct={},[Nt,et]=be.split(" ");switch(Nt){case"center":ct["justify-content"]="center";break;case"space-around":ct["justify-content"]="space-around";break;case"space-between":ct["justify-content"]="space-between";break;case"space-evenly":ct["justify-content"]="space-evenly";break;case"end":case"flex-end":ct["justify-content"]="flex-end";break;default:ct["justify-content"]="flex-start"}switch(et){case"start":case"flex-start":ct["align-items"]=ct["align-content"]="flex-start";break;case"center":ct["align-items"]=ct["align-content"]="center";break;case"end":case"flex-end":ct["align-items"]=ct["align-content"]="flex-end";break;case"space-between":ct["align-content"]="space-between",ct["align-items"]="stretch";break;case"space-around":ct["align-content"]="space-around",ct["align-items"]="stretch";break;case"baseline":ct["align-content"]="stretch",ct["align-items"]="baseline";break;default:ct["align-items"]=ct["align-content"]="stretch"}return(0,C.kt)(ct,{display:xt.inline?"inline-flex":"flex","flex-direction":xt.layout,"box-sizing":"border-box","max-width":"stretch"===et?(0,C.tj)(xt.layout)?null:"100%":null,"max-height":"stretch"===et&&(0,C.tj)(xt.layout)?"100%":null})}}return Ve.\u0275fac=function(){let Fe;return function(xt){return(Fe||(Fe=t.n5z(Ve)))(xt||Ve)}}(),Ve.\u0275prov=t.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();const Le=["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 Wt=(()=>{class Ve extends f.iR{constructor(be,xt,ct,Nt){super(be,ct,xt,Nt),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,M.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(be){const xt=this.layout||"row",ct=this.inline;"row"===xt&&ct?this.styleCache=pt:"row"!==xt||ct?"row-reverse"===xt&&ct?this.styleCache=Ct:"row-reverse"!==xt||ct?"column"===xt&&ct?this.styleCache=vt:"column"!==xt||ct?"column-reverse"===xt&&ct?this.styleCache=At:"column-reverse"===xt&&!ct&&(this.styleCache=Pt):this.styleCache=hi:this.styleCache=yt:this.styleCache=jt,this.addStyles(be,{layout:xt,inline:ct})}onLayoutChange(be){const xt=be.value.split(" ");this.layout=xt[0],this.inline=be.value.includes("inline"),C.iQ.find(ct=>ct===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Ve.\u0275fac=function(be){return new(be||Ve)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(Ye),t.Y36(f.yB))},Ve.\u0275dir=t.lG2({type:Ve,features:[t.qOj]}),Ve})(),Rt=(()=>{class Ve extends Wt{constructor(){super(...arguments),this.inputs=Le}}return Ve.\u0275fac=function(){let Fe;return function(xt){return(Fe||(Fe=t.n5z(Ve)))(xt||Ve)}}(),Ve.\u0275dir=t.lG2({type:Ve,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[t.qOj]}),Ve})();const jt=new Map,hi=new Map,yt=new Map,Pt=new Map,pt=new Map,vt=new Map,Ct=new Map,At=new Map;let ze=(()=>{class Ve{}return Ve.\u0275fac=function(be){return new(be||Ve)},Ve.\u0275mod=t.oAB({type:Ve}),Ve.\u0275inj=t.cJS({imports:[[f.IR,e.vT]]}),Ve})()},4006:(ke,J,p)=>{"use strict";p.d(J,{Cf:()=>Q,F:()=>_n,Fd:()=>nr,Fj:()=>N,JJ:()=>he,JL:()=>de,JU:()=>R,On:()=>Yi,Q7:()=>pa,QS:()=>La,UX:()=>$i,Zs:()=>Aa,_Y:()=>Mn,a5:()=>Ge,kI:()=>ce,oH:()=>dr,p4:()=>Bt,qQ:()=>ja,sg:()=>Ma,u:()=>as,u5:()=>ki,wV:()=>qn});var t=p(4650),e=p(6895),f=p(457),C=p(4128),a=p(4004);let M=(()=>{class Ze{constructor(He,Lt){this._renderer=He,this._elementRef=Lt,this.onChange=vi=>{},this.onTouched=()=>{}}setProperty(He,Lt){this._renderer.setProperty(this._elementRef.nativeElement,He,Lt)}registerOnTouched(He){this.onTouched=He}registerOnChange(He){this.onChange=He}setDisabledState(He){this.setProperty("disabled",He)}}return Ze.\u0275fac=function(He){return new(He||Ze)(t.Y36(t.Qsj),t.Y36(t.SBq))},Ze.\u0275dir=t.lG2({type:Ze}),Ze})(),d=(()=>{class Ze extends M{}return Ze.\u0275fac=function(){let qe;return function(Lt){return(qe||(qe=t.n5z(Ze)))(Lt||Ze)}}(),Ze.\u0275dir=t.lG2({type:Ze,features:[t.qOj]}),Ze})();const R=new t.OlP("NgValueAccessor"),E={provide:R,useExisting:(0,t.Gpc)(()=>N),multi:!0},T=new t.OlP("CompositionEventMode");let N=(()=>{class Ze extends M{constructor(He,Lt,vi){super(He,Lt),this._compositionMode=vi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function L(){const Ze=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(Ze.toLowerCase())}())}writeValue(He){this.setProperty("value",He??"")}_handleInput(He){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(He)}_compositionStart(){this._composing=!0}_compositionEnd(He){this._composing=!1,this._compositionMode&&this.onChange(He)}}return Ze.\u0275fac=function(He){return new(He||Ze)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(T,8))},Ze.\u0275dir=t.lG2({type:Ze,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(He,Lt){1&He&&t.NdJ("input",function(nn){return Lt._handleInput(nn.target.value)})("blur",function(){return Lt.onTouched()})("compositionstart",function(){return Lt._compositionStart()})("compositionend",function(nn){return Lt._compositionEnd(nn.target.value)})},features:[t._Bn([E]),t.qOj]}),Ze})();function G(Ze){return null==Ze||("string"==typeof Ze||Array.isArray(Ze))&&0===Ze.length}function K(Ze){return null!=Ze&&"number"==typeof Ze.length}const Q=new t.OlP("NgValidators"),re=new t.OlP("NgAsyncValidators"),ie=/^(?=.{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 ce{static min(qe){return ae(qe)}static max(qe){return ne(qe)}static required(qe){return le(qe)}static requiredTrue(qe){return ee(qe)}static email(qe){return function pe(Ze){return G(Ze.value)||ie.test(Ze.value)?null:{email:!0}}(qe)}static minLength(qe){return function S(Ze){return qe=>G(qe.value)||!K(qe.value)?null:qe.value.length<Ze?{minlength:{requiredLength:Ze,actualLength:qe.value.length}}:null}(qe)}static maxLength(qe){return function i(Ze){return qe=>K(qe.value)&&qe.value.length>Ze?{maxlength:{requiredLength:Ze,actualLength:qe.value.length}}:null}(qe)}static pattern(qe){return function r(Ze){if(!Ze)return u;let qe,He;return"string"==typeof Ze?(He="","^"!==Ze.charAt(0)&&(He+="^"),He+=Ze,"$"!==Ze.charAt(Ze.length-1)&&(He+="$"),qe=new RegExp(He)):(He=Ze.toString(),qe=Ze),Lt=>{if(G(Lt.value))return null;const vi=Lt.value;return qe.test(vi)?null:{pattern:{requiredPattern:He,actualValue:vi}}}}(qe)}static nullValidator(qe){return null}static compose(qe){return _(qe)}static composeAsync(qe){return P(qe)}}function ae(Ze){return qe=>{if(G(qe.value)||G(Ze))return null;const He=parseFloat(qe.value);return!isNaN(He)&&He<Ze?{min:{min:Ze,actual:qe.value}}:null}}function ne(Ze){return qe=>{if(G(qe.value)||G(Ze))return null;const He=parseFloat(qe.value);return!isNaN(He)&&He>Ze?{max:{max:Ze,actual:qe.value}}:null}}function le(Ze){return G(Ze.value)?{required:!0}:null}function ee(Ze){return!0===Ze.value?null:{required:!0}}function u(Ze){return null}function l(Ze){return null!=Ze}function y(Ze){return(0,t.QGY)(Ze)?(0,f.D)(Ze):Ze}function D(Ze){let qe={};return Ze.forEach(He=>{qe=null!=He?{...qe,...He}:qe}),0===Object.keys(qe).length?null:qe}function k(Ze,qe){return qe.map(He=>He(Ze))}function n(Ze){return Ze.map(qe=>function b(Ze){return!Ze.validate}(qe)?qe:He=>qe.validate(He))}function _(Ze){if(!Ze)return null;const qe=Ze.filter(l);return 0==qe.length?null:function(He){return D(k(He,qe))}}function W(Ze){return null!=Ze?_(n(Ze)):null}function P(Ze){if(!Ze)return null;const qe=Ze.filter(l);return 0==qe.length?null:function(He){const Lt=k(He,qe).map(y);return(0,C.D)(Lt).pipe((0,a.U)(D))}}function U(Ze){return null!=Ze?P(n(Ze)):null}function me(Ze,qe){return null===Ze?[qe]:Array.isArray(Ze)?[...Ze,qe]:[Ze,qe]}function nt(Ze){return Ze._rawValidators}function Pe(Ze){return Ze._rawAsyncValidators}function Oe(Ze){return Ze?Array.isArray(Ze)?Ze:[Ze]:[]}function De(Ze,qe){return Array.isArray(Ze)?Ze.includes(qe):Ze===qe}function ue(Ze,qe){const He=Oe(qe);return Oe(Ze).forEach(vi=>{De(He,vi)||He.push(vi)}),He}function ve(Ze,qe){return Oe(qe).filter(He=>!De(Ze,He))}class Ie{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(qe){this._rawValidators=qe||[],this._composedValidatorFn=W(this._rawValidators)}_setAsyncValidators(qe){this._rawAsyncValidators=qe||[],this._composedAsyncValidatorFn=U(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(qe){this._onDestroyCallbacks.push(qe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(qe=>qe()),this._onDestroyCallbacks=[]}reset(qe){this.control&&this.control.reset(qe)}hasError(qe,He){return!!this.control&&this.control.hasError(qe,He)}getError(qe,He){return this.control?this.control.getError(qe,He):null}}class $ extends Ie{get formDirective(){return null}get path(){return null}}class Ge extends Ie{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ut{constructor(qe){this._cd=qe}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let he=(()=>{class Ze extends ut{constructor(He){super(He)}}return Ze.\u0275fac=function(He){return new(He||Ze)(t.Y36(Ge,2))},Ze.\u0275dir=t.lG2({type:Ze,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(He,Lt){2&He&&t.ekj("ng-untouched",Lt.isUntouched)("ng-touched",Lt.isTouched)("ng-pristine",Lt.isPristine)("ng-dirty",Lt.isDirty)("ng-valid",Lt.isValid)("ng-invalid",Lt.isInvalid)("ng-pending",Lt.isPending)},features:[t.qOj]}),Ze})(),de=(()=>{class Ze extends ut{constructor(He){super(He)}}return Ze.\u0275fac=function(He){return new(He||Ze)(t.Y36($,10))},Ze.\u0275dir=t.lG2({type:Ze,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(He,Lt){2&He&&t.ekj("ng-untouched",Lt.isUntouched)("ng-touched",Lt.isTouched)("ng-pristine",Lt.isPristine)("ng-dirty",Lt.isDirty)("ng-valid",Lt.isValid)("ng-invalid",Lt.isInvalid)("ng-pending",Lt.isPending)("ng-submitted",Lt.isSubmitted)},features:[t.qOj]}),Ze})();const At="VALID",dt="INVALID",ze="PENDING",Ve="DISABLED";function Fe(Ze){return(Nt(Ze)?Ze.validators:Ze)||null}function be(Ze){return Array.isArray(Ze)?W(Ze):Ze||null}function xt(Ze,qe){return(Nt(qe)?qe.asyncValidators:Ze)||null}function ct(Ze){return Array.isArray(Ze)?U(Ze):Ze||null}function Nt(Ze){return null!=Ze&&!Array.isArray(Ze)&&"object"==typeof Ze}function et(Ze,qe,He){const Lt=Ze.controls;if(!(qe?Object.keys(Lt):Lt).length)throw new t.vHH(1e3,"");if(!Lt[He])throw new t.vHH(1001,"")}function Ae(Ze,qe,He){Ze._forEachChild((Lt,vi)=>{if(void 0===He[vi])throw new t.vHH(1002,"")})}class rt{constructor(qe,He){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=qe,this._rawAsyncValidators=He,this._composedValidatorFn=be(this._rawValidators),this._composedAsyncValidatorFn=ct(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(qe){this._rawValidators=this._composedValidatorFn=qe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(qe){this._rawAsyncValidators=this._composedAsyncValidatorFn=qe}get parent(){return this._parent}get valid(){return this.status===At}get invalid(){return this.status===dt}get pending(){return this.status==ze}get disabled(){return this.status===Ve}get enabled(){return this.status!==Ve}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(qe){this._rawValidators=qe,this._composedValidatorFn=be(qe)}setAsyncValidators(qe){this._rawAsyncValidators=qe,this._composedAsyncValidatorFn=ct(qe)}addValidators(qe){this.setValidators(ue(qe,this._rawValidators))}addAsyncValidators(qe){this.setAsyncValidators(ue(qe,this._rawAsyncValidators))}removeValidators(qe){this.setValidators(ve(qe,this._rawValidators))}removeAsyncValidators(qe){this.setAsyncValidators(ve(qe,this._rawAsyncValidators))}hasValidator(qe){return De(this._rawValidators,qe)}hasAsyncValidator(qe){return De(this._rawAsyncValidators,qe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(qe={}){this.touched=!0,this._parent&&!qe.onlySelf&&this._parent.markAsTouched(qe)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(qe=>qe.markAllAsTouched())}markAsUntouched(qe={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(He=>{He.markAsUntouched({onlySelf:!0})}),this._parent&&!qe.onlySelf&&this._parent._updateTouched(qe)}markAsDirty(qe={}){this.pristine=!1,this._parent&&!qe.onlySelf&&this._parent.markAsDirty(qe)}markAsPristine(qe={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(He=>{He.markAsPristine({onlySelf:!0})}),this._parent&&!qe.onlySelf&&this._parent._updatePristine(qe)}markAsPending(qe={}){this.status=ze,!1!==qe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!qe.onlySelf&&this._parent.markAsPending(qe)}disable(qe={}){const He=this._parentMarkedDirty(qe.onlySelf);this.status=Ve,this.errors=null,this._forEachChild(Lt=>{Lt.disable({...qe,onlySelf:!0})}),this._updateValue(),!1!==qe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...qe,skipPristineCheck:He}),this._onDisabledChange.forEach(Lt=>Lt(!0))}enable(qe={}){const He=this._parentMarkedDirty(qe.onlySelf);this.status=At,this._forEachChild(Lt=>{Lt.enable({...qe,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:qe.emitEvent}),this._updateAncestors({...qe,skipPristineCheck:He}),this._onDisabledChange.forEach(Lt=>Lt(!1))}_updateAncestors(qe){this._parent&&!qe.onlySelf&&(this._parent.updateValueAndValidity(qe),qe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(qe){this._parent=qe}getRawValue(){return this.value}updateValueAndValidity(qe={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===At||this.status===ze)&&this._runAsyncValidator(qe.emitEvent)),!1!==qe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!qe.onlySelf&&this._parent.updateValueAndValidity(qe)}_updateTreeValidity(qe={emitEvent:!0}){this._forEachChild(He=>He._updateTreeValidity(qe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:qe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ve:At}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(qe){if(this.asyncValidator){this.status=ze,this._hasOwnPendingAsyncValidator=!0;const He=y(this.asyncValidator(this));this._asyncValidationSubscription=He.subscribe(Lt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Lt,{emitEvent:qe})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(qe,He={}){this.errors=qe,this._updateControlsErrors(!1!==He.emitEvent)}get(qe){let He=qe;return null==He||(Array.isArray(He)||(He=He.split(".")),0===He.length)?null:He.reduce((Lt,vi)=>Lt&&Lt._find(vi),this)}getError(qe,He){const Lt=He?this.get(He):this;return Lt&&Lt.errors?Lt.errors[qe]:null}hasError(qe,He){return!!this.getError(qe,He)}get root(){let qe=this;for(;qe._parent;)qe=qe._parent;return qe}_updateControlsErrors(qe){this.status=this._calculateStatus(),qe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(qe)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?Ve:this.errors?dt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ze)?ze:this._anyControlsHaveStatus(dt)?dt:At}_anyControlsHaveStatus(qe){return this._anyControls(He=>He.status===qe)}_anyControlsDirty(){return this._anyControls(qe=>qe.dirty)}_anyControlsTouched(){return this._anyControls(qe=>qe.touched)}_updatePristine(qe={}){this.pristine=!this._anyControlsDirty(),this._parent&&!qe.onlySelf&&this._parent._updatePristine(qe)}_updateTouched(qe={}){this.touched=this._anyControlsTouched(),this._parent&&!qe.onlySelf&&this._parent._updateTouched(qe)}_registerOnCollectionChange(qe){this._onCollectionChange=qe}_setUpdateStrategy(qe){Nt(qe)&&null!=qe.updateOn&&(this._updateOn=qe.updateOn)}_parentMarkedDirty(qe){return!qe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(qe){return null}}class Qe extends rt{constructor(qe,He,Lt){super(Fe(He),xt(Lt,He)),this.controls=qe,this._initObservables(),this._setUpdateStrategy(He),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(qe,He){return this.controls[qe]?this.controls[qe]:(this.controls[qe]=He,He.setParent(this),He._registerOnCollectionChange(this._onCollectionChange),He)}addControl(qe,He,Lt={}){this.registerControl(qe,He),this.updateValueAndValidity({emitEvent:Lt.emitEvent}),this._onCollectionChange()}removeControl(qe,He={}){this.controls[qe]&&this.controls[qe]._registerOnCollectionChange(()=>{}),delete this.controls[qe],this.updateValueAndValidity({emitEvent:He.emitEvent}),this._onCollectionChange()}setControl(qe,He,Lt={}){this.controls[qe]&&this.controls[qe]._registerOnCollectionChange(()=>{}),delete this.controls[qe],He&&this.registerControl(qe,He),this.updateValueAndValidity({emitEvent:Lt.emitEvent}),this._onCollectionChange()}contains(qe){return this.controls.hasOwnProperty(qe)&&this.controls[qe].enabled}setValue(qe,He={}){Ae(this,0,qe),Object.keys(qe).forEach(Lt=>{et(this,!0,Lt),this.controls[Lt].setValue(qe[Lt],{onlySelf:!0,emitEvent:He.emitEvent})}),this.updateValueAndValidity(He)}patchValue(qe,He={}){null!=qe&&(Object.keys(qe).forEach(Lt=>{const vi=this.controls[Lt];vi&&vi.patchValue(qe[Lt],{onlySelf:!0,emitEvent:He.emitEvent})}),this.updateValueAndValidity(He))}reset(qe={},He={}){this._forEachChild((Lt,vi)=>{Lt.reset(qe[vi],{onlySelf:!0,emitEvent:He.emitEvent})}),this._updatePristine(He),this._updateTouched(He),this.updateValueAndValidity(He)}getRawValue(){return this._reduceChildren({},(qe,He,Lt)=>(qe[Lt]=He.getRawValue(),qe))}_syncPendingControls(){let qe=this._reduceChildren(!1,(He,Lt)=>!!Lt._syncPendingControls()||He);return qe&&this.updateValueAndValidity({onlySelf:!0}),qe}_forEachChild(qe){Object.keys(this.controls).forEach(He=>{const Lt=this.controls[He];Lt&&qe(Lt,He)})}_setUpControls(){this._forEachChild(qe=>{qe.setParent(this),qe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(qe){for(const[He,Lt]of Object.entries(this.controls))if(this.contains(He)&&qe(Lt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(He,Lt,vi)=>((Lt.enabled||this.disabled)&&(He[vi]=Lt.value),He))}_reduceChildren(qe,He){let Lt=qe;return this._forEachChild((vi,nn)=>{Lt=He(Lt,vi,nn)}),Lt}_allControlsDisabled(){for(const qe of Object.keys(this.controls))if(this.controls[qe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(qe){return this.controls.hasOwnProperty(qe)?this.controls[qe]:null}}class $t extends Qe{}function zt(Ze,qe){return[...qe.path,Ze]}function Et(Ze,qe){Ut(Ze,qe),qe.valueAccessor.writeValue(Ze.value),Ze.disabled&&qe.valueAccessor.setDisabledState?.(!0),function Pi(Ze,qe){qe.valueAccessor.registerOnChange(He=>{Ze._pendingValue=He,Ze._pendingChange=!0,Ze._pendingDirty=!0,"change"===Ze.updateOn&&Ei(Ze,qe)})}(Ze,qe),function Vi(Ze,qe){const He=(Lt,vi)=>{qe.valueAccessor.writeValue(Lt),vi&&qe.viewToModelUpdate(Lt)};Ze.registerOnChange(He),qe._registerOnDestroy(()=>{Ze._unregisterOnChange(He)})}(Ze,qe),function Ii(Ze,qe){qe.valueAccessor.registerOnTouched(()=>{Ze._pendingTouched=!0,"blur"===Ze.updateOn&&Ze._pendingChange&&Ei(Ze,qe),"submit"!==Ze.updateOn&&Ze.markAsTouched()})}(Ze,qe),function ei(Ze,qe){if(qe.valueAccessor.setDisabledState){const He=Lt=>{qe.valueAccessor.setDisabledState(Lt)};Ze.registerOnDisabledChange(He),qe._registerOnDestroy(()=>{Ze._unregisterOnDisabledChange(He)})}}(Ze,qe)}function ht(Ze,qe,He=!0){const Lt=()=>{};qe.valueAccessor&&(qe.valueAccessor.registerOnChange(Lt),qe.valueAccessor.registerOnTouched(Lt)),qt(Ze,qe),Ze&&(qe._invokeOnDestroyCallbacks(),Ze._registerOnCollectionChange(()=>{}))}function at(Ze,qe){Ze.forEach(He=>{He.registerOnValidatorChange&&He.registerOnValidatorChange(qe)})}function Ut(Ze,qe){const He=nt(Ze);null!==qe.validator?Ze.setValidators(me(He,qe.validator)):"function"==typeof He&&Ze.setValidators([He]);const Lt=Pe(Ze);null!==qe.asyncValidator?Ze.setAsyncValidators(me(Lt,qe.asyncValidator)):"function"==typeof Lt&&Ze.setAsyncValidators([Lt]);const vi=()=>Ze.updateValueAndValidity();at(qe._rawValidators,vi),at(qe._rawAsyncValidators,vi)}function qt(Ze,qe){let He=!1;if(null!==Ze){if(null!==qe.validator){const vi=nt(Ze);if(Array.isArray(vi)&&vi.length>0){const nn=vi.filter(_r=>_r!==qe.validator);nn.length!==vi.length&&(He=!0,Ze.setValidators(nn))}}if(null!==qe.asyncValidator){const vi=Pe(Ze);if(Array.isArray(vi)&&vi.length>0){const nn=vi.filter(_r=>_r!==qe.asyncValidator);nn.length!==vi.length&&(He=!0,Ze.setAsyncValidators(nn))}}}const Lt=()=>{};return at(qe._rawValidators,Lt),at(qe._rawAsyncValidators,Lt),He}function Ei(Ze,qe){Ze._pendingDirty&&Ze.markAsDirty(),Ze.setValue(Ze._pendingValue,{emitModelToViewChange:!1}),qe.viewToModelUpdate(Ze._pendingValue),Ze._pendingChange=!1}function Be(Ze,qe){Ut(Ze,qe)}function Xe(Ze,qe){if(!Ze.hasOwnProperty("model"))return!1;const He=Ze.model;return!!He.isFirstChange()||!Object.is(qe,He.currentValue)}function Vt(Ze,qe){Ze._syncPendingControls(),qe.forEach(He=>{const Lt=He.control;"submit"===Lt.updateOn&&Lt._pendingChange&&(He.viewToModelUpdate(Lt._pendingValue),Lt._pendingChange=!1)})}function mi(Ze,qe){if(!qe)return null;let He,Lt,vi;return Array.isArray(qe),qe.forEach(nn=>{nn.constructor===N?He=nn:function bt(Ze){return Object.getPrototypeOf(Ze.constructor)===d}(nn)?Lt=nn:vi=nn}),vi||Lt||He||null}const Ji={provide:$,useExisting:(0,t.Gpc)(()=>_n)},an=(()=>Promise.resolve())();let _n=(()=>{class Ze extends ${constructor(He,Lt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new Qe({},W(He),U(Lt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(He){an.then(()=>{const Lt=this._findContainer(He.path);He.control=Lt.registerControl(He.name,He.control),Et(He.control,He),He.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(He)})}getControl(He){return this.form.get(He.path)}removeControl(He){an.then(()=>{const Lt=this._findContainer(He.path);Lt&&Lt.removeControl(He.name),this._directives.delete(He)})}addFormGroup(He){an.then(()=>{const Lt=this._findContainer(He.path),vi=new Qe({});Be(vi,He),Lt.registerControl(He.name,vi),vi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(He){an.then(()=>{const Lt=this._findContainer(He.path);Lt&&Lt.removeControl(He.name)})}getFormGroup(He){return this.form.get(He.path)}updateModel(He,Lt){an.then(()=>{this.form.get(He.path).setValue(Lt)})}setValue(He){this.control.setValue(He)}onSubmit(He){return this.submitted=!0,Vt(this.form,this._directives),this.ngSubmit.emit(He),"dialog"===He?.target?.method}onReset(){this.resetForm()}resetForm(He){this.form.reset(He),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(He){return He.pop(),He.length?this.form.get(He):this.form}}return Ze.\u0275fac=function(He){return new(He||Ze)(t.Y36(Q,10),t.Y36(re,10))},Ze.\u0275dir=t.lG2({type:Ze,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(He,Lt){1&He&&t.NdJ("submit",function(nn){return Lt.onSubmit(nn)})("reset",function(){return Lt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Ji]),t.qOj]}),Ze})();function si(Ze,qe){const He=Ze.indexOf(qe);He>-1&&Ze.splice(He,1)}function Ti(Ze){return"object"==typeof Ze&&null!==Ze&&2===Object.keys(Ze).length&&"value"in Ze&&"disabled"in Ze}const ot=class extends rt{constructor(qe=null,He,Lt){super(Fe(He),xt(Lt,He)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(qe),this._setUpdateStrategy(He),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Nt(He)&&(He.nonNullable||He.initialValueIsDefault)&&(this.defaultValue=Ti(qe)?qe.value:qe)}setValue(qe,He={}){this.value=this._pendingValue=qe,this._onChange.length&&!1!==He.emitModelToViewChange&&this._onChange.forEach(Lt=>Lt(this.value,!1!==He.emitViewToModelChange)),this.updateValueAndValidity(He)}patchValue(qe,He={}){this.setValue(qe,He)}reset(qe=this.defaultValue,He={}){this._applyFormState(qe),this.markAsPristine(He),this.markAsUntouched(He),this.setValue(this.value,He),this._pendingChange=!1}_updateValue(){}_anyControls(qe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(qe){this._onChange.push(qe)}_unregisterOnChange(qe){si(this._onChange,qe)}registerOnDisabledChange(qe){this._onDisabledChange.push(qe)}_unregisterOnDisabledChange(qe){si(this._onDisabledChange,qe)}_forEachChild(qe){}_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(qe){Ti(qe)?(this.value=this._pendingValue=qe.value,qe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=qe}},Bt=ot,An={provide:Ge,useExisting:(0,t.Gpc)(()=>Yi)},Si=(()=>Promise.resolve())();let Yi=(()=>{class Ze extends Ge{constructor(He,Lt,vi,nn,_r){super(),this._changeDetectorRef=_r,this.control=new ot,this._registered=!1,this.update=new t.vpe,this._parent=He,this._setValidators(Lt),this._setAsyncValidators(vi),this.valueAccessor=mi(0,nn)}ngOnChanges(He){if(this._checkForErrors(),!this._registered||"name"in He){if(this._registered&&(this._checkName(),this.formDirective)){const Lt=He.name.previousValue;this.formDirective.removeControl({name:Lt,path:this._getPath(Lt)})}this._setUpControl()}"isDisabled"in He&&this._updateDisabled(He),Xe(He,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(He){this.viewModel=He,this.update.emit(He)}_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(){Et(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(He){Si.then(()=>{this.control.setValue(He,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(He){const Lt=He.isDisabled.currentValue,vi=0!==Lt&&(0,t.D6c)(Lt);Si.then(()=>{vi&&!this.control.disabled?this.control.disable():!vi&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(He){return this._parent?zt(He,this._parent):[He]}}return Ze.\u0275fac=function(He){return new(He||Ze)(t.Y36($,9),t.Y36(Q,10),t.Y36(re,10),t.Y36(R,10),t.Y36(t.sBO,8))},Ze.\u0275dir=t.lG2({type:Ze,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([An]),t.qOj,t.TTD]}),Ze})(),Mn=(()=>{class Ze{}return Ze.\u0275fac=function(He){return new(He||Ze)},Ze.\u0275dir=t.lG2({type:Ze,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ze})();const ha={provide:R,useExisting:(0,t.Gpc)(()=>qn),multi:!0};let qn=(()=>{class Ze extends d{writeValue(He){this.setProperty("value",He??"")}registerOnChange(He){this.onChange=Lt=>{He(""==Lt?null:parseFloat(Lt))}}}return Ze.\u0275fac=function(){let qe;return function(Lt){return(qe||(qe=t.n5z(Ze)))(Lt||Ze)}}(),Ze.\u0275dir=t.lG2({type:Ze,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(He,Lt){1&He&&t.NdJ("input",function(nn){return Lt.onChange(nn.target.value)})("blur",function(){return Lt.onTouched()})},features:[t._Bn([ha]),t.qOj]}),Ze})(),Kr=(()=>{class Ze{}return Ze.\u0275fac=function(He){return new(He||Ze)},Ze.\u0275mod=t.oAB({type:Ze}),Ze.\u0275inj=t.cJS({}),Ze})();const ns=new t.OlP("NgModelWithFormControlWarning"),js={provide:Ge,useExisting:(0,t.Gpc)(()=>dr)};let dr=(()=>{class Ze extends Ge{constructor(He,Lt,vi,nn){super(),this._ngModelWarningConfig=nn,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(He),this._setAsyncValidators(Lt),this.valueAccessor=mi(0,vi)}set isDisabled(He){}ngOnChanges(He){if(this._isControlChanged(He)){const Lt=He.form.previousValue;Lt&&ht(Lt,this,!1),Et(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Xe(He,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ht(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(He){this.viewModel=He,this.update.emit(He)}_isControlChanged(He){return He.hasOwnProperty("form")}}return Ze._ngModelWarningSentOnce=!1,Ze.\u0275fac=function(He){return new(He||Ze)(t.Y36(Q,10),t.Y36(re,10),t.Y36(R,10),t.Y36(ns,8))},Ze.\u0275dir=t.lG2({type:Ze,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([js]),t.qOj,t.TTD]}),Ze})();const Ka={provide:$,useExisting:(0,t.Gpc)(()=>Ma)};let Ma=(()=>{class Ze extends ${constructor(He,Lt){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(He),this._setAsyncValidators(Lt)}ngOnChanges(He){this._checkFormPresent(),He.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(qt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(He){const Lt=this.form.get(He.path);return Et(Lt,He),Lt.updateValueAndValidity({emitEvent:!1}),this.directives.push(He),Lt}getControl(He){return this.form.get(He.path)}removeControl(He){ht(He.control||null,He,!1),function Hi(Ze,qe){const He=Ze.indexOf(qe);He>-1&&Ze.splice(He,1)}(this.directives,He)}addFormGroup(He){this._setUpFormContainer(He)}removeFormGroup(He){this._cleanUpFormContainer(He)}getFormGroup(He){return this.form.get(He.path)}addFormArray(He){this._setUpFormContainer(He)}removeFormArray(He){this._cleanUpFormContainer(He)}getFormArray(He){return this.form.get(He.path)}updateModel(He,Lt){this.form.get(He.path).setValue(Lt)}onSubmit(He){return this.submitted=!0,Vt(this.form,this.directives),this.ngSubmit.emit(He),"dialog"===He?.target?.method}onReset(){this.resetForm()}resetForm(He){this.form.reset(He),this.submitted=!1}_updateDomValue(){this.directives.forEach(He=>{const Lt=He.control,vi=this.form.get(He.path);Lt!==vi&&(ht(Lt||null,He),(Ze=>Ze instanceof ot)(vi)&&(Et(vi,He),He.control=vi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(He){const Lt=this.form.get(He.path);Be(Lt,He),Lt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(He){if(this.form){const Lt=this.form.get(He.path);Lt&&function kt(Ze,qe){return qt(Ze,qe)}(Lt,He)&&Lt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ut(this.form,this),this._oldForm&&qt(this._oldForm,this)}_checkFormPresent(){}}return Ze.\u0275fac=function(He){return new(He||Ze)(t.Y36(Q,10),t.Y36(re,10))},Ze.\u0275dir=t.lG2({type:Ze,selectors:[["","formGroup",""]],hostBindings:function(He,Lt){1&He&&t.NdJ("submit",function(nn){return Lt.onSubmit(nn)})("reset",function(){return Lt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Ka]),t.qOj,t.TTD]}),Ze})();const ta={provide:Ge,useExisting:(0,t.Gpc)(()=>as)};let as=(()=>{class Ze extends Ge{constructor(He,Lt,vi,nn,_r){super(),this._ngModelWarningConfig=_r,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=He,this._setValidators(Lt),this._setAsyncValidators(vi),this.valueAccessor=mi(0,nn)}set isDisabled(He){}ngOnChanges(He){this._added||this._setUpControl(),Xe(He,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(He){this.viewModel=He,this.update.emit(He)}get path(){return zt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return Ze._ngModelWarningSentOnce=!1,Ze.\u0275fac=function(He){return new(He||Ze)(t.Y36($,13),t.Y36(Q,10),t.Y36(re,10),t.Y36(R,10),t.Y36(ns,8))},Ze.\u0275dir=t.lG2({type:Ze,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([ta]),t.qOj,t.TTD]}),Ze})();function Ls(Ze){return"number"==typeof Ze?Ze:parseFloat(Ze)}let Na=(()=>{class Ze{constructor(){this._validator=u}ngOnChanges(He){if(this.inputName in He){const Lt=this.normalizeInput(He[this.inputName].currentValue);this._enabled=this.enabled(Lt),this._validator=this._enabled?this.createValidator(Lt):u,this._onChange&&this._onChange()}}validate(He){return this._validator(He)}registerOnValidatorChange(He){this._onChange=He}enabled(He){return null!=He}}return Ze.\u0275fac=function(He){return new(He||Ze)},Ze.\u0275dir=t.lG2({type:Ze,features:[t.TTD]}),Ze})();const os={provide:Q,useExisting:(0,t.Gpc)(()=>nr),multi:!0};let nr=(()=>{class Ze extends Na{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=He=>Ls(He),this.createValidator=He=>ne(He)}}return Ze.\u0275fac=function(){let qe;return function(Lt){return(qe||(qe=t.n5z(Ze)))(Lt||Ze)}}(),Ze.\u0275dir=t.lG2({type:Ze,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(He,Lt){2&He&&t.uIk("max",Lt._enabled?Lt.max:null)},inputs:{max:"max"},features:[t._Bn([os]),t.qOj]}),Ze})();const Hr={provide:Q,useExisting:(0,t.Gpc)(()=>ja),multi:!0};let ja=(()=>{class Ze extends Na{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=He=>Ls(He),this.createValidator=He=>ae(He)}}return Ze.\u0275fac=function(){let qe;return function(Lt){return(qe||(qe=t.n5z(Ze)))(Lt||Ze)}}(),Ze.\u0275dir=t.lG2({type:Ze,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(He,Lt){2&He&&t.uIk("min",Lt._enabled?Lt.min:null)},inputs:{min:"min"},features:[t._Bn([Hr]),t.qOj]}),Ze})();const Ta={provide:Q,useExisting:(0,t.Gpc)(()=>pa),multi:!0},Zr={provide:Q,useExisting:(0,t.Gpc)(()=>Aa),multi:!0};let pa=(()=>{class Ze extends Na{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.D6c,this.createValidator=He=>le}enabled(He){return He}}return Ze.\u0275fac=function(){let qe;return function(Lt){return(qe||(qe=t.n5z(Ze)))(Lt||Ze)}}(),Ze.\u0275dir=t.lG2({type:Ze,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(He,Lt){2&He&&t.uIk("required",Lt._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([Ta]),t.qOj]}),Ze})(),Aa=(()=>{class Ze extends pa{constructor(){super(...arguments),this.createValidator=He=>ee}}return Ze.\u0275fac=function(){let qe;return function(Lt){return(qe||(qe=t.n5z(Ze)))(Lt||Ze)}}(),Ze.\u0275dir=t.lG2({type:Ze,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(He,Lt){2&He&&t.uIk("required",Lt._enabled?"":null)},features:[t._Bn([Zr]),t.qOj]}),Ze})(),ti=(()=>{class Ze{}return Ze.\u0275fac=function(He){return new(He||Ze)},Ze.\u0275mod=t.oAB({type:Ze}),Ze.\u0275inj=t.cJS({imports:[Kr]}),Ze})(),ki=(()=>{class Ze{}return Ze.\u0275fac=function(He){return new(He||Ze)},Ze.\u0275mod=t.oAB({type:Ze}),Ze.\u0275inj=t.cJS({imports:[ti]}),Ze})(),$i=(()=>{class Ze{static withConfig(He){return{ngModule:Ze,providers:[{provide:ns,useValue:He.warnOnNgModelWithFormControl}]}}}return Ze.\u0275fac=function(He){return new(He||Ze)},Ze.\u0275mod=t.oAB({type:Ze}),Ze.\u0275inj=t.cJS({imports:[ti]}),Ze})();class Kn extends rt{constructor(qe,He,Lt){super(Fe(He),xt(Lt,He)),this.controls=qe,this._initObservables(),this._setUpdateStrategy(He),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(qe){return this.controls[this._adjustIndex(qe)]}push(qe,He={}){this.controls.push(qe),this._registerControl(qe),this.updateValueAndValidity({emitEvent:He.emitEvent}),this._onCollectionChange()}insert(qe,He,Lt={}){this.controls.splice(qe,0,He),this._registerControl(He),this.updateValueAndValidity({emitEvent:Lt.emitEvent})}removeAt(qe,He={}){let Lt=this._adjustIndex(qe);Lt<0&&(Lt=0),this.controls[Lt]&&this.controls[Lt]._registerOnCollectionChange(()=>{}),this.controls.splice(Lt,1),this.updateValueAndValidity({emitEvent:He.emitEvent})}setControl(qe,He,Lt={}){let vi=this._adjustIndex(qe);vi<0&&(vi=0),this.controls[vi]&&this.controls[vi]._registerOnCollectionChange(()=>{}),this.controls.splice(vi,1),He&&(this.controls.splice(vi,0,He),this._registerControl(He)),this.updateValueAndValidity({emitEvent:Lt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(qe,He={}){Ae(this,0,qe),qe.forEach((Lt,vi)=>{et(this,!1,vi),this.at(vi).setValue(Lt,{onlySelf:!0,emitEvent:He.emitEvent})}),this.updateValueAndValidity(He)}patchValue(qe,He={}){null!=qe&&(qe.forEach((Lt,vi)=>{this.at(vi)&&this.at(vi).patchValue(Lt,{onlySelf:!0,emitEvent:He.emitEvent})}),this.updateValueAndValidity(He))}reset(qe=[],He={}){this._forEachChild((Lt,vi)=>{Lt.reset(qe[vi],{onlySelf:!0,emitEvent:He.emitEvent})}),this._updatePristine(He),this._updateTouched(He),this.updateValueAndValidity(He)}getRawValue(){return this.controls.map(qe=>qe.getRawValue())}clear(qe={}){this.controls.length<1||(this._forEachChild(He=>He._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:qe.emitEvent}))}_adjustIndex(qe){return qe<0?qe+this.length:qe}_syncPendingControls(){let qe=this.controls.reduce((He,Lt)=>!!Lt._syncPendingControls()||He,!1);return qe&&this.updateValueAndValidity({onlySelf:!0}),qe}_forEachChild(qe){this.controls.forEach((He,Lt)=>{qe(He,Lt)})}_updateValue(){this.value=this.controls.filter(qe=>qe.enabled||this.disabled).map(qe=>qe.value)}_anyControls(qe){return this.controls.some(He=>He.enabled&&qe(He))}_setUpControls(){this._forEachChild(qe=>this._registerControl(qe))}_allControlsDisabled(){for(const qe of this.controls)if(qe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(qe){qe.setParent(this),qe._registerOnCollectionChange(this._onCollectionChange)}_find(qe){return this.at(qe)??null}}function Di(Ze){return!!Ze&&(void 0!==Ze.asyncValidators||void 0!==Ze.validators||void 0!==Ze.updateOn)}let on=(()=>{class Ze{constructor(){this.useNonNullable=!1}get nonNullable(){const He=new Ze;return He.useNonNullable=!0,He}group(He,Lt=null){const vi=this._reduceControls(He);let nn={};return Di(Lt)?nn=Lt:null!==Lt&&(nn.validators=Lt.validator,nn.asyncValidators=Lt.asyncValidator),new Qe(vi,nn)}record(He,Lt=null){const vi=this._reduceControls(He);return new $t(vi,Lt)}control(He,Lt,vi){let nn={};return this.useNonNullable?(Di(Lt)?nn=Lt:(nn.validators=Lt,nn.asyncValidators=vi),new ot(He,{...nn,nonNullable:!0})):new ot(He,Lt,vi)}array(He,Lt,vi){const nn=He.map(_r=>this._createControl(_r));return new Kn(nn,Lt,vi)}_reduceControls(He){const Lt={};return Object.keys(He).forEach(vi=>{Lt[vi]=this._createControl(He[vi])}),Lt}_createControl(He){return He instanceof ot||He instanceof rt?He:Array.isArray(He)?this.control(He[0],He.length>1?He[1]:null,He.length>2?He[2]:null):this.control(He)}}return Ze.\u0275fac=function(He){return new(He||Ze)},Ze.\u0275prov=t.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:$i}),Ze})(),La=(()=>{class Ze extends on{group(He,Lt=null){return super.group(He,Lt)}control(He,Lt,vi){return super.control(He,Lt,vi)}array(He,Lt,vi){return super.array(He,Lt,vi)}}return Ze.\u0275fac=function(){let qe;return function(Lt){return(qe||(qe=t.n5z(Ze)))(Lt||Ze)}}(),Ze.\u0275prov=t.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:$i}),Ze})()},7957:(ke,J,p)=>{"use strict";p.d(J,{Bb:()=>ue,XC:()=>n,ZL:()=>De});var t=p(4761),e=p(1281),f=p(3353),C=p(4650),a=p(3238),M=p(727),d=p(7579),R=p(9770),h=p(6451),I=p(9646),E=p(4968),L=p(6895),T=p(8184),N=p(531),w=p(445),G=p(9521),K=p(4080),Q=p(4006),re=p(9549),ie=p(8675),ce=p(3900),ae=p(5698),ne=p(9300),le=p(4004),ee=p(8505),pe=p(4086);const S=["panel"];function i(ve,Ie){if(1&ve&&(C.TgZ(0,"div",0,1),C.Hsn(2),C.qZA()),2&ve){const $=Ie.id,Ge=C.oxw();C.Q6J("id",Ge.id)("ngClass",Ge._classList),C.uIk("aria-label",Ge.ariaLabel||null)("aria-labelledby",Ge._getPanelAriaLabelledby($))}}const r=["*"];let u=0;class l{constructor(Ie,$){this.source=Ie,this.option=$}}const y=(0,a.Kr)(class{}),D=new C.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function k(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let b=(()=>{class ve extends y{constructor($,Ge,ut,Ee){super(),this._changeDetectorRef=$,this._elementRef=Ge,this._activeOptionChanges=M.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new C.vpe,this.opened=new C.vpe,this.closed=new C.vpe,this.optionActivated=new C.vpe,this._classList={},this.id="mat-autocomplete-"+u++,this.inertGroups=Ee?.SAFARI||!1,this._autoActiveFirstOption=!!ut.autoActiveFirstOption,this._autoSelectActiveOption=!!ut.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption($){this._autoActiveFirstOption=(0,e.Ig)($)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption($){this._autoSelectActiveOption=(0,e.Ig)($)}set classList($){this._classList=$&&$.length?(0,e.du)($).reduce((Ge,ut)=>(Ge[ut]=!0,Ge),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new t.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe($=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[$]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop($){this.panel&&(this.panel.nativeElement.scrollTop=$)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent($){const Ge=new l(this,$);this.optionSelected.emit(Ge)}_getPanelAriaLabelledby($){return this.ariaLabel?null:this.ariaLabelledby?($?$+" ":"")+this.ariaLabelledby:$}_setVisibilityClasses($){$[this._visibleClass]=this.showPanel,$[this._hiddenClass]=!this.showPanel}}return ve.\u0275fac=function($){return new($||ve)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(D),C.Y36(f.t4))},ve.\u0275dir=C.lG2({type:ve,viewQuery:function($,Ge){if(1&$&&(C.Gf(C.Rgc,7),C.Gf(S,5)),2&$){let ut;C.iGM(ut=C.CRH())&&(Ge.template=ut.first),C.iGM(ut=C.CRH())&&(Ge.panel=ut.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[C.qOj]}),ve})(),n=(()=>{class ve extends b{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return ve.\u0275fac=function(){let Ie;return function(Ge){return(Ie||(Ie=C.n5z(ve)))(Ge||ve)}}(),ve.\u0275cmp=C.Xpm({type:ve,selectors:[["mat-autocomplete"]],contentQueries:function($,Ge,ut){if(1&$&&(C.Suo(ut,a.K7,5),C.Suo(ut,a.ey,5)),2&$){let Ee;C.iGM(Ee=C.CRH())&&(Ge.optionGroups=Ee),C.iGM(Ee=C.CRH())&&(Ge.options=Ee)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[C._Bn([{provide:a.HF,useExisting:ve}]),C.qOj],ngContentSelectors:r,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function($,Ge){1&$&&(C.F$t(),C.YNc(0,i,3,4,"ng-template"))},dependencies:[L.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),ve})();const P=new C.OlP("mat-autocomplete-scroll-strategy"),me={provide:P,deps:[T.aV],useFactory:function U(ve){return()=>ve.scrollStrategies.reposition()}},nt={provide:Q.JU,useExisting:(0,C.Gpc)(()=>De),multi:!0};let Oe=(()=>{class ve{constructor($,Ge,ut,Ee,ye,he,de,we,Y,j,Ce){this._element=$,this._overlay=Ge,this._viewContainerRef=ut,this._zone=Ee,this._changeDetectorRef=ye,this._dir=de,this._formField=we,this._document=Y,this._viewportRuler=j,this._defaults=Ce,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=M.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new d.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,R.P)(()=>{const Se=this.autocomplete?this.autocomplete.options:null;return Se?Se.changes.pipe((0,ie.O)(Se),(0,ce.w)(()=>(0,h.T)(...Se.map(X=>X.onSelectionChange)))):this._zone.onStable.pipe((0,ae.q)(1),(0,ce.w)(()=>this.optionSelections))}),this._scrollStrategy=he}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled($){this._autocompleteDisabled=(0,e.Ig)($)}ngAfterViewInit(){const $=this._getWindow();typeof $<"u"&&this._zone.runOutsideAngular(()=>$.addEventListener("blur",this._windowBlurHandler))}ngOnChanges($){$.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const $=this._getWindow();typeof $<"u"&&$.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,h.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ne.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ne.h)(()=>this._overlayAttached)):(0,I.of)()).pipe((0,le.U)($=>$ instanceof a.rN?$:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,h.T)((0,E.R)(this._document,"click"),(0,E.R)(this._document,"auxclick"),(0,E.R)(this._document,"touchend")).pipe((0,ne.h)($=>{const Ge=(0,f.sA)($),ut=this._formField?this._formField._elementRef.nativeElement:null,Ee=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Ge!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!ut||!ut.contains(Ge))&&(!Ee||!Ee.contains(Ge))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Ge)}))}writeValue($){Promise.resolve(null).then(()=>this._assignOptionValue($))}registerOnChange($){this._onChange=$}registerOnTouched($){this._onTouched=$}setDisabledState($){this._element.nativeElement.disabled=$}_handleKeydown($){const Ge=$.keyCode,ut=(0,G.Vb)($);if(Ge===G.hY&&!ut&&$.preventDefault(),this.activeOption&&Ge===G.K5&&this.panelOpen&&!ut)this.activeOption._selectViaInteraction(),this._resetActiveItem(),$.preventDefault();else if(this.autocomplete){const Ee=this.autocomplete._keyManager.activeItem,ye=Ge===G.LH||Ge===G.JH;Ge===G.Mf||ye&&!ut&&this.panelOpen?this.autocomplete._keyManager.onKeydown($):ye&&this._canOpen()&&this.openPanel(),(ye||this.autocomplete._keyManager.activeItem!==Ee)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput($){let Ge=$.target,ut=Ge.value;"number"===Ge.type&&(ut=""==ut?null:parseFloat(ut)),this._previousValue!==ut&&(this._previousValue=ut,this._pendingAutoselectedOption=null,this._onChange(ut),this._canOpen()&&this._document.activeElement===$.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel($=!1){this._formField&&"auto"===this._formField.floatLabel&&($?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const $=this._zone.onStable.pipe((0,ae.q)(1)),Ge=this.autocomplete.options.changes.pipe((0,ee.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,pe.g)(0));return(0,h.T)($,Ge).pipe((0,ce.w)(()=>(this._zone.run(()=>{const ut=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),ut!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,ae.q)(1)).subscribe(ut=>this._setValueAndClose(ut))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue($){const Ge=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith($):$;this._updateNativeInputValue(Ge??"")}_updateNativeInputValue($){this._formField?this._formField._control.value=$:this._element.nativeElement.value=$,this._previousValue=$}_setValueAndClose($){const Ge=$?$.source:this._pendingAutoselectedOption;Ge&&(this._clearPreviousSelectedOption(Ge),this._assignOptionValue(Ge.value),this._onChange(Ge.value),this.autocomplete._emitSelectEvent(Ge),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption($){this.autocomplete.options.forEach(Ge=>{Ge!==$&&Ge.selected&&Ge.deselect()})}_attachOverlay(){let $=this._overlayRef;$?(this._positionStrategy.setOrigin(this._getConnectedElement()),$.updateSize({width:this._getPanelWidth()})):(this._portal=new K.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),$=this._overlay.create(this._getOverlayConfig()),this._overlayRef=$,this._handleOverlayEvents($),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&$&&$.updateSize({width:this._getPanelWidth()})})),$&&!$.hasAttached()&&($.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Ge=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&Ge!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new T.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const $=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions($),this._positionStrategy=$,$}_setStrategyPositions($){const Ge=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ut=this._aboveClass,Ee=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:ut},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:ut}];let ye;ye="above"===this.position?Ee:"below"===this.position?Ge:[...Ge,...Ee],$.withPositions(ye)}_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 $=this.autocomplete;$.autoActiveFirstOption?$._keyManager.setFirstItemActive():$._keyManager.setActiveItem(-1)}_canOpen(){const $=this._element.nativeElement;return!$.readOnly&&!$.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption($){const Ge=this.autocomplete,ut=(0,a.CB)($,Ge.options,Ge.optionGroups);if(0===$&&1===ut)Ge._setScrollTop(0);else if(Ge.panel){const Ee=Ge.options.toArray()[$];if(Ee){const ye=Ee._getHostElement(),he=(0,a.jH)(ye.offsetTop,ye.offsetHeight,Ge._getScrollTop(),Ge.panel.nativeElement.offsetHeight);Ge._setScrollTop(he)}}}_handleOverlayEvents($){$.keydownEvents().subscribe(Ge=>{(Ge.keyCode===G.hY&&!(0,G.Vb)(Ge)||Ge.keyCode===G.LH&&(0,G.Vb)(Ge,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),Ge.stopPropagation(),Ge.preventDefault())}),$.outsidePointerEvents().subscribe()}}return ve.\u0275fac=function($){return new($||ve)(C.Y36(C.SBq),C.Y36(T.aV),C.Y36(C.s_b),C.Y36(C.R0b),C.Y36(C.sBO),C.Y36(P),C.Y36(w.Is,8),C.Y36(re.G_,9),C.Y36(L.K0,8),C.Y36(N.rL),C.Y36(D,8))},ve.\u0275dir=C.lG2({type:ve,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[C.TTD]}),ve})(),De=(()=>{class ve extends Oe{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return ve.\u0275fac=function(){let Ie;return function(Ge){return(Ie||(Ie=C.n5z(ve)))(Ge||ve)}}(),ve.\u0275dir=C.lG2({type:ve,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function($,Ge){1&$&&C.NdJ("focusin",function(){return Ge._handleFocus()})("blur",function(){return Ge._onTouched()})("input",function(Ee){return Ge._handleInput(Ee)})("keydown",function(Ee){return Ge._handleKeydown(Ee)})("click",function(){return Ge._handleClick()}),2&$&&C.uIk("autocomplete",Ge.autocompleteAttribute)("role",Ge.autocompleteDisabled?null:"combobox")("aria-autocomplete",Ge.autocompleteDisabled?null:"list")("aria-activedescendant",Ge.panelOpen&&Ge.activeOption?Ge.activeOption.id:null)("aria-expanded",Ge.autocompleteDisabled?null:Ge.panelOpen.toString())("aria-owns",Ge.autocompleteDisabled||!Ge.panelOpen||null==Ge.autocomplete?null:Ge.autocomplete.id)("aria-haspopup",Ge.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[C._Bn([nt]),C.qOj]}),ve})(),ue=(()=>{class ve{}return ve.\u0275fac=function($){return new($||ve)},ve.\u0275mod=C.oAB({type:ve}),ve.\u0275inj=C.cJS({providers:[me],imports:[T.U8,a.Ng,a.BQ,L.ez,N.ZD,a.Ng,a.BQ]}),ve})()},2673:(ke,J,p)=>{"use strict";p.d(J,{g:()=>h,k:()=>R});var t=p(4650),e=p(3238),f=p(4761),C=p(1281);let a=0;const M=(0,e.Id)(class{}),d="mat-badge-content";let R=(()=>{class I extends M{constructor(L,T,N,w,G){super(),this._ngZone=L,this._elementRef=T,this._ariaDescriber=N,this._renderer=w,this._animationMode=G,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=a++,this._isInitialized=!1}get color(){return this._color}set color(L){this._setColor(L),this._color=L}get overlap(){return this._overlap}set overlap(L){this._overlap=(0,C.Ig)(L)}get content(){return this._content}set content(L){this._updateRenderedContent(L)}get description(){return this._description}set description(L){this._updateHostAriaDescription(L)}get hidden(){return this._hidden}set hidden(L){this._hidden=(0,C.Ig)(L)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const L=this._renderer.createElement("span"),T="mat-badge-active";return L.setAttribute("id",`mat-badge-content-${this._id}`),L.setAttribute("aria-hidden","true"),L.classList.add(d),"NoopAnimations"===this._animationMode&&L.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(L),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{L.classList.add(T)})}):L.classList.add(T),L}_updateRenderedContent(L){const T=`${L??""}`.trim();this._isInitialized&&T&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=T),this._content=T}_updateHostAriaDescription(L){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),L&&this._ariaDescriber.describe(this._elementRef.nativeElement,L),this._description=L}_setColor(L){const T=this._elementRef.nativeElement.classList;T.remove(`mat-badge-${this._color}`),L&&T.add(`mat-badge-${L}`)}_clearExistingBadges(){const L=this._elementRef.nativeElement.querySelectorAll(`:scope > .${d}`);for(const T of Array.from(L))T!==this._badgeElement&&T.remove()}}return I.\u0275fac=function(L){return new(L||I)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(f.$s),t.Y36(t.Qsj),t.Y36(t.QbO,8))},I.\u0275dir=t.lG2({type:I,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(L,T){2&L&&t.ekj("mat-badge-overlap",T.overlap)("mat-badge-above",T.isAbove())("mat-badge-below",!T.isAbove())("mat-badge-before",!T.isAfter())("mat-badge-after",T.isAfter())("mat-badge-small","small"===T.size)("mat-badge-medium","medium"===T.size)("mat-badge-large","large"===T.size)("mat-badge-hidden",T.hidden||!T.content)("mat-badge-disabled",T.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[t.qOj]}),I})(),h=(()=>{class I{}return I.\u0275fac=function(L){return new(L||I)},I.\u0275mod=t.oAB({type:I}),I.\u0275inj=t.cJS({imports:[f.rt,e.BQ,e.BQ]}),I})()},4859:(ke,J,p)=>{"use strict";p.d(J,{lW:()=>I,ot:()=>L});var t=p(4650),e=p(3238),f=p(4761);const C=["mat-button",""],a=["*"],R=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],h=(0,e.pj)((0,e.Id)((0,e.Kr)(class{constructor(T){this._elementRef=T}})));let I=(()=>{class T extends h{constructor(w,G,K){super(w),this._focusMonitor=G,this._animationMode=K,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Q of R)this._hasHostAttributes(Q)&&this._getHostElement().classList.add(Q);w.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(w,G){w?this._focusMonitor.focusVia(this._getHostElement(),w,G):this._getHostElement().focus(G)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...w){return w.some(G=>this._getHostElement().hasAttribute(G))}}return T.\u0275fac=function(w){return new(w||T)(t.Y36(t.SBq),t.Y36(f.tE),t.Y36(t.QbO,8))},T.\u0275cmp=t.Xpm({type:T,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(w,G){if(1&w&&t.Gf(e.wG,5),2&w){let K;t.iGM(K=t.CRH())&&(G.ripple=K.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(w,G){2&w&&(t.uIk("disabled",G.disabled||null),t.ekj("_mat-animation-noopable","NoopAnimations"===G._animationMode)("mat-button-disabled",G.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[t.qOj],attrs:C,ngContentSelectors:a,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(w,G){1&w&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&w&&(t.xp6(2),t.ekj("mat-button-ripple-round",G.isRoundButton||G.isIconButton),t.Q6J("matRippleDisabled",G._isRippleDisabled())("matRippleCentered",G.isIconButton)("matRippleTrigger",G._getHostElement()))},dependencies:[e.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),T})(),L=(()=>{class T{}return T.\u0275fac=function(w){return new(w||T)},T.\u0275mod=t.oAB({type:T}),T.\u0275inj=t.cJS({imports:[e.si,e.BQ,e.BQ]}),T})()},3546:(ke,J,p)=>{"use strict";p.d(J,{$j:()=>E,QW:()=>ne,a8:()=>ie,dk:()=>ce,dn:()=>h,n5:()=>I});var t=p(4650),e=p(3238);const f=["*",[["mat-card-footer"]]],C=["*","mat-card-footer"],a=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],M=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let h=(()=>{class le{}return le.\u0275fac=function(pe){return new(pe||le)},le.\u0275dir=t.lG2({type:le,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),le})(),I=(()=>{class le{}return le.\u0275fac=function(pe){return new(pe||le)},le.\u0275dir=t.lG2({type:le,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),le})(),E=(()=>{class le{}return le.\u0275fac=function(pe){return new(pe||le)},le.\u0275dir=t.lG2({type:le,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),le})(),ie=(()=>{class le{constructor(pe){this._animationMode=pe}}return le.\u0275fac=function(pe){return new(pe||le)(t.Y36(t.QbO,8))},le.\u0275cmp=t.Xpm({type:le,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(pe,S){2&pe&&t.ekj("_mat-animation-noopable","NoopAnimations"===S._animationMode)},exportAs:["matCard"],ngContentSelectors:C,decls:2,vars:0,template:function(pe,S){1&pe&&(t.F$t(f),t.Hsn(0),t.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),le})(),ce=(()=>{class le{}return le.\u0275fac=function(pe){return new(pe||le)},le.\u0275cmp=t.Xpm({type:le,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:M,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(pe,S){1&pe&&(t.F$t(a),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0}),le})(),ne=(()=>{class le{}return le.\u0275fac=function(pe){return new(pe||le)},le.\u0275mod=t.oAB({type:le}),le.\u0275inj=t.cJS({imports:[e.BQ,e.BQ]}),le})()},6709:(ke,J,p)=>{"use strict";p.d(J,{oG:()=>re,p9:()=>ne});var t=p(4761),e=p(1281),f=p(4650),C=p(4006),a=p(3238),M=p(9643);const d=["input"],R=["label"],h=function(le){return{enterDuration:le}},I=["*"],E=new f.OlP("mat-checkbox-default-options",{providedIn:"root",factory:L});function L(){return{color:"accent",clickAction:"check-indeterminate"}}let T=0;const N=L(),w={provide:C.JU,useExisting:(0,f.Gpc)(()=>re),multi:!0};class G{}const K=(0,a.sb)((0,a.pj)((0,a.Kr)((0,a.Id)(class{constructor(le){this._elementRef=le}}))));let Q=(()=>{class le extends K{constructor(pe,S,i,r,u,l,y){super(S),this._changeDetectorRef=i,this._ngZone=r,this._animationMode=l,this._options=y,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new f.vpe,this.indeterminateChange=new f.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||N,this.color=this.defaultColor=this._options.color||N.color,this.tabIndex=parseInt(u)||0,this.id=this._uniqueId=`${pe}${++T}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(pe){this._required=(0,e.Ig)(pe)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(pe){const S=(0,e.Ig)(pe);S!=this.checked&&(this._checked=S,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(pe){const S=(0,e.Ig)(pe);S!==this.disabled&&(this._disabled=S,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(pe){const S=pe!=this._indeterminate;this._indeterminate=(0,e.Ig)(pe),S&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(pe){this.checked=!!pe}registerOnChange(pe){this._controlValueAccessorChangeFn=pe}registerOnTouched(pe){this._onTouched=pe}setDisabledState(pe){this.disabled=pe}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(pe){let S=this._currentCheckState,i=this._getAnimationTargetElement();if(S!==pe&&i&&(this._currentAnimationClass&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(S,pe),this._currentCheckState=pe,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(r)},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 pe=this._options?.clickAction;this.disabled||"noop"===pe?!this.disabled&&"noop"===pe&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==pe&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(pe){pe.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(pe,S){if("NoopAnimations"===this._animationMode)return"";switch(pe){case 0:if(1===S)return this._animationClasses.uncheckedToChecked;if(3==S)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===S?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===S?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===S?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(pe){const S=this._inputElement;S&&(S.nativeElement.indeterminate=pe)}}return le.\u0275fac=function(pe){f.$Z()},le.\u0275dir=f.lG2({type:le,viewQuery:function(pe,S){if(1&pe&&(f.Gf(d,5),f.Gf(R,5),f.Gf(a.wG,5)),2&pe){let i;f.iGM(i=f.CRH())&&(S._inputElement=i.first),f.iGM(i=f.CRH())&&(S._labelElement=i.first),f.iGM(i=f.CRH())&&(S.ripple=i.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[f.qOj]}),le})(),re=(()=>{class le extends Q{constructor(pe,S,i,r,u,l,y){super("mat-checkbox-",pe,S,r,u,l,y),this._focusMonitor=i,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(pe){const S=new G;return S.source=this,S.checked=pe,S}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(pe=>{pe||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(pe){pe.stopPropagation(),super._handleInputClick()}focus(pe,S){pe?this._focusMonitor.focusVia(this._inputElement,pe,S):this._inputElement.nativeElement.focus(S)}}return le.\u0275fac=function(pe){return new(pe||le)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(t.tE),f.Y36(f.R0b),f.$8M("tabindex"),f.Y36(f.QbO,8),f.Y36(E,8))},le.\u0275cmp=f.Xpm({type:le,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(pe,S){2&pe&&(f.Ikx("id",S.id),f.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),f.ekj("mat-checkbox-indeterminate",S.indeterminate)("mat-checkbox-checked",S.checked)("mat-checkbox-disabled",S.disabled)("mat-checkbox-label-before","before"==S.labelPosition)("_mat-animation-noopable","NoopAnimations"===S._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[f._Bn([w]),f.qOj],ngContentSelectors:I,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(pe,S){if(1&pe&&(f.F$t(),f.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),f.NdJ("change",function(r){return S._onInteractionEvent(r)})("click",function(r){return S._onInputClick(r)}),f.qZA(),f.TgZ(5,"span",5),f._UZ(6,"span",6),f.qZA(),f._UZ(7,"span",7),f.TgZ(8,"span",8),f.O4$(),f.TgZ(9,"svg",9),f._UZ(10,"path",10),f.qZA(),f.kcU(),f._UZ(11,"span",11),f.qZA()(),f.TgZ(12,"span",12,13),f.NdJ("cdkObserveContent",function(){return S._onLabelTextChange()}),f.TgZ(14,"span",14),f._uU(15,"\xa0"),f.qZA(),f.Hsn(16),f.qZA()()),2&pe){const i=f.MAs(1),r=f.MAs(13);f.uIk("for",S.inputId),f.xp6(2),f.ekj("mat-checkbox-inner-container-no-side-margin",!r.textContent||!r.textContent.trim()),f.xp6(1),f.Q6J("id",S.inputId)("required",S.required)("checked",S.checked)("disabled",S.disabled)("tabIndex",S.tabIndex),f.uIk("value",S.value)("name",S.name)("aria-label",S.ariaLabel||null)("aria-labelledby",S.ariaLabelledby)("aria-checked",S._getAriaChecked())("aria-describedby",S.ariaDescribedby),f.xp6(2),f.Q6J("matRippleTrigger",i)("matRippleDisabled",S._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",f.VKq(19,h,"NoopAnimations"===S._animationMode?0:150))}},dependencies:[a.wG,M.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),le})(),ae=(()=>{class le{}return le.\u0275fac=function(pe){return new(pe||le)},le.\u0275mod=f.oAB({type:le}),le.\u0275inj=f.cJS({}),le})(),ne=(()=>{class le{}return le.\u0275fac=function(pe){return new(pe||le)},le.\u0275mod=f.oAB({type:le}),le.\u0275inj=f.cJS({imports:[a.si,a.BQ,M.Q8,ae,a.BQ,ae]}),le})()},7331:(ke,J,p)=>{"use strict";p.d(J,{HS:()=>pe,Hi:()=>n,qn:()=>y});var t=p(9521),e=p(4650),f=p(3238),C=p(1281),a=p(3353),M=p(6895),d=p(7579),R=p(6451),h=p(5698),I=p(2722),E=p(8675),L=p(4761),T=p(445),N=p(5017),w=p(4006),G=p(9549);const K=["*"],re=new e.OlP("MatChipRemove"),ie=new e.OlP("MatChipAvatar"),ce=new e.OlP("MatChipTrailingIcon");class ae{constructor(W){this._elementRef=W}}const ne=(0,f.sb)((0,f.pj)((0,f.Kr)(ae),"primary"),-1);let pe=(()=>{class _ extends ne{constructor(P,U,me,nt,Pe,Oe,De,ue){super(P),this._ngZone=U,this._changeDetectorRef=Pe,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new d.x,this._onBlur=new d.x,this.selectionChange=new e.vpe,this.destroyed=new e.vpe,this.removed=new e.vpe,this._addHostClassName(),this._chipRippleTarget=Oe.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new f.IR(this,U,this._chipRippleTarget,me),this._chipRipple.setupTriggerEvents(P),this.rippleConfig=nt||{},this._animationsDisabled="NoopAnimations"===De,this.tabIndex=null!=ue&&parseInt(ue)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(P){const U=(0,C.Ig)(P);U!==this._selected&&(this._selected=U,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(P){this._value=P}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(P){this._selectable=(0,C.Ig)(P)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(P){this._disabled=(0,C.Ig)(P)}get removable(){return this._removable}set removable(P){this._removable=(0,C.Ig)(P)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const P="mat-basic-chip",U=this._elementRef.nativeElement;U.hasAttribute(P)||U.tagName.toLowerCase()===P?U.classList.add(P):U.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(P=!1){return this._selected=!this.selected,this._dispatchSelectionChange(P),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(P){this.disabled&&P.preventDefault()}_handleKeydown(P){if(!this.disabled)switch(P.keyCode){case t.yY:case t.ZH:this.remove(),P.preventDefault();break;case t.L_:this.selectable&&this.toggleSelected(!0),P.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(P=!1){this.selectionChange.emit({source:this,isUserInput:P,selected:this._selected})}}return _.\u0275fac=function(P){return new(P||_)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(a.t4),e.Y36(f.Y2,8),e.Y36(e.sBO),e.Y36(M.K0),e.Y36(e.QbO,8),e.$8M("tabindex"))},_.\u0275dir=e.lG2({type:_,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(P,U,me){if(1&P&&(e.Suo(me,ie,5),e.Suo(me,ce,5),e.Suo(me,re,5)),2&P){let nt;e.iGM(nt=e.CRH())&&(U.avatar=nt.first),e.iGM(nt=e.CRH())&&(U.trailingIcon=nt.first),e.iGM(nt=e.CRH())&&(U.removeIcon=nt.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(P,U){1&P&&e.NdJ("click",function(nt){return U._handleClick(nt)})("keydown",function(nt){return U._handleKeydown(nt)})("focus",function(){return U.focus()})("blur",function(){return U._blur()}),2&P&&(e.uIk("tabindex",U.disabled?null:U.tabIndex)("role",U.role)("disabled",U.disabled||null)("aria-disabled",U.disabled.toString())("aria-selected",U.ariaSelected),e.ekj("mat-chip-selected",U.selected)("mat-chip-with-avatar",U.avatar)("mat-chip-with-trailing-icon",U.trailingIcon||U.removeIcon)("mat-chip-disabled",U.disabled)("_mat-animation-noopable",U._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[e.qOj]}),_})();const i=new e.OlP("mat-chips-default-options"),r=(0,f.FD)(class{constructor(_,W,P,U){this._defaultErrorStateMatcher=_,this._parentForm=W,this._parentFormGroup=P,this.ngControl=U,this.stateChanges=new d.x}});let u=0;class l{constructor(W,P){this.source=W,this.value=P}}let y=(()=>{class _ extends r{constructor(P,U,me,nt,Pe,Oe,De){super(Oe,nt,Pe,De),this._elementRef=P,this._changeDetectorRef=U,this._dir=me,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new d.x,this._uid="mat-chip-list-"+u++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(ue,ve)=>ue===ve,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new e.vpe,this.valueChange=new e.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(P){this._explicitRole=P}get multiple(){return this._multiple}set multiple(P){this._multiple=(0,C.Ig)(P),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(P){this._compareWith=P,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(P){this.writeValue(P),this._value=P}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(w.kI.required)??!1}set required(P){this._required=(0,C.Ig)(P),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(P){this._placeholder=P,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(P){this._disabled=(0,C.Ig)(P),this._syncChipsState()}get selectable(){return this._selectable}set selectable(P){this._selectable=(0,C.Ig)(P),this._syncChipsState()}set tabIndex(P){this._userTabIndex=P,this._tabIndex=P}get chipSelectionChanges(){return(0,R.T)(...this.chips.map(P=>P.selectionChange))}get chipFocusChanges(){return(0,R.T)(...this.chips.map(P=>P._onFocus))}get chipBlurChanges(){return(0,R.T)(...this.chips.map(P=>P._onBlur))}get chipRemoveChanges(){return(0,R.T)(...this.chips.map(P=>P.destroyed))}ngAfterContentInit(){this._keyManager=new L.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,I.R)(this._destroyed)).subscribe(P=>this._keyManager.withHorizontalOrientation(P)),this._keyManager.tabOut.pipe((0,I.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,E.O)(null),(0,I.R)(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new N.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(P){this._chipInput=P,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",P.id)}setDescribedByIds(P){P.length?this._elementRef.nativeElement.setAttribute("aria-describedby",P.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(P){this.chips&&this._setSelectionByValue(P,!1)}registerOnChange(P){this._onChange=P}registerOnTouched(P){this._onTouched=P}setDisabledState(P){this.disabled=P,this.stateChanges.next()}onContainerClick(P){this._originatesFromChip(P)||this.focus()}focus(P){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(P),this.stateChanges.next()))}_focusInput(P){this._chipInput&&this._chipInput.focus(P)}_keydown(P){const U=P.target;U&&U.classList.contains("mat-chip")&&(this._keyManager.onKeydown(P),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const P=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(P)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(P){return P>=0&&P<this.chips.length}_setSelectionByValue(P,U=!0){if(this._clearSelection(),this.chips.forEach(me=>me.deselect()),Array.isArray(P))P.forEach(me=>this._selectValue(me,U)),this._sortValues();else{const me=this._selectValue(P,U);me&&U&&this._keyManager.setActiveItem(me)}}_selectValue(P,U=!0){const me=this.chips.find(nt=>null!=nt.value&&this._compareWith(nt.value,P));return me&&(U?me.selectViaInteraction():me.select(),this._selectionModel.select(me)),me}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(P){this._selectionModel.clear(),this.chips.forEach(U=>{U!==P&&U.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(P=>{P.selected&&this._selectionModel.select(P)}),this.stateChanges.next())}_propagateChanges(P){let U=null;U=Array.isArray(this.selected)?this.selected.map(me=>me.value):this.selected?this.selected.value:P,this._value=U,this.change.emit(new l(this,U)),this.valueChange.emit(U),this._onChange(U),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(P=>{P.source.selected?this._selectionModel.select(P.source):this._selectionModel.deselect(P.source),this.multiple||this.chips.forEach(U=>{!this._selectionModel.isSelected(U)&&U.selected&&U.deselect()}),P.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(P=>{let U=this.chips.toArray().indexOf(P.chip);this._isValidIndex(U)&&this._keyManager.updateActiveItem(U),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(P=>{const U=P.chip,me=this.chips.toArray().indexOf(P.chip);this._isValidIndex(me)&&U._hasFocus&&(this._lastDestroyedChipIndex=me)})}_originatesFromChip(P){let U=P.target;for(;U&&U!==this._elementRef.nativeElement;){if(U.classList.contains("mat-chip"))return!0;U=U.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(P=>P._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(P=>{P._chipListDisabled=this._disabled,P._chipListMultiple=this.multiple,P.chipListSelectable=this._selectable})}}return _.\u0275fac=function(P){return new(P||_)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(T.Is,8),e.Y36(w.F,8),e.Y36(w.sg,8),e.Y36(f.rD),e.Y36(w.a5,10))},_.\u0275cmp=e.Xpm({type:_,selectors:[["mat-chip-list"]],contentQueries:function(P,U,me){if(1&P&&e.Suo(me,pe,5),2&P){let nt;e.iGM(nt=e.CRH())&&(U.chips=nt)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(P,U){1&P&&e.NdJ("focus",function(){return U.focus()})("blur",function(){return U._blur()})("keydown",function(nt){return U._keydown(nt)}),2&P&&(e.Ikx("id",U._uid),e.uIk("tabindex",U.disabled?null:U._tabIndex)("aria-required",U.role?U.required:null)("aria-disabled",U.disabled.toString())("aria-invalid",U.errorState)("aria-multiselectable",U.multiple)("role",U.role)("aria-orientation",U.ariaOrientation),e.ekj("mat-chip-list-disabled",U.disabled)("mat-chip-list-invalid",U.errorState)("mat-chip-list-required",U.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[e._Bn([{provide:G.Eo,useExisting:_}]),e.qOj],ngContentSelectors:K,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(P,U){1&P&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),_})(),n=(()=>{class _{}return _.\u0275fac=function(P){return new(P||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({providers:[f.rD,{provide:i,useValue:{separatorKeyCodes:[t.K5]}}],imports:[f.BQ]}),_})()},3238:(ke,J,p)=>{"use strict";p.d(J,{yN:()=>Q,mZ:()=>re,_A:()=>k,rD:()=>Pe,sG:()=>b,K7:()=>Wt,HF:()=>X,Y2:()=>we,BQ:()=>ae,X2:()=>Oe,uc:()=>ve,XK:()=>me,ey:()=>Pt,Ng:()=>Ct,rN:()=>hi,nP:()=>Ce,us:()=>Se,wG:()=>Y,si:()=>j,LF:()=>W,IR:()=>he,CB:()=>pt,jH:()=>vt,pj:()=>S,Kr:()=>i,Id:()=>pe,FD:()=>u,dB:()=>l,sb:()=>r,E0:()=>De});var t=p(4650),e=p(4761),f=p(445),a=p(6895),M=p(3353),d=p(1281),R=p(9751),h=p(7579),I=p(8675),E=p(9521);function N(At,dt){if(1&At&&t._UZ(0,"mat-pseudo-checkbox",4),2&At){const ze=t.oxw();t.Q6J("state",ze.selected?"checked":"unchecked")("disabled",ze.disabled)}}function w(At,dt){if(1&At&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&At){const ze=t.oxw();t.xp6(1),t.hij("(",ze.group.label,")")}}const G=["*"];let Q=(()=>{class At{}return At.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",At.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",At.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",At.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",At})(),re=(()=>{class At{}return At.COMPLEX="375ms",At.ENTERING="225ms",At.EXITING="195ms",At})();const ce=new t.OlP("mat-sanity-checks",{providedIn:"root",factory:function ie(){return!0}});let ae=(()=>{class At{constructor(ze,Ve,Fe){this._sanityChecks=Ve,this._document=Fe,this._hasDoneGlobalChecks=!1,ze._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ze){return!(0,M.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ze])}}return At.\u0275fac=function(ze){return new(ze||At)(t.LFG(e.qm),t.LFG(ce,8),t.LFG(a.K0))},At.\u0275mod=t.oAB({type:At}),At.\u0275inj=t.cJS({imports:[f.vT,f.vT]}),At})();function pe(At){return class extends At{constructor(...dt){super(...dt),this._disabled=!1}get disabled(){return this._disabled}set disabled(dt){this._disabled=(0,d.Ig)(dt)}}}function S(At,dt){return class extends At{constructor(...ze){super(...ze),this.defaultColor=dt,this.color=dt}get color(){return this._color}set color(ze){const Ve=ze||this.defaultColor;Ve!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Ve&&this._elementRef.nativeElement.classList.add(`mat-${Ve}`),this._color=Ve)}}}function i(At){return class extends At{constructor(...dt){super(...dt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(dt){this._disableRipple=(0,d.Ig)(dt)}}}function r(At,dt=0){return class extends At{constructor(...ze){super(...ze),this._tabIndex=dt,this.defaultTabIndex=dt}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ze){this._tabIndex=null!=ze?(0,d.su)(ze):this.defaultTabIndex}}}function u(At){return class extends At{constructor(...dt){super(...dt),this.errorState=!1}updateErrorState(){const dt=this.errorState,be=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);be!==dt&&(this.errorState=be,this.stateChanges.next())}}}function l(At){return class extends At{constructor(...dt){super(...dt),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new R.y(ze=>{this._isInitialized?this._notifySubscriber(ze):this._pendingSubscribers.push(ze)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(dt){dt.next(),dt.complete()}}}const y=new t.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function D(){return(0,t.f3M)(t.soG)}});class k{constructor(){this._localeChanges=new h.x,this.localeChanges=this._localeChanges}getValidDateOrNull(dt){return this.isDateInstance(dt)&&this.isValid(dt)?dt:null}deserialize(dt){return null==dt||this.isDateInstance(dt)&&this.isValid(dt)?dt:this.invalid()}setLocale(dt){this.locale=dt,this._localeChanges.next()}compareDate(dt,ze){return this.getYear(dt)-this.getYear(ze)||this.getMonth(dt)-this.getMonth(ze)||this.getDate(dt)-this.getDate(ze)}sameDate(dt,ze){if(dt&&ze){let Ve=this.isValid(dt),Fe=this.isValid(ze);return Ve&&Fe?!this.compareDate(dt,ze):Ve==Fe}return dt==ze}clampDate(dt,ze,Ve){return ze&&this.compareDate(dt,ze)<0?ze:Ve&&this.compareDate(dt,Ve)>0?Ve:dt}}const b=new t.OlP("mat-date-formats"),n=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function _(At,dt){const ze=Array(At);for(let Ve=0;Ve<At;Ve++)ze[Ve]=dt(Ve);return ze}let W=(()=>{class At extends k{constructor(ze,Ve){super(),this.useUtcForDisplay=!1,super.setLocale(ze)}getYear(ze){return ze.getFullYear()}getMonth(ze){return ze.getMonth()}getDate(ze){return ze.getDate()}getDayOfWeek(ze){return ze.getDay()}getMonthNames(ze){const Ve=new Intl.DateTimeFormat(this.locale,{month:ze,timeZone:"utc"});return _(12,Fe=>this._format(Ve,new Date(2017,Fe,1)))}getDateNames(){const ze=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return _(31,Ve=>this._format(ze,new Date(2017,0,Ve+1)))}getDayOfWeekNames(ze){const Ve=new Intl.DateTimeFormat(this.locale,{weekday:ze,timeZone:"utc"});return _(7,Fe=>this._format(Ve,new Date(2017,0,Fe+1)))}getYearName(ze){const Ve=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Ve,ze)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(ze){return this.getDate(this._createDateWithOverflow(this.getYear(ze),this.getMonth(ze)+1,0))}clone(ze){return new Date(ze.getTime())}createDate(ze,Ve,Fe){let be=this._createDateWithOverflow(ze,Ve,Fe);return be.getMonth(),be}today(){return new Date}parse(ze,Ve){return"number"==typeof ze?new Date(ze):ze?new Date(Date.parse(ze)):null}format(ze,Ve){if(!this.isValid(ze))throw Error("NativeDateAdapter: Cannot format invalid date.");const Fe=new Intl.DateTimeFormat(this.locale,{...Ve,timeZone:"utc"});return this._format(Fe,ze)}addCalendarYears(ze,Ve){return this.addCalendarMonths(ze,12*Ve)}addCalendarMonths(ze,Ve){let Fe=this._createDateWithOverflow(this.getYear(ze),this.getMonth(ze)+Ve,this.getDate(ze));return this.getMonth(Fe)!=((this.getMonth(ze)+Ve)%12+12)%12&&(Fe=this._createDateWithOverflow(this.getYear(Fe),this.getMonth(Fe),0)),Fe}addCalendarDays(ze,Ve){return this._createDateWithOverflow(this.getYear(ze),this.getMonth(ze),this.getDate(ze)+Ve)}toIso8601(ze){return[ze.getUTCFullYear(),this._2digit(ze.getUTCMonth()+1),this._2digit(ze.getUTCDate())].join("-")}deserialize(ze){if("string"==typeof ze){if(!ze)return null;if(n.test(ze)){let Ve=new Date(ze);if(this.isValid(Ve))return Ve}}return super.deserialize(ze)}isDateInstance(ze){return ze instanceof Date}isValid(ze){return!isNaN(ze.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(ze,Ve,Fe){const be=new Date;return be.setFullYear(ze,Ve,Fe),be.setHours(0,0,0,0),be}_2digit(ze){return("00"+ze).slice(-2)}_format(ze,Ve){const Fe=new Date;return Fe.setUTCFullYear(Ve.getFullYear(),Ve.getMonth(),Ve.getDate()),Fe.setUTCHours(Ve.getHours(),Ve.getMinutes(),Ve.getSeconds(),Ve.getMilliseconds()),ze.format(Fe)}}return At.\u0275fac=function(ze){return new(ze||At)(t.LFG(y,8),t.LFG(M.t4))},At.\u0275prov=t.Yz7({token:At,factory:At.\u0275fac}),At})();const P={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let U=(()=>{class At{}return At.\u0275fac=function(ze){return new(ze||At)},At.\u0275mod=t.oAB({type:At}),At.\u0275inj=t.cJS({providers:[{provide:k,useClass:W}]}),At})(),me=(()=>{class At{}return At.\u0275fac=function(ze){return new(ze||At)},At.\u0275mod=t.oAB({type:At}),At.\u0275inj=t.cJS({providers:[{provide:b,useValue:P}],imports:[U]}),At})(),Pe=(()=>{class At{isErrorState(ze,Ve){return!!(ze&&ze.invalid&&(ze.touched||Ve&&Ve.submitted))}}return At.\u0275fac=function(ze){return new(ze||At)},At.\u0275prov=t.Yz7({token:At,factory:At.\u0275fac,providedIn:"root"}),At})(),Oe=(()=>{class At{}return At.\u0275fac=function(ze){return new(ze||At)},At.\u0275dir=t.lG2({type:At,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),At})();function De(At,dt,ze="mat"){At.changes.pipe((0,I.O)(At)).subscribe(({length:Ve})=>{ue(dt,`${ze}-2-line`,!1),ue(dt,`${ze}-3-line`,!1),ue(dt,`${ze}-multi-line`,!1),2===Ve||3===Ve?ue(dt,`${ze}-${Ve}-line`,!0):Ve>3&&ue(dt,`${ze}-multi-line`,!0)})}function ue(At,dt,ze){At.nativeElement.classList.toggle(dt,ze)}let ve=(()=>{class At{}return At.\u0275fac=function(ze){return new(ze||At)},At.\u0275mod=t.oAB({type:At}),At.\u0275inj=t.cJS({imports:[ae,ae]}),At})();class Ie{constructor(dt,ze,Ve,Fe=!1){this._renderer=dt,this.element=ze,this.config=Ve,this._animationForciblyDisabledThroughCss=Fe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const $={enterDuration:225,exitDuration:150},ut=(0,M.i$)({passive:!0}),Ee=["mousedown","touchstart"],ye=["mouseup","mouseleave","touchend","touchcancel"];class he{constructor(dt,ze,Ve,Fe){this._target=dt,this._ngZone=ze,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Fe.isBrowser&&(this._containerElement=(0,d.fI)(Ve))}fadeInRipple(dt,ze,Ve={}){const Fe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),be={...$,...Ve.animation};Ve.centered&&(dt=Fe.left+Fe.width/2,ze=Fe.top+Fe.height/2);const xt=Ve.radius||function de(At,dt,ze){const Ve=Math.max(Math.abs(At-ze.left),Math.abs(At-ze.right)),Fe=Math.max(Math.abs(dt-ze.top),Math.abs(dt-ze.bottom));return Math.sqrt(Ve*Ve+Fe*Fe)}(dt,ze,Fe),ct=dt-Fe.left,Nt=ze-Fe.top,et=be.enterDuration,Ae=document.createElement("div");Ae.classList.add("mat-ripple-element"),Ae.style.left=ct-xt+"px",Ae.style.top=Nt-xt+"px",Ae.style.height=2*xt+"px",Ae.style.width=2*xt+"px",null!=Ve.color&&(Ae.style.backgroundColor=Ve.color),Ae.style.transitionDuration=`${et}ms`,this._containerElement.appendChild(Ae);const rt=window.getComputedStyle(Ae),Ke=rt.transitionDuration,mt="none"===rt.transitionProperty||"0s"===Ke||"0s, 0s"===Ke,$t=new Ie(this,Ae,Ve,mt);Ae.style.transform="scale3d(1, 1, 1)",$t.state=0,Ve.persistent||(this._mostRecentTransientRipple=$t);let Gt=null;return!mt&&(et||be.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const zt=()=>this._finishRippleTransition($t),Et=()=>this._destroyRipple($t);Ae.addEventListener("transitionend",zt),Ae.addEventListener("transitioncancel",Et),Gt={onTransitionEnd:zt,onTransitionCancel:Et}}),this._activeRipples.set($t,Gt),(mt||!et)&&this._finishRippleTransition($t),$t}fadeOutRipple(dt){if(2===dt.state||3===dt.state)return;const ze=dt.element,Ve={...$,...dt.config.animation};ze.style.transitionDuration=`${Ve.exitDuration}ms`,ze.style.opacity="0",dt.state=2,(dt._animationForciblyDisabledThroughCss||!Ve.exitDuration)&&this._finishRippleTransition(dt)}fadeOutAll(){this._getActiveRipples().forEach(dt=>dt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(dt=>{dt.config.persistent||dt.fadeOut()})}setupTriggerEvents(dt){const ze=(0,d.fI)(dt);!ze||ze===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ze,this._registerEvents(Ee))}handleEvent(dt){"mousedown"===dt.type?this._onMousedown(dt):"touchstart"===dt.type?this._onTouchStart(dt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ye),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(dt){0===dt.state?this._startFadeOutTransition(dt):2===dt.state&&this._destroyRipple(dt)}_startFadeOutTransition(dt){const ze=dt===this._mostRecentTransientRipple,{persistent:Ve}=dt.config;dt.state=1,!Ve&&(!ze||!this._isPointerDown)&&dt.fadeOut()}_destroyRipple(dt){const ze=this._activeRipples.get(dt)??null;this._activeRipples.delete(dt),this._activeRipples.size||(this._containerRect=null),dt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),dt.state=3,null!==ze&&(dt.element.removeEventListener("transitionend",ze.onTransitionEnd),dt.element.removeEventListener("transitioncancel",ze.onTransitionCancel)),dt.element.remove()}_onMousedown(dt){const ze=(0,e.X6)(dt),Ve=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!ze&&!Ve&&(this._isPointerDown=!0,this.fadeInRipple(dt.clientX,dt.clientY,this._target.rippleConfig))}_onTouchStart(dt){if(!this._target.rippleDisabled&&!(0,e.yG)(dt)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const ze=dt.changedTouches;for(let Ve=0;Ve<ze.length;Ve++)this.fadeInRipple(ze[Ve].clientX,ze[Ve].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(dt=>{!dt.config.persistent&&(1===dt.state||dt.config.terminateOnPointerUp&&0===dt.state)&&dt.fadeOut()}))}_registerEvents(dt){this._ngZone.runOutsideAngular(()=>{dt.forEach(ze=>{this._triggerElement.addEventListener(ze,this,ut)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Ee.forEach(dt=>{this._triggerElement.removeEventListener(dt,this,ut)}),this._pointerUpEventsRegistered&&ye.forEach(dt=>{this._triggerElement.removeEventListener(dt,this,ut)}))}}const we=new t.OlP("mat-ripple-global-options");let Y=(()=>{class At{constructor(ze,Ve,Fe,be,xt){this._elementRef=ze,this._animationMode=xt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=be||{},this._rippleRenderer=new he(this,Ve,ze,Fe)}get disabled(){return this._disabled}set disabled(ze){ze&&this.fadeOutAllNonPersistent(),this._disabled=ze,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ze){this._trigger=ze,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(ze,Ve=0,Fe){return"number"==typeof ze?this._rippleRenderer.fadeInRipple(ze,Ve,{...this.rippleConfig,...Fe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...ze})}}return At.\u0275fac=function(ze){return new(ze||At)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(M.t4),t.Y36(we,8),t.Y36(t.QbO,8))},At.\u0275dir=t.lG2({type:At,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ze,Ve){2&ze&&t.ekj("mat-ripple-unbounded",Ve.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),At})(),j=(()=>{class At{}return At.\u0275fac=function(ze){return new(ze||At)},At.\u0275mod=t.oAB({type:At}),At.\u0275inj=t.cJS({imports:[ae,ae]}),At})(),Ce=(()=>{class At{constructor(ze){this._animationMode=ze,this.state="unchecked",this.disabled=!1}}return At.\u0275fac=function(ze){return new(ze||At)(t.Y36(t.QbO,8))},At.\u0275cmp=t.Xpm({type:At,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(ze,Ve){2&ze&&t.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Ve.state)("mat-pseudo-checkbox-checked","checked"===Ve.state)("mat-pseudo-checkbox-disabled",Ve.disabled)("_mat-animation-noopable","NoopAnimations"===Ve._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(ze,Ve){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.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{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),At})(),Se=(()=>{class At{}return At.\u0275fac=function(ze){return new(ze||At)},At.\u0275mod=t.oAB({type:At}),At.\u0275inj=t.cJS({imports:[ae]}),At})();const X=new t.OlP("MAT_OPTION_PARENT_COMPONENT"),Wt=new t.OlP("MatOptgroup");let jt=0;class hi{constructor(dt,ze=!1){this.source=dt,this.isUserInput=ze}}let yt=(()=>{class At{constructor(ze,Ve,Fe,be){this._element=ze,this._changeDetectorRef=Ve,this._parent=Fe,this.group=be,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+jt++,this.onSelectionChange=new t.vpe,this._stateChanges=new h.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(ze){this._disabled=(0,d.Ig)(ze)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(ze,Ve){const Fe=this._getHostElement();"function"==typeof Fe.focus&&Fe.focus(Ve)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ze){(ze.keyCode===E.K5||ze.keyCode===E.L_)&&!(0,E.Vb)(ze)&&(this._selectViaInteraction(),ze.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const ze=this.viewValue;ze!==this._mostRecentViewValue&&(this._mostRecentViewValue=ze,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ze=!1){this.onSelectionChange.emit(new hi(this,ze))}}return At.\u0275fac=function(ze){t.$Z()},At.\u0275dir=t.lG2({type:At,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),At})(),Pt=(()=>{class At extends yt{constructor(ze,Ve,Fe,be){super(ze,Ve,Fe,be)}}return At.\u0275fac=function(ze){return new(ze||At)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(X,8),t.Y36(Wt,8))},At.\u0275cmp=t.Xpm({type:At,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(ze,Ve){1&ze&&t.NdJ("click",function(){return Ve._selectViaInteraction()})("keydown",function(be){return Ve._handleKeydown(be)}),2&ze&&(t.Ikx("id",Ve.id),t.uIk("tabindex",Ve._getTabIndex())("aria-selected",Ve._getAriaSelected())("aria-disabled",Ve.disabled.toString()),t.ekj("mat-selected",Ve.selected)("mat-option-multiple",Ve.multiple)("mat-active",Ve.active)("mat-option-disabled",Ve.disabled))},exportAs:["matOption"],features:[t.qOj],ngContentSelectors:G,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(ze,Ve){1&ze&&(t.F$t(),t.YNc(0,N,1,2,"mat-pseudo-checkbox",0),t.TgZ(1,"span",1),t.Hsn(2),t.qZA(),t.YNc(3,w,2,1,"span",2),t._UZ(4,"div",3)),2&ze&&(t.Q6J("ngIf",Ve.multiple),t.xp6(3),t.Q6J("ngIf",Ve.group&&Ve.group._inert),t.xp6(1),t.Q6J("matRippleTrigger",Ve._getHostElement())("matRippleDisabled",Ve.disabled||Ve.disableRipple))},dependencies:[Y,a.O5,Ce],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),At})();function pt(At,dt,ze){if(ze.length){let Ve=dt.toArray(),Fe=ze.toArray(),be=0;for(let xt=0;xt<At+1;xt++)Ve[xt].group&&Ve[xt].group===Fe[be]&&be++;return be}return 0}function vt(At,dt,ze,Ve){return At<ze?At:At+dt>ze+Ve?Math.max(0,At-Ve+dt):ze}let Ct=(()=>{class At{}return At.\u0275fac=function(ze){return new(ze||At)},At.\u0275mod=t.oAB({type:At}),At.\u0275inj=t.cJS({imports:[j,a.ez,ae,Se]}),At})()},9602:(ke,J,p)=>{"use strict";p.d(J,{FA:()=>_e,Mq:()=>Ae,hl:()=>Gt,nW:()=>Et});var t=p(4761),e=p(8184),f=p(4080),C=p(6895),a=p(4650),M=p(4859),d=p(531),R=p(3238),h=p(7579),I=p(727),E=p(6451),L=p(9646),T=p(9521),N=p(445),w=p(5698),G=p(8675),K=p(9300),Q=p(1281),re=p(3353),ie=p(7340),ce=p(4006),ae=p(9549),ne=p(4144);const le=["mat-calendar-body",""];function ee(Je,_t){if(1&Je&&(a.TgZ(0,"tr",2)(1,"td",3),a._uU(2),a.qZA()()),2&Je){const se=a.oxw();a.xp6(1),a.Udp("padding-top",se._cellPadding)("padding-bottom",se._cellPadding),a.uIk("colspan",se.numCols),a.xp6(1),a.hij(" ",se.label," ")}}function pe(Je,_t){if(1&Je&&(a.TgZ(0,"td",3),a._uU(1),a.qZA()),2&Je){const se=a.oxw(2);a.Udp("padding-top",se._cellPadding)("padding-bottom",se._cellPadding),a.uIk("colspan",se._firstRowOffset),a.xp6(1),a.hij(" ",se._firstRowOffset>=se.labelMinRequiredCells?se.label:""," ")}}function S(Je,_t){if(1&Je){const se=a.EpF();a.TgZ(0,"td",7)(1,"button",8),a.NdJ("click",function(bt){const mi=a.CHM(se).$implicit,Hi=a.oxw(2);return a.KtG(Hi._cellClicked(mi,bt))})("focus",function(bt){const mi=a.CHM(se).$implicit,Hi=a.oxw(2);return a.KtG(Hi._emitActiveDateChange(mi,bt))}),a.TgZ(2,"div",9),a._uU(3),a.qZA(),a._UZ(4,"div",10),a.qZA()()}if(2&Je){const se=_t.$implicit,Xe=_t.index,bt=a.oxw().index,Vt=a.oxw();a.Udp("width",Vt._cellWidth)("padding-top",Vt._cellPadding)("padding-bottom",Vt._cellPadding),a.uIk("data-mat-row",bt)("data-mat-col",Xe),a.xp6(1),a.ekj("mat-calendar-body-disabled",!se.enabled)("mat-calendar-body-active",Vt._isActiveCell(bt,Xe))("mat-calendar-body-range-start",Vt._isRangeStart(se.compareValue))("mat-calendar-body-range-end",Vt._isRangeEnd(se.compareValue))("mat-calendar-body-in-range",Vt._isInRange(se.compareValue))("mat-calendar-body-comparison-bridge-start",Vt._isComparisonBridgeStart(se.compareValue,bt,Xe))("mat-calendar-body-comparison-bridge-end",Vt._isComparisonBridgeEnd(se.compareValue,bt,Xe))("mat-calendar-body-comparison-start",Vt._isComparisonStart(se.compareValue))("mat-calendar-body-comparison-end",Vt._isComparisonEnd(se.compareValue))("mat-calendar-body-in-comparison-range",Vt._isInComparisonRange(se.compareValue))("mat-calendar-body-preview-start",Vt._isPreviewStart(se.compareValue))("mat-calendar-body-preview-end",Vt._isPreviewEnd(se.compareValue))("mat-calendar-body-in-preview",Vt._isInPreview(se.compareValue)),a.Q6J("ngClass",se.cssClasses)("tabindex",Vt._isActiveCell(bt,Xe)?0:-1),a.uIk("aria-label",se.ariaLabel)("aria-disabled",!se.enabled||null)("aria-pressed",Vt._isSelected(se.compareValue))("aria-current",Vt.todayValue===se.compareValue?"date":null),a.xp6(1),a.ekj("mat-calendar-body-selected",Vt._isSelected(se.compareValue))("mat-calendar-body-comparison-identical",Vt._isComparisonIdentical(se.compareValue))("mat-calendar-body-today",Vt.todayValue===se.compareValue),a.xp6(1),a.hij(" ",se.displayValue," ")}}function i(Je,_t){if(1&Je&&(a.TgZ(0,"tr",4),a.YNc(1,pe,2,6,"td",5),a.YNc(2,S,5,47,"td",6),a.qZA()),2&Je){const se=_t.$implicit,Xe=_t.index,bt=a.oxw();a.xp6(1),a.Q6J("ngIf",0===Xe&&bt._firstRowOffset),a.xp6(1),a.Q6J("ngForOf",se)}}function r(Je,_t){if(1&Je&&(a.TgZ(0,"th",5)(1,"span",6),a._uU(2),a.qZA(),a.TgZ(3,"span",7),a._uU(4),a.qZA()()),2&Je){const se=_t.$implicit;a.xp6(2),a.Oqu(se.long),a.xp6(2),a.Oqu(se.narrow)}}const u=["*"];function l(Je,_t){}function y(Je,_t){if(1&Je){const se=a.EpF();a.TgZ(0,"mat-month-view",5),a.NdJ("activeDateChange",function(bt){a.CHM(se);const Vt=a.oxw();return a.KtG(Vt.activeDate=bt)})("_userSelection",function(bt){a.CHM(se);const Vt=a.oxw();return a.KtG(Vt._dateSelected(bt))}),a.qZA()}if(2&Je){const se=a.oxw();a.Q6J("activeDate",se.activeDate)("selected",se.selected)("dateFilter",se.dateFilter)("maxDate",se.maxDate)("minDate",se.minDate)("dateClass",se.dateClass)("comparisonStart",se.comparisonStart)("comparisonEnd",se.comparisonEnd)}}function D(Je,_t){if(1&Je){const se=a.EpF();a.TgZ(0,"mat-year-view",6),a.NdJ("activeDateChange",function(bt){a.CHM(se);const Vt=a.oxw();return a.KtG(Vt.activeDate=bt)})("monthSelected",function(bt){a.CHM(se);const Vt=a.oxw();return a.KtG(Vt._monthSelectedInYearView(bt))})("selectedChange",function(bt){a.CHM(se);const Vt=a.oxw();return a.KtG(Vt._goToDateInView(bt,"month"))}),a.qZA()}if(2&Je){const se=a.oxw();a.Q6J("activeDate",se.activeDate)("selected",se.selected)("dateFilter",se.dateFilter)("maxDate",se.maxDate)("minDate",se.minDate)("dateClass",se.dateClass)}}function k(Je,_t){if(1&Je){const se=a.EpF();a.TgZ(0,"mat-multi-year-view",7),a.NdJ("activeDateChange",function(bt){a.CHM(se);const Vt=a.oxw();return a.KtG(Vt.activeDate=bt)})("yearSelected",function(bt){a.CHM(se);const Vt=a.oxw();return a.KtG(Vt._yearSelectedInMultiYearView(bt))})("selectedChange",function(bt){a.CHM(se);const Vt=a.oxw();return a.KtG(Vt._goToDateInView(bt,"year"))}),a.qZA()}if(2&Je){const se=a.oxw();a.Q6J("activeDate",se.activeDate)("selected",se.selected)("dateFilter",se.dateFilter)("maxDate",se.maxDate)("minDate",se.minDate)("dateClass",se.dateClass)}}function b(Je,_t){}const n=["button"];function _(Je,_t){1&Je&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"path",4),a.qZA())}const W=[[["","matDatepickerToggleIcon",""]]],P=["[matDatepickerToggleIcon]"];let Oe=(()=>{class Je{constructor(){this.changes=new h.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(se,Xe){return`${se} \u2013 ${Xe}`}formatYearRangeLabel(se,Xe){return`${se} to ${Xe}`}}return Je.\u0275fac=function(se){return new(se||Je)},Je.\u0275prov=a.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})();class De{constructor(_t,se,Xe,bt,Vt={},mi=_t,Hi){this.value=_t,this.displayValue=se,this.ariaLabel=Xe,this.enabled=bt,this.cssClasses=Vt,this.compareValue=mi,this.rawValue=Hi}}let ue=(()=>{class Je{constructor(se,Xe){this._elementRef=se,this._ngZone=Xe,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new a.vpe,this.previewChange=new a.vpe,this.activeDateChange=new a.vpe,this._enterHandler=bt=>{if(this._skipNextFocus&&"focus"===bt.type)this._skipNextFocus=!1;else if(bt.target&&this.isRange){const Vt=this._getCellFromElement(bt.target);Vt&&this._ngZone.run(()=>this.previewChange.emit({value:Vt.enabled?Vt:null,event:bt}))}},this._leaveHandler=bt=>{null!==this.previewEnd&&this.isRange&&bt.target&&this._getCellFromElement(bt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:bt}))},Xe.runOutsideAngular(()=>{const bt=se.nativeElement;bt.addEventListener("mouseenter",this._enterHandler,!0),bt.addEventListener("focus",this._enterHandler,!0),bt.addEventListener("mouseleave",this._leaveHandler,!0),bt.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(se,Xe){se.enabled&&this.selectedValueChange.emit({value:se.value,event:Xe})}_emitActiveDateChange(se,Xe){se.enabled&&this.activeDateChange.emit({value:se.value,event:Xe})}_isSelected(se){return this.startValue===se||this.endValue===se}ngOnChanges(se){const Xe=se.numCols,{rows:bt,numCols:Vt}=this;(se.rows||Xe)&&(this._firstRowOffset=bt&&bt.length&&bt[0].length?Vt-bt[0].length:0),(se.cellAspectRatio||Xe||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Vt+"%"),(Xe||!this._cellWidth)&&(this._cellWidth=100/Vt+"%")}ngOnDestroy(){const se=this._elementRef.nativeElement;se.removeEventListener("mouseenter",this._enterHandler,!0),se.removeEventListener("focus",this._enterHandler,!0),se.removeEventListener("mouseleave",this._leaveHandler,!0),se.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(se,Xe){let bt=se*this.numCols+Xe;return se&&(bt-=this._firstRowOffset),bt==this.activeCell}_focusActiveCell(se=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(()=>{setTimeout(()=>{const Xe=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Xe&&(se||(this._skipNextFocus=!0),Xe.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(se){return Ie(se,this.startValue,this.endValue)}_isRangeEnd(se){return $(se,this.startValue,this.endValue)}_isInRange(se){return Ge(se,this.startValue,this.endValue,this.isRange)}_isComparisonStart(se){return Ie(se,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(se,Xe,bt){if(!this._isComparisonStart(se)||this._isRangeStart(se)||!this._isInRange(se))return!1;let Vt=this.rows[Xe][bt-1];if(!Vt){const mi=this.rows[Xe-1];Vt=mi&&mi[mi.length-1]}return Vt&&!this._isRangeEnd(Vt.compareValue)}_isComparisonBridgeEnd(se,Xe,bt){if(!this._isComparisonEnd(se)||this._isRangeEnd(se)||!this._isInRange(se))return!1;let Vt=this.rows[Xe][bt+1];if(!Vt){const mi=this.rows[Xe+1];Vt=mi&&mi[0]}return Vt&&!this._isRangeStart(Vt.compareValue)}_isComparisonEnd(se){return $(se,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(se){return Ge(se,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(se){return this.comparisonStart===this.comparisonEnd&&se===this.comparisonStart}_isPreviewStart(se){return Ie(se,this.previewStart,this.previewEnd)}_isPreviewEnd(se){return $(se,this.previewStart,this.previewEnd)}_isInPreview(se){return Ge(se,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(se){let Xe;if(ve(se)?Xe=se:ve(se.parentNode)&&(Xe=se.parentNode),Xe){const bt=Xe.getAttribute("data-mat-row"),Vt=Xe.getAttribute("data-mat-col");if(bt&&Vt)return this.rows[parseInt(bt)][parseInt(Vt)]}return null}}return Je.\u0275fac=function(se){return new(se||Je)(a.Y36(a.SBq),a.Y36(a.R0b))},Je.\u0275cmp=a.Xpm({type:Je,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[a.TTD],attrs:le,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(se,Xe){1&se&&(a.YNc(0,ee,3,6,"tr",0),a.YNc(1,i,3,2,"tr",1)),2&se&&(a.Q6J("ngIf",Xe._firstRowOffset<Xe.labelMinRequiredCells),a.xp6(1),a.Q6J("ngForOf",Xe.rows))},dependencies:[C.mk,C.sg,C.O5],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-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}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0}),Je})();function ve(Je){return"TD"===Je.nodeName}function Ie(Je,_t,se){return null!==se&&_t!==se&&Je<se&&Je===_t}function $(Je,_t,se){return null!==_t&&_t!==se&&Je>=_t&&Je===se}function Ge(Je,_t,se,Xe){return Xe&&null!==_t&&null!==se&&_t!==se&&Je>=_t&&Je<=se}class ut{constructor(_t,se){this.start=_t,this.end=se}}let Ee=(()=>{class Je{constructor(se,Xe){this.selection=se,this._adapter=Xe,this._selectionChanged=new h.x,this.selectionChanged=this._selectionChanged,this.selection=se}updateSelection(se,Xe){const bt=this.selection;this.selection=se,this._selectionChanged.next({selection:se,source:Xe,oldValue:bt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(se){return this._adapter.isDateInstance(se)&&this._adapter.isValid(se)}}return Je.\u0275fac=function(se){a.$Z()},Je.\u0275prov=a.Yz7({token:Je,factory:Je.\u0275fac}),Je})(),ye=(()=>{class Je extends Ee{constructor(se){super(null,se)}add(se){super.updateSelection(se,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const se=new Je(this._adapter);return se.updateSelection(this.selection,this),se}}return Je.\u0275fac=function(se){return new(se||Je)(a.LFG(R._A))},Je.\u0275prov=a.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const we={provide:Ee,deps:[[new a.FiY,new a.tp0,Ee],R._A],useFactory:function de(Je,_t){return Je||new ye(_t)}},Ce=new a.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let gt=(()=>{class Je{constructor(se,Xe,bt,Vt,mi){this._changeDetectorRef=se,this._dateFormats=Xe,this._dateAdapter=bt,this._dir=Vt,this._rangeStrategy=mi,this._rerenderSubscription=I.w0.EMPTY,this.selectedChange=new a.vpe,this._userSelection=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(se){const Xe=this._activeDate,bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),this._hasSameMonthAndYear(Xe,this._activeDate)||this._init()}get selected(){return this._selected}set selected(se){this._selected=se instanceof ut?se:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(se){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get maxDate(){return this._maxDate}set maxDate(se){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,G.O)(null)).subscribe(()=>this._init())}ngOnChanges(se){const Xe=se.comparisonStart||se.comparisonEnd;Xe&&!Xe.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(se){const Xe=se.value,bt=this._getDateFromDayOfMonth(Xe);let Vt,mi;this._selected instanceof ut?(Vt=this._getDateInCurrentMonth(this._selected.start),mi=this._getDateInCurrentMonth(this._selected.end)):Vt=mi=this._getDateInCurrentMonth(this._selected),(Vt!==Xe||mi!==Xe)&&this.selectedChange.emit(bt),this._userSelection.emit({value:bt,event:se.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(se){const bt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(se.value),this._dateAdapter.compareDate(bt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(se){const Xe=this._activeDate,bt=this._isRtl();switch(se.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,bt?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,bt?-1:1);break;case T.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case T.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case T.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case T.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case T.Ku:this.activeDate=se.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case T.VM:this.activeDate=se.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case T.K5:case T.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&se.preventDefault());case T.hY:return void(null!=this._previewEnd&&!(0,T.Vb)(se)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:se}),se.preventDefault(),se.stopPropagation()));default:return}this._dateAdapter.compareDate(Xe,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),se.preventDefault()}_handleCalendarBodyKeyup(se){(se.keyCode===T.L_||se.keyCode===T.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:se}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let se=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(se)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(se){this._matCalendarBody._focusActiveCell(se)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:se,value:Xe}){if(this._rangeStrategy){const Vt=this._rangeStrategy.createPreview(Xe?Xe.rawValue:null,this.selected,se);this._previewStart=this._getCellCompareValue(Vt.start),this._previewEnd=this._getCellCompareValue(Vt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(se){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),se)}_initWeekdays(){const se=this._dateAdapter.getFirstDayOfWeek(),Xe=this._dateAdapter.getDayOfWeekNames("narrow");let Vt=this._dateAdapter.getDayOfWeekNames("long").map((mi,Hi)=>({long:mi,narrow:Xe[Hi]}));this._weekdays=Vt.slice(se).concat(Vt.slice(0,se))}_createWeekCells(){const se=this._dateAdapter.getNumDaysInMonth(this.activeDate),Xe=this._dateAdapter.getDateNames();this._weeks=[[]];for(let bt=0,Vt=this._firstWeekOffset;bt<se;bt++,Vt++){7==Vt&&(this._weeks.push([]),Vt=0);const mi=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),bt+1),Hi=this._shouldEnableDate(mi),Ui=this._dateAdapter.format(mi,this._dateFormats.display.dateA11yLabel),Ji=this.dateClass?this.dateClass(mi,"month"):void 0;this._weeks[this._weeks.length-1].push(new De(bt+1,Xe[bt],Ui,Hi,Ji,this._getCellCompareValue(mi),mi))}}_shouldEnableDate(se){return!!se&&(!this.minDate||this._dateAdapter.compareDate(se,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(se,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(se))}_getDateInCurrentMonth(se){return se&&this._hasSameMonthAndYear(se,this.activeDate)?this._dateAdapter.getDate(se):null}_hasSameMonthAndYear(se,Xe){return!(!se||!Xe||this._dateAdapter.getMonth(se)!=this._dateAdapter.getMonth(Xe)||this._dateAdapter.getYear(se)!=this._dateAdapter.getYear(Xe))}_getCellCompareValue(se){if(se){const Xe=this._dateAdapter.getYear(se),bt=this._dateAdapter.getMonth(se),Vt=this._dateAdapter.getDate(se);return new Date(Xe,bt,Vt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(se){se instanceof ut?(this._rangeStart=this._getCellCompareValue(se.start),this._rangeEnd=this._getCellCompareValue(se.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(se),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(se){return!this.dateFilter||this.dateFilter(se)}}return Je.\u0275fac=function(se){return new(se||Je)(a.Y36(a.sBO),a.Y36(R.sG,8),a.Y36(R._A,8),a.Y36(N.Is,8),a.Y36(Ce,8))},Je.\u0275cmp=a.Xpm({type:Je,selectors:[["mat-month-view"]],viewQuery:function(se,Xe){if(1&se&&a.Gf(ue,5),2&se){let bt;a.iGM(bt=a.CRH())&&(Xe._matCalendarBody=bt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[a.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(se,Xe){1&se&&(a.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),a.YNc(3,r,5,2,"th",2),a.qZA(),a.TgZ(4,"tr"),a._UZ(5,"th",3),a.qZA()(),a.TgZ(6,"tbody",4),a.NdJ("selectedValueChange",function(Vt){return Xe._dateSelected(Vt)})("activeDateChange",function(Vt){return Xe._updateActiveDate(Vt)})("previewChange",function(Vt){return Xe._previewChanged(Vt)})("keyup",function(Vt){return Xe._handleCalendarBodyKeyup(Vt)})("keydown",function(Vt){return Xe._handleCalendarBodyKeydown(Vt)}),a.qZA()()),2&se&&(a.xp6(3),a.Q6J("ngForOf",Xe._weekdays),a.xp6(3),a.Q6J("label",Xe._monthLabel)("rows",Xe._weeks)("todayValue",Xe._todayDate)("startValue",Xe._rangeStart)("endValue",Xe._rangeEnd)("comparisonStart",Xe._comparisonRangeStart)("comparisonEnd",Xe._comparisonRangeEnd)("previewStart",Xe._previewStart)("previewEnd",Xe._previewEnd)("isRange",Xe._isRange)("labelMinRequiredCells",3)("activeCell",Xe._dateAdapter.getDate(Xe.activeDate)-1))},dependencies:[C.sg,ue],encapsulation:2,changeDetection:0}),Je})(),jt=(()=>{class Je{constructor(se,Xe,bt){this._changeDetectorRef=se,this._dateAdapter=Xe,this._dir=bt,this._rerenderSubscription=I.w0.EMPTY,this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(se){let Xe=this._activeDate;const bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),hi(this._dateAdapter,Xe,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(se){this._selected=se instanceof ut?se:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se)),this._setSelectedYear(se)}get minDate(){return this._minDate}set minDate(se){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get maxDate(){return this._maxDate}set maxDate(se){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,G.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Xe=this._dateAdapter.getYear(this._activeDate)-yt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let bt=0,Vt=[];bt<24;bt++)Vt.push(Xe+bt),4==Vt.length&&(this._years.push(Vt.map(mi=>this._createCellForYear(mi))),Vt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(se){const Xe=se.value,bt=this._dateAdapter.createDate(Xe,0,1),Vt=this._getDateFromYear(Xe);this.yearSelected.emit(bt),this.selectedChange.emit(Vt)}_updateActiveDate(se){const bt=this._activeDate;this.activeDate=this._getDateFromYear(se.value),this._dateAdapter.compareDate(bt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(se){const Xe=this._activeDate,bt=this._isRtl();switch(se.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,bt?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,bt?-1:1);break;case T.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case T.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case T.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-yt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case T.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-yt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case T.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,se.altKey?-240:-24);break;case T.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,se.altKey?240:24);break;case T.K5:case T.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Xe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),se.preventDefault()}_handleCalendarBodyKeyup(se){(se.keyCode===T.L_||se.keyCode===T.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:se}),this._selectionKeyPressed=!1)}_getActiveCell(){return yt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(se){const Xe=this._dateAdapter.getMonth(this.activeDate),bt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(se,Xe,1));return this._dateAdapter.createDate(se,Xe,Math.min(this._dateAdapter.getDate(this.activeDate),bt))}_createCellForYear(se){const Xe=this._dateAdapter.createDate(se,0,1),bt=this._dateAdapter.getYearName(Xe),Vt=this.dateClass?this.dateClass(Xe,"multi-year"):void 0;return new De(se,bt,bt,this._shouldEnableYear(se),Vt)}_shouldEnableYear(se){if(null==se||this.maxDate&&se>this._dateAdapter.getYear(this.maxDate)||this.minDate&&se<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let bt=this._dateAdapter.createDate(se,0,1);this._dateAdapter.getYear(bt)==se;bt=this._dateAdapter.addCalendarDays(bt,1))if(this.dateFilter(bt))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(se){if(this._selectedYear=null,se instanceof ut){const Xe=se.start||se.end;Xe&&(this._selectedYear=this._dateAdapter.getYear(Xe))}else se&&(this._selectedYear=this._dateAdapter.getYear(se))}}return Je.\u0275fac=function(se){return new(se||Je)(a.Y36(a.sBO),a.Y36(R._A,8),a.Y36(N.Is,8))},Je.\u0275cmp=a.Xpm({type:Je,selectors:[["mat-multi-year-view"]],viewQuery:function(se,Xe){if(1&se&&a.Gf(ue,5),2&se){let bt;a.iGM(bt=a.CRH())&&(Xe._matCalendarBody=bt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(se,Xe){1&se&&(a.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),a._UZ(3,"th",2),a.qZA()(),a.TgZ(4,"tbody",3),a.NdJ("selectedValueChange",function(Vt){return Xe._yearSelected(Vt)})("activeDateChange",function(Vt){return Xe._updateActiveDate(Vt)})("keyup",function(Vt){return Xe._handleCalendarBodyKeyup(Vt)})("keydown",function(Vt){return Xe._handleCalendarBodyKeydown(Vt)}),a.qZA()()),2&se&&(a.xp6(4),a.Q6J("rows",Xe._years)("todayValue",Xe._todayYear)("startValue",Xe._selectedYear)("endValue",Xe._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",Xe._getActiveCell()))},dependencies:[ue],encapsulation:2,changeDetection:0}),Je})();function hi(Je,_t,se,Xe,bt){const Vt=Je.getYear(_t),mi=Je.getYear(se),Hi=Pt(Je,Xe,bt);return Math.floor((Vt-Hi)/24)===Math.floor((mi-Hi)/24)}function yt(Je,_t,se,Xe){return function pt(Je,_t){return(Je%_t+_t)%_t}(Je.getYear(_t)-Pt(Je,se,Xe),24)}function Pt(Je,_t,se){let Xe=0;return se?Xe=Je.getYear(se)-24+1:_t&&(Xe=Je.getYear(_t)),Xe}let vt=(()=>{class Je{constructor(se,Xe,bt,Vt){this._changeDetectorRef=se,this._dateFormats=Xe,this._dateAdapter=bt,this._dir=Vt,this._rerenderSubscription=I.w0.EMPTY,this.selectedChange=new a.vpe,this.monthSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(se){let Xe=this._activeDate;const bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),this._dateAdapter.getYear(Xe)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(se){this._selected=se instanceof ut?se:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se)),this._setSelectedMonth(se)}get minDate(){return this._minDate}set minDate(se){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get maxDate(){return this._maxDate}set maxDate(se){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,G.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(se){const Xe=se.value,bt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Xe,1);this.monthSelected.emit(bt);const Vt=this._getDateFromMonth(Xe);this.selectedChange.emit(Vt)}_updateActiveDate(se){const bt=this._activeDate;this.activeDate=this._getDateFromMonth(se.value),this._dateAdapter.compareDate(bt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(se){const Xe=this._activeDate,bt=this._isRtl();switch(se.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,bt?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,bt?-1:1);break;case T.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case T.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case T.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case T.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case T.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,se.altKey?-10:-1);break;case T.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,se.altKey?10:1);break;case T.K5:case T.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Xe,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),se.preventDefault()}_handleCalendarBodyKeyup(se){(se.keyCode===T.L_||se.keyCode===T.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:se}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let se=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Xe=>Xe.map(bt=>this._createCellForMonth(bt,se[bt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(se){return se&&this._dateAdapter.getYear(se)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(se):null}_getDateFromMonth(se){const Xe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),se,1),bt=this._dateAdapter.getNumDaysInMonth(Xe);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),se,Math.min(this._dateAdapter.getDate(this.activeDate),bt))}_createCellForMonth(se,Xe){const bt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),se,1),Vt=this._dateAdapter.format(bt,this._dateFormats.display.monthYearA11yLabel),mi=this.dateClass?this.dateClass(bt,"year"):void 0;return new De(se,Xe.toLocaleUpperCase(),Vt,this._shouldEnableMonth(se),mi)}_shouldEnableMonth(se){const Xe=this._dateAdapter.getYear(this.activeDate);if(null==se||this._isYearAndMonthAfterMaxDate(Xe,se)||this._isYearAndMonthBeforeMinDate(Xe,se))return!1;if(!this.dateFilter)return!0;for(let Vt=this._dateAdapter.createDate(Xe,se,1);this._dateAdapter.getMonth(Vt)==se;Vt=this._dateAdapter.addCalendarDays(Vt,1))if(this.dateFilter(Vt))return!0;return!1}_isYearAndMonthAfterMaxDate(se,Xe){if(this.maxDate){const bt=this._dateAdapter.getYear(this.maxDate),Vt=this._dateAdapter.getMonth(this.maxDate);return se>bt||se===bt&&Xe>Vt}return!1}_isYearAndMonthBeforeMinDate(se,Xe){if(this.minDate){const bt=this._dateAdapter.getYear(this.minDate),Vt=this._dateAdapter.getMonth(this.minDate);return se<bt||se===bt&&Xe<Vt}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(se){this._selectedMonth=se instanceof ut?this._getMonthInCurrentYear(se.start)||this._getMonthInCurrentYear(se.end):this._getMonthInCurrentYear(se)}}return Je.\u0275fac=function(se){return new(se||Je)(a.Y36(a.sBO),a.Y36(R.sG,8),a.Y36(R._A,8),a.Y36(N.Is,8))},Je.\u0275cmp=a.Xpm({type:Je,selectors:[["mat-year-view"]],viewQuery:function(se,Xe){if(1&se&&a.Gf(ue,5),2&se){let bt;a.iGM(bt=a.CRH())&&(Xe._matCalendarBody=bt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(se,Xe){1&se&&(a.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),a._UZ(3,"th",2),a.qZA()(),a.TgZ(4,"tbody",3),a.NdJ("selectedValueChange",function(Vt){return Xe._monthSelected(Vt)})("activeDateChange",function(Vt){return Xe._updateActiveDate(Vt)})("keyup",function(Vt){return Xe._handleCalendarBodyKeyup(Vt)})("keydown",function(Vt){return Xe._handleCalendarBodyKeydown(Vt)}),a.qZA()()),2&se&&(a.xp6(4),a.Q6J("label",Xe._yearLabel)("rows",Xe._months)("todayValue",Xe._todayMonth)("startValue",Xe._selectedMonth)("endValue",Xe._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",Xe._dateAdapter.getMonth(Xe.activeDate)))},dependencies:[ue],encapsulation:2,changeDetection:0}),Je})(),Ct=0,At=(()=>{class Je{constructor(se,Xe,bt,Vt,mi){this._intl=se,this.calendar=Xe,this._dateAdapter=bt,this._dateFormats=Vt,this._buttonDescriptionId="mat-calendar-button-"+Ct++,this.calendar.stateChanges.subscribe(()=>mi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Xe=this._dateAdapter.getYear(this.calendar.activeDate)-yt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),bt=Xe+24-1,Vt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Xe,0,1)),mi=this._dateAdapter.getYearName(this._dateAdapter.createDate(bt,0,1));return this._intl.formatYearRange(Vt,mi)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(se,Xe){return"month"==this.calendar.currentView?this._dateAdapter.getYear(se)==this._dateAdapter.getYear(Xe)&&this._dateAdapter.getMonth(se)==this._dateAdapter.getMonth(Xe):"year"==this.calendar.currentView?this._dateAdapter.getYear(se)==this._dateAdapter.getYear(Xe):hi(this._dateAdapter,se,Xe,this.calendar.minDate,this.calendar.maxDate)}}return Je.\u0275fac=function(se){return new(se||Je)(a.Y36(Oe),a.Y36((0,a.Gpc)(()=>dt)),a.Y36(R._A,8),a.Y36(R.sG,8),a.Y36(a.sBO))},Je.\u0275cmp=a.Xpm({type:Je,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:u,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(se,Xe){1&se&&(a.F$t(),a.TgZ(0,"div",0)(1,"div",1)(2,"button",2),a.NdJ("click",function(){return Xe.currentPeriodClicked()}),a.TgZ(3,"span"),a._uU(4),a.qZA(),a.O4$(),a.TgZ(5,"svg",3),a._UZ(6,"polygon",4),a.qZA()(),a.kcU(),a._UZ(7,"div",5),a.Hsn(8),a.TgZ(9,"button",6),a.NdJ("click",function(){return Xe.previousClicked()}),a.qZA(),a.TgZ(10,"button",7),a.NdJ("click",function(){return Xe.nextClicked()}),a.qZA()()()),2&se&&(a.xp6(2),a.uIk("aria-label",Xe.periodButtonLabel)("aria-describedby",Xe._buttonDescriptionId),a.xp6(1),a.uIk("id",Xe._buttonDescriptionId),a.xp6(1),a.Oqu(Xe.periodButtonText),a.xp6(1),a.ekj("mat-calendar-invert","month"!==Xe.calendar.currentView),a.xp6(4),a.Q6J("disabled",!Xe.previousEnabled()),a.uIk("aria-label",Xe.prevButtonLabel),a.xp6(1),a.Q6J("disabled",!Xe.nextEnabled()),a.uIk("aria-label",Xe.nextButtonLabel))},dependencies:[M.lW],encapsulation:2,changeDetection:0}),Je})(),dt=(()=>{class Je{constructor(se,Xe,bt,Vt){this._dateAdapter=Xe,this._dateFormats=bt,this._changeDetectorRef=Vt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this._userSelection=new a.vpe,this.stateChanges=new h.x,this._intlChanges=se.changes.subscribe(()=>{Vt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(se){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get selected(){return this._selected}set selected(se){this._selected=se instanceof ut?se:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get minDate(){return this._minDate}set minDate(se){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get maxDate(){return this._maxDate}set maxDate(se){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get activeDate(){return this._clampedActiveDate}set activeDate(se){this._clampedActiveDate=this._dateAdapter.clampDate(se,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(se){const Xe=this._currentView!==se?se:null;this._currentView=se,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Xe&&this.viewChanged.emit(Xe)}ngAfterContentInit(){this._calendarHeaderPortal=new f.C5(this.headerComponent||At),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(se){const Xe=se.minDate&&!this._dateAdapter.sameDate(se.minDate.previousValue,se.minDate.currentValue)?se.minDate:void 0,bt=se.maxDate&&!this._dateAdapter.sameDate(se.maxDate.previousValue,se.maxDate.currentValue)?se.maxDate:void 0,Vt=Xe||bt||se.dateFilter;if(Vt&&!Vt.firstChange){const mi=this._getCurrentViewComponent();mi&&(this._changeDetectorRef.detectChanges(),mi._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(se){const Xe=se.value;(this.selected instanceof ut||Xe&&!this._dateAdapter.sameDate(Xe,this.selected))&&this.selectedChange.emit(Xe),this._userSelection.emit(se)}_yearSelectedInMultiYearView(se){this.yearSelected.emit(se)}_monthSelectedInYearView(se){this.monthSelected.emit(se)}_goToDateInView(se,Xe){this.activeDate=se,this.currentView=Xe}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Je.\u0275fac=function(se){return new(se||Je)(a.Y36(Oe),a.Y36(R._A,8),a.Y36(R.sG,8),a.Y36(a.sBO))},Je.\u0275cmp=a.Xpm({type:Je,selectors:[["mat-calendar"]],viewQuery:function(se,Xe){if(1&se&&(a.Gf(gt,5),a.Gf(vt,5),a.Gf(jt,5)),2&se){let bt;a.iGM(bt=a.CRH())&&(Xe.monthView=bt.first),a.iGM(bt=a.CRH())&&(Xe.yearView=bt.first),a.iGM(bt=a.CRH())&&(Xe.multiYearView=bt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a._Bn([we]),a.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(se,Xe){1&se&&(a.YNc(0,l,0,0,"ng-template",0),a.TgZ(1,"div",1),a.YNc(2,y,1,8,"mat-month-view",2),a.YNc(3,D,1,6,"mat-year-view",3),a.YNc(4,k,1,6,"mat-multi-year-view",4),a.qZA()),2&se&&(a.Q6J("cdkPortalOutlet",Xe._calendarHeaderPortal),a.xp6(1),a.Q6J("ngSwitch",Xe.currentView),a.xp6(1),a.Q6J("ngSwitchCase","month"),a.xp6(1),a.Q6J("ngSwitchCase","year"),a.xp6(1),a.Q6J("ngSwitchCase","multi-year"))},dependencies:[C.RF,C.n9,t.kH,f.Pl,gt,vt,jt],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.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:""}'],encapsulation:2,changeDetection:0}),Je})();const ze={transformPanel:(0,ie.X$)("transformPanel",[(0,ie.eR)("void => enter-dropdown",(0,ie.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ie.F4)([(0,ie.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ie.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ie.eR)("void => enter-dialog",(0,ie.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ie.F4)([(0,ie.oB)({opacity:0,transform:"scale(0.7)"}),(0,ie.oB)({transform:"none",opacity:1})]))),(0,ie.eR)("* => void",(0,ie.jt)("100ms linear",(0,ie.oB)({opacity:0})))]),fadeInCalendar:(0,ie.X$)("fadeInCalendar",[(0,ie.SB)("void",(0,ie.oB)({opacity:0})),(0,ie.SB)("enter",(0,ie.oB)({opacity:1})),(0,ie.eR)("void => *",(0,ie.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ve=0;const Fe=new a.OlP("mat-datepicker-scroll-strategy"),xt={provide:Fe,deps:[e.aV],useFactory:function be(Je){return()=>Je.scrollStrategies.reposition()}},ct=(0,R.pj)(class{constructor(Je){this._elementRef=Je}});let Nt=(()=>{class Je extends ct{constructor(se,Xe,bt,Vt,mi,Hi){super(se),this._changeDetectorRef=Xe,this._globalModel=bt,this._dateAdapter=Vt,this._rangeSelectionStrategy=mi,this._subscriptions=new I.w0,this._animationDone=new h.x,this._actionsPortal=null,this._closeButtonText=Hi.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(se){const Xe=this._model.selection,bt=se.value,Vt=Xe instanceof ut;if(Vt&&this._rangeSelectionStrategy){const mi=this._rangeSelectionStrategy.selectionFinished(bt,Xe,se.event);this._model.updateSelection(mi,this)}else bt&&(Vt||!this._dateAdapter.sameDate(bt,Xe))&&this._model.add(bt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(se,Xe){this._model=se?this._globalModel.clone():this._globalModel,this._actionsPortal=se,Xe&&this._changeDetectorRef.detectChanges()}}return Je.\u0275fac=function(se){return new(se||Je)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Ee),a.Y36(R._A),a.Y36(Ce,8),a.Y36(Oe))},Je.\u0275cmp=a.Xpm({type:Je,selectors:[["mat-datepicker-content"]],viewQuery:function(se,Xe){if(1&se&&a.Gf(dt,5),2&se){let bt;a.iGM(bt=a.CRH())&&(Xe._calendar=bt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(se,Xe){1&se&&a.WFA("@transformPanel.done",function(){return Xe._animationDone.next()}),2&se&&(a.d8E("@transformPanel",Xe._animationState),a.ekj("mat-datepicker-content-touch",Xe.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(se,Xe){if(1&se&&(a.TgZ(0,"div",0)(1,"mat-calendar",1),a.NdJ("yearSelected",function(Vt){return Xe.datepicker._selectYear(Vt)})("monthSelected",function(Vt){return Xe.datepicker._selectMonth(Vt)})("viewChanged",function(Vt){return Xe.datepicker._viewChanged(Vt)})("_userSelection",function(Vt){return Xe._handleUserSelection(Vt)}),a.qZA(),a.YNc(2,b,0,0,"ng-template",2),a.TgZ(3,"button",3),a.NdJ("focus",function(){return Xe._closeButtonFocused=!0})("blur",function(){return Xe._closeButtonFocused=!1})("click",function(){return Xe.datepicker.close()}),a._uU(4),a.qZA()()),2&se){let bt;a.ekj("mat-datepicker-content-container-with-custom-header",Xe.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Xe._actionsPortal),a.uIk("aria-modal",!0)("aria-labelledby",null!==(bt=Xe._dialogLabelId)&&void 0!==bt?bt:void 0),a.xp6(1),a.Q6J("id",Xe.datepicker.id)("ngClass",Xe.datepicker.panelClass)("startAt",Xe.datepicker.startAt)("startView",Xe.datepicker.startView)("minDate",Xe.datepicker._getMinDate())("maxDate",Xe.datepicker._getMaxDate())("dateFilter",Xe.datepicker._getDateFilter())("headerComponent",Xe.datepicker.calendarHeaderComponent)("selected",Xe._getSelected())("dateClass",Xe.datepicker.dateClass)("comparisonStart",Xe.comparisonStart)("comparisonEnd",Xe.comparisonEnd)("@fadeInCalendar","enter"),a.xp6(1),a.Q6J("cdkPortalOutlet",Xe._actionsPortal),a.xp6(1),a.ekj("cdk-visually-hidden",!Xe._closeButtonFocused),a.Q6J("color",Xe.color||"primary"),a.xp6(1),a.Oqu(Xe._closeButtonText)}},dependencies:[C.mk,M.lW,t.mK,f.Pl,dt],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[ze.transformPanel,ze.fadeInCalendar]},changeDetection:0}),Je})(),et=(()=>{class Je{constructor(se,Xe,bt,Vt,mi,Hi,Ui){this._overlay=se,this._ngZone=Xe,this._viewContainerRef=bt,this._dateAdapter=mi,this._dir=Hi,this._model=Ui,this._inputStateChanges=I.w0.EMPTY,this._document=(0,a.f3M)(C.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this.openedStream=new a.vpe,this.closedStream=new a.vpe,this._opened=!1,this.id="mat-datepicker-"+Ve++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new h.x,this._scrollStrategy=Vt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(se){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(se){this._color=se}get touchUi(){return this._touchUi}set touchUi(se){this._touchUi=(0,Q.Ig)(se)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(se){const Xe=(0,Q.Ig)(se);Xe!==this._disabled&&(this._disabled=Xe,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(se){this._restoreFocus=(0,Q.Ig)(se)}get panelClass(){return this._panelClass}set panelClass(se){this._panelClass=(0,Q.du)(se)}get opened(){return this._opened}set opened(se){(0,Q.Ig)(se)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(se){const Xe=se.xPosition||se.yPosition;if(Xe&&!Xe.firstChange&&this._overlayRef){const bt=this._overlayRef.getConfig().positionStrategy;bt instanceof e._G&&(this._setConnectedPositions(bt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(se){this._model.add(se)}_selectYear(se){this.yearSelected.emit(se)}_selectMonth(se){this.monthSelected.emit(se)}_viewChanged(se){this.viewChanged.emit(se)}registerInput(se){return this._inputStateChanges.unsubscribe(),this.datepickerInput=se,this._inputStateChanges=se.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(se){this._actionsPortal=se,this._componentRef?.instance._assignActions(se,!0)}removeActions(se){se===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,re.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;const se=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Xe=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:bt,location:Vt}=this._componentRef;bt._startExitAnimation(),bt._animationDone.pipe((0,w.q)(1)).subscribe(()=>{const mi=this._document.activeElement;se&&(!mi||mi===this._document.activeElement||Vt.nativeElement.contains(mi))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}se?setTimeout(Xe):Xe()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(se){se.datepicker=this,se.color=this.color,se._dialogLabelId=this.datepickerInput.getOverlayLabelId(),se._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const se=this.touchUi,Xe=new f.C5(Nt,this._viewContainerRef),bt=this._overlayRef=this._overlay.create(new e.X_({positionStrategy:se?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[se?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:se?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(se?"dialog":"popup")}));this._getCloseStream(bt).subscribe(Vt=>{Vt&&Vt.preventDefault(),this.close()}),bt.keydownEvents().subscribe(Vt=>{const mi=Vt.keyCode;(mi===T.LH||mi===T.JH||mi===T.oh||mi===T.SV||mi===T.Ku||mi===T.VM)&&Vt.preventDefault()}),this._componentRef=bt.attach(Xe),this._forwardContentValues(this._componentRef.instance),se||this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(()=>bt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const se=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(se)}_setConnectedPositions(se){const Xe="end"===this.xPosition?"end":"start",bt="start"===Xe?"end":"start",Vt="above"===this.yPosition?"bottom":"top",mi="top"===Vt?"bottom":"top";return se.withPositions([{originX:Xe,originY:mi,overlayX:Xe,overlayY:Vt},{originX:Xe,originY:Vt,overlayX:Xe,overlayY:mi},{originX:bt,originY:mi,overlayX:bt,overlayY:Vt},{originX:bt,originY:Vt,overlayX:bt,overlayY:mi}])}_getCloseStream(se){return(0,E.T)(se.backdropClick(),se.detachments(),se.keydownEvents().pipe((0,K.h)(Xe=>Xe.keyCode===T.hY&&!(0,T.Vb)(Xe)||this.datepickerInput&&(0,T.Vb)(Xe,"altKey")&&Xe.keyCode===T.LH)))}}return Je.\u0275fac=function(se){return new(se||Je)(a.Y36(e.aV),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(Fe),a.Y36(R._A,8),a.Y36(N.Is,8),a.Y36(Ee))},Je.\u0275dir=a.lG2({type:Je,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[a.TTD]}),Je})(),Ae=(()=>{class Je extends et{}return Je.\u0275fac=function(){let _t;return function(Xe){return(_t||(_t=a.n5z(Je)))(Xe||Je)}}(),Je.\u0275cmp=a.Xpm({type:Je,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a._Bn([we,{provide:et,useExisting:Je}]),a.qOj],decls:0,vars:0,template:function(se,Xe){},encapsulation:2,changeDetection:0}),Je})();class rt{constructor(_t,se){this.target=_t,this.targetElement=se,this.value=this.target.value}}let Qe=(()=>{class Je{constructor(se,Xe,bt){this._elementRef=se,this._dateAdapter=Xe,this._dateFormats=bt,this.dateChange=new a.vpe,this.dateInput=new a.vpe,this.stateChanges=new h.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=I.w0.EMPTY,this._localeSubscription=I.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Vt=>{const mi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value));return!mi||this._matchesFilter(mi)?null:{matDatepickerFilter:!0}},this._minValidator=Vt=>{const mi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value)),Hi=this._getMinDate();return!Hi||!mi||this._dateAdapter.compareDate(Hi,mi)<=0?null:{matDatepickerMin:{min:Hi,actual:mi}}},this._maxValidator=Vt=>{const mi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value)),Hi=this._getMaxDate();return!Hi||!mi||this._dateAdapter.compareDate(Hi,mi)>=0?null:{matDatepickerMax:{max:Hi,actual:mi}}},this._lastValueValid=!1,this._localeSubscription=Xe.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(se){this._assignValueProgrammatically(se)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(se){const Xe=(0,Q.Ig)(se),bt=this._elementRef.nativeElement;this._disabled!==Xe&&(this._disabled=Xe,this.stateChanges.next(void 0)),Xe&&this._isInitialized&&bt.blur&&bt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(se){this._model=se,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Xe=>{if(this._shouldHandleChangeEvent(Xe)){const bt=this._getValueFromModel(Xe.selection);this._lastValueValid=this._isValidValue(bt),this._cvaOnChange(bt),this._onTouched(),this._formatValue(bt),this.dateInput.emit(new rt(this,this._elementRef.nativeElement)),this.dateChange.emit(new rt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(se){(function Ke(Je,_t){const se=Object.keys(Je);for(let Xe of se){const{previousValue:bt,currentValue:Vt}=Je[Xe];if(!_t.isDateInstance(bt)||!_t.isDateInstance(Vt))return!0;if(!_t.sameDate(bt,Vt))return!0}return!1})(se,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(se){this._validatorOnChange=se}validate(se){return this._validator?this._validator(se):null}writeValue(se){this._assignValueProgrammatically(se)}registerOnChange(se){this._cvaOnChange=se}registerOnTouched(se){this._onTouched=se}setDisabledState(se){this.disabled=se}_onKeydown(se){se.altKey&&se.keyCode===T.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),se.preventDefault())}_onInput(se){const Xe=this._lastValueValid;let bt=this._dateAdapter.parse(se,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(bt),bt=this._dateAdapter.getValidDateOrNull(bt);const Vt=!this._dateAdapter.sameDate(bt,this.value);!bt||Vt?this._cvaOnChange(bt):(se&&!this.value&&this._cvaOnChange(bt),Xe!==this._lastValueValid&&this._validatorOnChange()),Vt&&(this._assignValue(bt),this.dateInput.emit(new rt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new rt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(se){this._elementRef.nativeElement.value=null!=se?this._dateAdapter.format(se,this._dateFormats.display.dateInput):""}_assignValue(se){this._model?(this._assignValueToModel(se),this._pendingValue=null):this._pendingValue=se}_isValidValue(se){return!se||this._dateAdapter.isValid(se)}_parentDisabled(){return!1}_assignValueProgrammatically(se){se=this._dateAdapter.deserialize(se),this._lastValueValid=this._isValidValue(se),se=this._dateAdapter.getValidDateOrNull(se),this._assignValue(se),this._formatValue(se)}_matchesFilter(se){const Xe=this._getDateFilter();return!Xe||Xe(se)}}return Je.\u0275fac=function(se){return new(se||Je)(a.Y36(a.SBq),a.Y36(R._A,8),a.Y36(R.sG,8))},Je.\u0275dir=a.lG2({type:Je,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.TTD]}),Je})();const mt={provide:ce.JU,useExisting:(0,a.Gpc)(()=>Gt),multi:!0},$t={provide:ce.Cf,useExisting:(0,a.Gpc)(()=>Gt),multi:!0};let Gt=(()=>{class Je extends Qe{constructor(se,Xe,bt,Vt){super(se,Xe,bt),this._formField=Vt,this._closedSubscription=I.w0.EMPTY,this._validator=ce.kI.compose(super._getValidators())}set matDatepicker(se){se&&(this._datepicker=se,this._closedSubscription=se.closedStream.subscribe(()=>this._onTouched()),this._registerModel(se.registerInput(this)))}get min(){return this._min}set min(se){const Xe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se));this._dateAdapter.sameDate(Xe,this._min)||(this._min=Xe,this._validatorOnChange())}get max(){return this._max}set max(se){const Xe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se));this._dateAdapter.sameDate(Xe,this._max)||(this._max=Xe,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(se){const Xe=this._matchesFilter(this.value);this._dateFilter=se,this._matchesFilter(this.value)!==Xe&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(se){return se}_assignValueToModel(se){this._model&&this._model.updateSelection(se,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(se){return se.source!==this}}return Je.\u0275fac=function(se){return new(se||Je)(a.Y36(a.SBq),a.Y36(R._A,8),a.Y36(R.sG,8),a.Y36(ae.G_,8))},Je.\u0275dir=a.lG2({type:Je,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(se,Xe){1&se&&a.NdJ("input",function(Vt){return Xe._onInput(Vt.target.value)})("change",function(){return Xe._onChange()})("blur",function(){return Xe._onBlur()})("keydown",function(Vt){return Xe._onKeydown(Vt)}),2&se&&(a.Ikx("disabled",Xe.disabled),a.uIk("aria-haspopup",Xe._datepicker?"dialog":null)("aria-owns",(null==Xe._datepicker?null:Xe._datepicker.opened)&&Xe._datepicker.id||null)("min",Xe.min?Xe._dateAdapter.toIso8601(Xe.min):null)("max",Xe.max?Xe._dateAdapter.toIso8601(Xe.max):null)("data-mat-calendar",Xe._datepicker?Xe._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a._Bn([mt,$t,{provide:ne.Jk,useExisting:Je}]),a.qOj]}),Je})(),zt=(()=>{class Je{}return Je.\u0275fac=function(se){return new(se||Je)},Je.\u0275dir=a.lG2({type:Je,selectors:[["","matDatepickerToggleIcon",""]]}),Je})(),Et=(()=>{class Je{constructor(se,Xe,bt){this._intl=se,this._changeDetectorRef=Xe,this._stateChanges=I.w0.EMPTY;const Vt=Number(bt);this.tabIndex=Vt||0===Vt?Vt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(se){this._disabled=(0,Q.Ig)(se)}ngOnChanges(se){se.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(se){this.datepicker&&!this.disabled&&(this.datepicker.open(),se.stopPropagation())}_watchStateChanges(){const se=this.datepicker?this.datepicker.stateChanges:(0,L.of)(),Xe=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,L.of)(),bt=this.datepicker?(0,E.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,L.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,E.T)(this._intl.changes,se,Xe,bt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Je.\u0275fac=function(se){return new(se||Je)(a.Y36(Oe),a.Y36(a.sBO),a.$8M("tabindex"))},Je.\u0275cmp=a.Xpm({type:Je,selectors:[["mat-datepicker-toggle"]],contentQueries:function(se,Xe,bt){if(1&se&&a.Suo(bt,zt,5),2&se){let Vt;a.iGM(Vt=a.CRH())&&(Xe._customIcon=Vt.first)}},viewQuery:function(se,Xe){if(1&se&&a.Gf(n,5),2&se){let bt;a.iGM(bt=a.CRH())&&(Xe._button=bt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(se,Xe){1&se&&a.NdJ("click",function(Vt){return Xe._open(Vt)}),2&se&&(a.uIk("tabindex",null)("data-mat-calendar",Xe.datepicker?Xe.datepicker.id:null),a.ekj("mat-datepicker-toggle-active",Xe.datepicker&&Xe.datepicker.opened)("mat-accent",Xe.datepicker&&"accent"===Xe.datepicker.color)("mat-warn",Xe.datepicker&&"warn"===Xe.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.TTD],ngContentSelectors:P,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(se,Xe){1&se&&(a.F$t(W),a.TgZ(0,"button",0,1),a.YNc(2,_,2,0,"svg",2),a.Hsn(3),a.qZA()),2&se&&(a.Q6J("disabled",Xe.disabled)("disableRipple",Xe.disableRipple),a.uIk("aria-haspopup",Xe.datepicker?"dialog":null)("aria-label",Xe.ariaLabel||Xe._intl.openCalendarLabel)("tabindex",Xe.disabled?-1:Xe.tabIndex),a.xp6(2),a.Q6J("ngIf",!Xe._customIcon))},dependencies:[C.O5,M.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Je})(),_e=(()=>{class Je{}return Je.\u0275fac=function(se){return new(se||Je)},Je.\u0275mod=a.oAB({type:Je}),Je.\u0275inj=a.cJS({providers:[Oe,xt],imports:[C.ez,M.ot,e.U8,t.rt,f.eL,R.BQ,d.ZD]}),Je})()},5412:(ke,J,p)=>{"use strict";p.d(J,{WI:()=>U,Bq:()=>me,uw:()=>Ie,ZT:()=>Ge,Is:()=>de,so:()=>W});var t=p(4761),e=p(8184),f=p(3353),C=p(4080),a=p(6895),M=p(4650),d=p(9521),R=p(7579),h=p(9770),I=p(9646),E=p(445),L=p(8675);function T(we,Y){}class N{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let G=(()=>{class we extends C.en{constructor(j,Ce,Se,X,Ye,Le,gt,Wt){super(),this._elementRef=j,this._focusTrapFactory=Ce,this._config=X,this._interactivityChecker=Ye,this._ngZone=Le,this._overlayRef=gt,this._focusMonitor=Wt,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Rt=>{this._portalOutlet.hasAttached();const jt=this._portalOutlet.attachDomPortal(Rt);return this._contentAttached(),jt},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Se}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(j){this._portalOutlet.hasAttached();const Ce=this._portalOutlet.attachComponentPortal(j);return this._contentAttached(),Ce}attachTemplatePortal(j){this._portalOutlet.hasAttached();const Ce=this._portalOutlet.attachTemplatePortal(j);return this._contentAttached(),Ce}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(j,Ce){this._interactivityChecker.isFocusable(j)||(j.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Se=()=>{j.removeEventListener("blur",Se),j.removeEventListener("mousedown",Se),j.removeAttribute("tabindex")};j.addEventListener("blur",Se),j.addEventListener("mousedown",Se)})),j.focus(Ce)}_focusByCssSelector(j,Ce){let Se=this._elementRef.nativeElement.querySelector(j);Se&&this._forceFocus(Se,Ce)}_trapFocus(){const j=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||j.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ce=>{Ce||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const j=this._config.restoreFocus;let Ce=null;if("string"==typeof j?Ce=this._document.querySelector(j):"boolean"==typeof j?Ce=j?this._elementFocusedBeforeDialogWasOpened:null:j&&(Ce=j),this._config.restoreFocus&&Ce&&"function"==typeof Ce.focus){const Se=(0,f.ht)(),X=this._elementRef.nativeElement;(!Se||Se===this._document.body||Se===X||X.contains(Se))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ce,this._closeInteractionType),this._closeInteractionType=null):Ce.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const j=this._elementRef.nativeElement,Ce=(0,f.ht)();return j===Ce||j.contains(Ce)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,f.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return we.\u0275fac=function(j){return new(j||we)(M.Y36(M.SBq),M.Y36(t.qV),M.Y36(a.K0,8),M.Y36(N),M.Y36(t.ic),M.Y36(M.R0b),M.Y36(e.Iu),M.Y36(t.tE))},we.\u0275cmp=M.Xpm({type:we,selectors:[["cdk-dialog-container"]],viewQuery:function(j,Ce){if(1&j&&M.Gf(C.Pl,7),2&j){let Se;M.iGM(Se=M.CRH())&&(Ce._portalOutlet=Se.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(j,Ce){2&j&&M.uIk("id",Ce._config.id||null)("role",Ce._config.role)("aria-modal",Ce._config.ariaModal)("aria-labelledby",Ce._config.ariaLabel?null:Ce._ariaLabelledBy)("aria-label",Ce._config.ariaLabel)("aria-describedby",Ce._config.ariaDescribedBy||null)},features:[M.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(j,Ce){1&j&&M.YNc(0,T,0,0,"ng-template",0)},dependencies:[C.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),we})();class K{constructor(Y,j){this.overlayRef=Y,this.config=j,this.closed=new R.x,this.disableClose=j.disableClose,this.backdropClick=Y.backdropClick(),this.keydownEvents=Y.keydownEvents(),this.outsidePointerEvents=Y.outsidePointerEvents(),this.id=j.id,this.keydownEvents.subscribe(Ce=>{Ce.keyCode===d.hY&&!this.disableClose&&!(0,d.Vb)(Ce)&&(Ce.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(Y,j){if(this.containerInstance){const Ce=this.closed;this.containerInstance._closeInteractionType=j?.focusOrigin||"program",this.overlayRef.dispose(),Ce.next(Y),Ce.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Y="",j=""){return this.overlayRef.updateSize({width:Y,height:j}),this}addPanelClass(Y){return this.overlayRef.addPanelClass(Y),this}removePanelClass(Y){return this.overlayRef.removePanelClass(Y),this}}const Q=new M.OlP("DialogScrollStrategy"),re=new M.OlP("DialogData"),ie=new M.OlP("DefaultDialogConfig"),ae={provide:Q,deps:[e.aV],useFactory:function ce(we){return()=>we.scrollStrategies.block()}};let ne=0,le=(()=>{class we{constructor(j,Ce,Se,X,Ye,Le){this._overlay=j,this._injector=Ce,this._defaultOptions=Se,this._parentDialog=X,this._overlayContainer=Ye,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new R.x,this._afterOpenedAtThisLevel=new R.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,h.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=Le}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(j,Ce){(Ce={...this._defaultOptions||new N,...Ce}).id=Ce.id||"cdk-dialog-"+ne++,Ce.id&&this.getDialogById(Ce.id);const X=this._getOverlayConfig(Ce),Ye=this._overlay.create(X),Le=new K(Ye,Ce),gt=this._attachContainer(Ye,Le,Ce);return Le.containerInstance=gt,this._attachDialogContent(j,Le,gt,Ce),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Le),Le.closed.subscribe(()=>this._removeOpenDialog(Le,!0)),this.afterOpened.next(Le),Le}closeAll(){ee(this.openDialogs,j=>j.close())}getDialogById(j){return this.openDialogs.find(Ce=>Ce.id===j)}ngOnDestroy(){ee(this._openDialogsAtThisLevel,j=>{!1===j.config.closeOnDestroy&&this._removeOpenDialog(j,!1)}),ee(this._openDialogsAtThisLevel,j=>j.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(j){const Ce=new e.X_({positionStrategy:j.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:j.scrollStrategy||this._scrollStrategy(),panelClass:j.panelClass,hasBackdrop:j.hasBackdrop,direction:j.direction,minWidth:j.minWidth,minHeight:j.minHeight,maxWidth:j.maxWidth,maxHeight:j.maxHeight,width:j.width,height:j.height,disposeOnNavigation:j.closeOnNavigation});return j.backdropClass&&(Ce.backdropClass=j.backdropClass),Ce}_attachContainer(j,Ce,Se){const X=Se.injector||Se.viewContainerRef?.injector,Ye=[{provide:N,useValue:Se},{provide:K,useValue:Ce},{provide:e.Iu,useValue:j}];let Le;Se.container?"function"==typeof Se.container?Le=Se.container:(Le=Se.container.type,Ye.push(...Se.container.providers(Se))):Le=G;const gt=new C.C5(Le,Se.viewContainerRef,M.zs3.create({parent:X||this._injector,providers:Ye}),Se.componentFactoryResolver);return j.attach(gt).instance}_attachDialogContent(j,Ce,Se,X){if(j instanceof M.Rgc){const Ye=this._createInjector(X,Ce,Se,void 0);let Le={$implicit:X.data,dialogRef:Ce};X.templateContext&&(Le={...Le,..."function"==typeof X.templateContext?X.templateContext():X.templateContext}),Se.attachTemplatePortal(new C.UE(j,null,Le,Ye))}else{const Ye=this._createInjector(X,Ce,Se,this._injector),Le=Se.attachComponentPortal(new C.C5(j,X.viewContainerRef,Ye,X.componentFactoryResolver));Ce.componentInstance=Le.instance}}_createInjector(j,Ce,Se,X){const Ye=j.injector||j.viewContainerRef?.injector,Le=[{provide:re,useValue:j.data},{provide:K,useValue:Ce}];return j.providers&&("function"==typeof j.providers?Le.push(...j.providers(Ce,j,Se)):Le.push(...j.providers)),j.direction&&(!Ye||!Ye.get(E.Is,null,M.XFs.Optional))&&Le.push({provide:E.Is,useValue:{value:j.direction,change:(0,I.of)()}}),M.zs3.create({parent:Ye||X,providers:Le})}_removeOpenDialog(j,Ce){const Se=this.openDialogs.indexOf(j);Se>-1&&(this.openDialogs.splice(Se,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((X,Ye)=>{X?Ye.setAttribute("aria-hidden",X):Ye.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Ce&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const j=this._overlayContainer.getContainerElement();if(j.parentElement){const Ce=j.parentElement.children;for(let Se=Ce.length-1;Se>-1;Se--){const X=Ce[Se];X!==j&&"SCRIPT"!==X.nodeName&&"STYLE"!==X.nodeName&&!X.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(X,X.getAttribute("aria-hidden")),X.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const j=this._parentDialog;return j?j._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return we.\u0275fac=function(j){return new(j||we)(M.LFG(e.aV),M.LFG(M.zs3),M.LFG(ie,8),M.LFG(we,12),M.LFG(e.Xj),M.LFG(Q))},we.\u0275prov=M.Yz7({token:we,factory:we.\u0275fac}),we})();function ee(we,Y){let j=we.length;for(;j--;)Y(we[j])}let pe=(()=>{class we{}return we.\u0275fac=function(j){return new(j||we)},we.\u0275mod=M.oAB({type:we}),we.\u0275inj=M.cJS({providers:[le,ae],imports:[e.U8,C.eL,t.rt,C.eL]}),we})();var S=p(3238),i=p(6451),r=p(9300),u=p(5698),l=p(7340);function y(we,Y){}const D={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},k={dialogContainer:(0,l.X$)("dialogContainer",[(0,l.SB)("void, exit",(0,l.oB)({opacity:0,transform:"scale(0.7)"})),(0,l.SB)("enter",(0,l.oB)({transform:"none"})),(0,l.eR)("* => enter",(0,l.ru)([(0,l.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,l.oB)({transform:"none",opacity:1})),(0,l.IO)("@*",(0,l.pV)(),{optional:!0})]),D),(0,l.eR)("* => void, * => exit",(0,l.ru)([(0,l.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,l.oB)({opacity:0})),(0,l.IO)("@*",(0,l.pV)(),{optional:!0})]),D)])};class b{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=D.params.enterAnimationDuration,this.exitAnimationDuration=D.params.exitAnimationDuration}}let n=(()=>{class we extends G{constructor(j,Ce,Se,X,Ye,Le,gt,Wt){super(j,Ce,Se,X,Ye,Le,gt,Wt),this._animationStateChanged=new M.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(j){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:j})}}return we.\u0275fac=function(j){return new(j||we)(M.Y36(M.SBq),M.Y36(t.qV),M.Y36(a.K0,8),M.Y36(b),M.Y36(t.ic),M.Y36(M.R0b),M.Y36(e.Iu),M.Y36(t.tE))},we.\u0275cmp=M.Xpm({type:we,selectors:[["ng-component"]],features:[M.qOj],decls:0,vars:0,template:function(j,Ce){},encapsulation:2}),we})(),_=(()=>{class we extends n{constructor(j,Ce,Se,X,Ye,Le,gt,Wt,Rt){super(j,Ce,Se,X,Ye,Le,gt,Rt),this._changeDetectorRef=Wt,this._state="enter"}_onAnimationDone({toState:j,totalTime:Ce}){"enter"===j?this._openAnimationDone(Ce):"exit"===j&&this._animationStateChanged.next({state:"closed",totalTime:Ce})}_onAnimationStart({toState:j,totalTime:Ce}){"enter"===j?this._animationStateChanged.next({state:"opening",totalTime:Ce}):("exit"===j||"void"===j)&&this._animationStateChanged.next({state:"closing",totalTime:Ce})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||D.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||D.params.exitAnimationDuration}}}}return we.\u0275fac=function(j){return new(j||we)(M.Y36(M.SBq),M.Y36(t.qV),M.Y36(a.K0,8),M.Y36(b),M.Y36(t.ic),M.Y36(M.R0b),M.Y36(e.Iu),M.Y36(M.sBO),M.Y36(t.tE))},we.\u0275cmp=M.Xpm({type:we,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(j,Ce){1&j&&M.WFA("@dialogContainer.start",function(X){return Ce._onAnimationStart(X)})("@dialogContainer.done",function(X){return Ce._onAnimationDone(X)}),2&j&&(M.Ikx("id",Ce._config.id),M.uIk("aria-modal",Ce._config.ariaModal)("role",Ce._config.role)("aria-labelledby",Ce._config.ariaLabel?null:Ce._ariaLabelledBy)("aria-label",Ce._config.ariaLabel)("aria-describedby",Ce._config.ariaDescribedBy||null),M.d8E("@dialogContainer",Ce._getAnimationState()))},features:[M.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(j,Ce){1&j&&M.YNc(0,y,0,0,"ng-template",0)},dependencies:[C.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[k.dialogContainer]}}),we})();class W{constructor(Y,j,Ce){this._ref=Y,this._containerInstance=Ce,this._afterOpened=new R.x,this._beforeClosed=new R.x,this._state=0,this.disableClose=j.disableClose,this.id=Y.id,Ce._animationStateChanged.pipe((0,r.h)(Se=>"opened"===Se.state),(0,u.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ce._animationStateChanged.pipe((0,r.h)(Se=>"closed"===Se.state),(0,u.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Y.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,i.T)(this.backdropClick(),this.keydownEvents().pipe((0,r.h)(Se=>Se.keyCode===d.hY&&!this.disableClose&&!(0,d.Vb)(Se)))).subscribe(Se=>{this.disableClose||(Se.preventDefault(),P(this,"keydown"===Se.type?"keyboard":"mouse"))})}close(Y){this._result=Y,this._containerInstance._animationStateChanged.pipe((0,r.h)(j=>"closing"===j.state),(0,u.q)(1)).subscribe(j=>{this._beforeClosed.next(Y),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),j.totalTime+100)}),this._state=1,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(Y){let j=this._ref.config.positionStrategy;return Y&&(Y.left||Y.right)?Y.left?j.left(Y.left):j.right(Y.right):j.centerHorizontally(),Y&&(Y.top||Y.bottom)?Y.top?j.top(Y.top):j.bottom(Y.bottom):j.centerVertically(),this._ref.updatePosition(),this}updateSize(Y="",j=""){return this._ref.updateSize(Y,j),this}addPanelClass(Y){return this._ref.addPanelClass(Y),this}removePanelClass(Y){return this._ref.removePanelClass(Y),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function P(we,Y,j){return we._closeInteractionType=Y,we.close(j)}const U=new M.OlP("MatDialogData"),me=new M.OlP("mat-dialog-default-options"),nt=new M.OlP("mat-dialog-scroll-strategy"),De={provide:nt,deps:[e.aV],useFactory:function Oe(we){return()=>we.scrollStrategies.block()}};let ue=0,ve=(()=>{class we{constructor(j,Ce,Se,X,Ye,Le,gt,Wt,Rt,jt){this._overlay=j,this._defaultOptions=Se,this._parentDialog=X,this._dialogRefConstructor=gt,this._dialogContainerType=Wt,this._dialogDataToken=Rt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new R.x,this._afterOpenedAtThisLevel=new R.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,h.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=Le,this._dialog=Ce.get(le)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const j=this._parentDialog;return j?j._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(j,Ce){let Se;(Ce={...this._defaultOptions||new b,...Ce}).id=Ce.id||`${this._idPrefix}${ue++}`,Ce.scrollStrategy=Ce.scrollStrategy||this._scrollStrategy();const X=this._dialog.open(j,{...Ce,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:b,useValue:Ce},{provide:N,useValue:Ce}]},templateContext:()=>({dialogRef:Se}),providers:(Ye,Le,gt)=>(Se=new this._dialogRefConstructor(Ye,Ce,gt),Se.updatePosition(Ce?.position),[{provide:this._dialogContainerType,useValue:gt},{provide:this._dialogDataToken,useValue:Le.data},{provide:this._dialogRefConstructor,useValue:Se}])});return Se.componentInstance=X.componentInstance,this.openDialogs.push(Se),this.afterOpened.next(Se),Se.afterClosed().subscribe(()=>{const Ye=this.openDialogs.indexOf(Se);Ye>-1&&(this.openDialogs.splice(Ye,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Se}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(j){return this.openDialogs.find(Ce=>Ce.id===j)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(j){let Ce=j.length;for(;Ce--;)j[Ce].close()}}return we.\u0275fac=function(j){M.$Z()},we.\u0275prov=M.Yz7({token:we,factory:we.\u0275fac}),we})(),Ie=(()=>{class we extends ve{constructor(j,Ce,Se,X,Ye,Le,gt,Wt){super(j,Ce,X,Le,gt,Ye,W,_,U,Wt)}}return we.\u0275fac=function(j){return new(j||we)(M.LFG(e.aV),M.LFG(M.zs3),M.LFG(a.Ye,8),M.LFG(me,8),M.LFG(nt),M.LFG(we,12),M.LFG(e.Xj),M.LFG(M.QbO,8))},we.\u0275prov=M.Yz7({token:we,factory:we.\u0275fac}),we})(),Ge=(()=>{class we{constructor(j,Ce,Se){this.dialogRef=j,this._elementRef=Ce,this._dialog=Se,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function he(we,Y){let j=we.nativeElement.parentElement;for(;j&&!j.classList.contains("mat-dialog-container");)j=j.parentElement;return j?Y.find(Ce=>Ce.id===j.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(j){const Ce=j._matDialogClose||j._matDialogCloseResult;Ce&&(this.dialogResult=Ce.currentValue)}_onButtonClick(j){P(this.dialogRef,0===j.screenX&&0===j.screenY?"keyboard":"mouse",this.dialogResult)}}return we.\u0275fac=function(j){return new(j||we)(M.Y36(W,8),M.Y36(M.SBq),M.Y36(Ie))},we.\u0275dir=M.lG2({type:we,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(j,Ce){1&j&&M.NdJ("click",function(X){return Ce._onButtonClick(X)}),2&j&&M.uIk("aria-label",Ce.ariaLabel||null)("type",Ce.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[M.TTD]}),we})(),de=(()=>{class we{}return we.\u0275fac=function(j){return new(j||we)},we.\u0275mod=M.oAB({type:we}),we.\u0275inj=M.cJS({providers:[Ie,De],imports:[pe,e.U8,C.eL,S.BQ,S.BQ]}),we})()},4850:(ke,J,p)=>{"use strict";p.d(J,{d:()=>C,t:()=>a});var t=p(4650),e=p(1281),f=p(3238);let C=(()=>{class M{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(R){this._vertical=(0,e.Ig)(R)}get inset(){return this._inset}set inset(R){this._inset=(0,e.Ig)(R)}}return M.\u0275fac=function(R){return new(R||M)},M.\u0275cmp=t.Xpm({type:M,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(R,h){2&R&&(t.uIk("aria-orientation",h.vertical?"vertical":"horizontal"),t.ekj("mat-divider-vertical",h.vertical)("mat-divider-horizontal",!h.vertical)("mat-divider-inset",h.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(R,h){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),M})(),a=(()=>{class M{}return M.\u0275fac=function(R){return new(R||M)},M.\u0275mod=t.oAB({type:M}),M.\u0275inj=t.cJS({imports:[f.BQ,f.BQ]}),M})()},752:(ke,J,p)=>{"use strict";p.d(J,{pp:()=>De,To:()=>ue,ib:()=>W,u4:()=>Pe,yz:()=>nt,yK:()=>Oe});var t=p(4650),e=p(5017),f=p(1281),C=p(7579),a=p(727);let M=0;const d=new t.OlP("CdkAccordion");let R=(()=>{class ve{constructor(){this._stateChanges=new C.x,this._openCloseAllActions=new C.x,this.id="cdk-accordion-"+M++,this._multi=!1}get multi(){return this._multi}set multi($){this._multi=(0,f.Ig)($)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges($){this._stateChanges.next($)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return ve.\u0275fac=function($){return new($||ve)},ve.\u0275dir=t.lG2({type:ve,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:d,useExisting:ve}]),t.TTD]}),ve})(),h=0,I=(()=>{class ve{constructor($,Ge,ut){this.accordion=$,this._changeDetectorRef=Ge,this._expansionDispatcher=ut,this._openCloseAllSubscription=a.w0.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-"+h++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=ut.listen((Ee,ye)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===ye&&this.id!==Ee&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded($){$=(0,f.Ig)($),this._expanded!==$&&(this._expanded=$,this.expandedChange.emit($),$?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled($){this._disabled=(0,f.Ig)($)}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($=>{this.disabled||(this.expanded=$)})}}return ve.\u0275fac=function($){return new($||ve)(t.Y36(d,12),t.Y36(t.sBO),t.Y36(e.A8))},ve.\u0275dir=t.lG2({type:ve,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:d,useValue:void 0}])]}),ve})(),E=(()=>{class ve{}return ve.\u0275fac=function($){return new($||ve)},ve.\u0275mod=t.oAB({type:ve}),ve.\u0275inj=t.cJS({}),ve})();var L=p(4080),T=p(6895),N=p(3238),w=p(4761),G=p(1884),K=p(8675),Q=p(9300),re=p(5698),ie=p(9521),ce=p(515),ae=p(6451),ne=p(7340);const le=["body"];function ee(ve,Ie){}const pe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],S=["mat-expansion-panel-header","*","mat-action-row"];function i(ve,Ie){if(1&ve&&t._UZ(0,"span",2),2&ve){const $=t.oxw();t.Q6J("@indicatorRotate",$._getExpandedState())}}const r=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],u=["mat-panel-title","mat-panel-description","*"],l=new t.OlP("MAT_ACCORDION"),y="225ms cubic-bezier(0.4,0.0,0.2,1)",D={indicatorRotate:(0,ne.X$)("indicatorRotate",[(0,ne.SB)("collapsed, void",(0,ne.oB)({transform:"rotate(0deg)"})),(0,ne.SB)("expanded",(0,ne.oB)({transform:"rotate(180deg)"})),(0,ne.eR)("expanded <=> collapsed, void => collapsed",(0,ne.jt)(y))]),bodyExpansion:(0,ne.X$)("bodyExpansion",[(0,ne.SB)("collapsed, void",(0,ne.oB)({height:"0px",visibility:"hidden"})),(0,ne.SB)("expanded",(0,ne.oB)({height:"*",visibility:"visible"})),(0,ne.eR)("expanded <=> collapsed, void => collapsed",(0,ne.jt)(y))])},k=new t.OlP("MAT_EXPANSION_PANEL");let b=(()=>{class ve{constructor($,Ge){this._template=$,this._expansionPanel=Ge}}return ve.\u0275fac=function($){return new($||ve)(t.Y36(t.Rgc),t.Y36(k,8))},ve.\u0275dir=t.lG2({type:ve,selectors:[["ng-template","matExpansionPanelContent",""]]}),ve})(),n=0;const _=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let W=(()=>{class ve extends I{constructor($,Ge,ut,Ee,ye,he,de){super($,Ge,ut),this._viewContainerRef=Ee,this._animationMode=he,this._hideToggle=!1,this.afterExpand=new t.vpe,this.afterCollapse=new t.vpe,this._inputChanges=new C.x,this._headerId="mat-expansion-panel-header-"+n++,this._bodyAnimationDone=new C.x,this.accordion=$,this._document=ye,this._bodyAnimationDone.pipe((0,G.x)((we,Y)=>we.fromState===Y.fromState&&we.toState===Y.toState)).subscribe(we=>{"void"!==we.fromState&&("expanded"===we.toState?this.afterExpand.emit():"collapsed"===we.toState&&this.afterCollapse.emit())}),de&&(this.hideToggle=de.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle($){this._hideToggle=(0,f.Ig)($)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition($){this._togglePosition=$}_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,K.O)(null),(0,Q.h)(()=>this.expanded&&!this._portal),(0,re.q)(1)).subscribe(()=>{this._portal=new L.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges($){this._inputChanges.next($)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const $=this._document.activeElement,Ge=this._body.nativeElement;return $===Ge||Ge.contains($)}return!1}}return ve.\u0275fac=function($){return new($||ve)(t.Y36(l,12),t.Y36(t.sBO),t.Y36(e.A8),t.Y36(t.s_b),t.Y36(T.K0),t.Y36(t.QbO,8),t.Y36(_,8))},ve.\u0275cmp=t.Xpm({type:ve,selectors:[["mat-expansion-panel"]],contentQueries:function($,Ge,ut){if(1&$&&t.Suo(ut,b,5),2&$){let Ee;t.iGM(Ee=t.CRH())&&(Ge._lazyContent=Ee.first)}},viewQuery:function($,Ge){if(1&$&&t.Gf(le,5),2&$){let ut;t.iGM(ut=t.CRH())&&(Ge._body=ut.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function($,Ge){2&$&&t.ekj("mat-expanded",Ge.expanded)("_mat-animation-noopable","NoopAnimations"===Ge._animationMode)("mat-expansion-panel-spacing",Ge._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:l,useValue:void 0},{provide:k,useExisting:ve}]),t.qOj,t.TTD],ngContentSelectors:S,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function($,Ge){1&$&&(t.F$t(pe),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(Ee){return Ge._bodyAnimationDone.next(Ee)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,ee,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&$&&(t.xp6(1),t.Q6J("@bodyExpansion",Ge._getExpandedState())("id",Ge.id),t.uIk("aria-labelledby",Ge._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",Ge._portal))},dependencies:[L.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[D.bodyExpansion]},changeDetection:0}),ve})();class U{}const me=(0,N.sb)(U);let nt=(()=>{class ve extends me{constructor($,Ge,ut,Ee,ye,he,de){super(),this.panel=$,this._element=Ge,this._focusMonitor=ut,this._changeDetectorRef=Ee,this._animationMode=he,this._parentChangeSubscription=a.w0.EMPTY;const we=$.accordion?$.accordion._stateChanges.pipe((0,Q.h)(Y=>!(!Y.hideToggle&&!Y.togglePosition))):ce.E;this.tabIndex=parseInt(de||"")||0,this._parentChangeSubscription=(0,ae.T)($.opened,$.closed,we,$._inputChanges.pipe((0,Q.h)(Y=>!!(Y.hideToggle||Y.disabled||Y.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),$.closed.pipe((0,Q.h)(()=>$._containsFocus())).subscribe(()=>ut.focusVia(Ge,"program")),ye&&(this.expandedHeight=ye.expandedHeight,this.collapsedHeight=ye.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const $=this._isExpanded();return $&&this.expandedHeight?this.expandedHeight:!$&&this.collapsedHeight?this.collapsedHeight:null}_keydown($){switch($.keyCode){case ie.L_:case ie.K5:(0,ie.Vb)($)||($.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown($))}}focus($,Ge){$?this._focusMonitor.focusVia(this._element,$,Ge):this._element.nativeElement.focus(Ge)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe($=>{$&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return ve.\u0275fac=function($){return new($||ve)(t.Y36(W,1),t.Y36(t.SBq),t.Y36(w.tE),t.Y36(t.sBO),t.Y36(_,8),t.Y36(t.QbO,8),t.$8M("tabindex"))},ve.\u0275cmp=t.Xpm({type:ve,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function($,Ge){1&$&&t.NdJ("click",function(){return Ge._toggle()})("keydown",function(Ee){return Ge._keydown(Ee)}),2&$&&(t.uIk("id",Ge.panel._headerId)("tabindex",Ge.tabIndex)("aria-controls",Ge._getPanelId())("aria-expanded",Ge._isExpanded())("aria-disabled",Ge.panel.disabled),t.Udp("height",Ge._getHeaderHeight()),t.ekj("mat-expanded",Ge._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ge._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ge._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ge._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:u,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function($,Ge){1&$&&(t.F$t(r),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,i,1,1,"span",1)),2&$&&(t.ekj("mat-content-hide-toggle",!Ge._showToggle()),t.xp6(4),t.Q6J("ngIf",Ge._showToggle()))},dependencies:[T.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-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,.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-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[D.indicatorRotate]},changeDetection:0}),ve})(),Pe=(()=>{class ve{}return ve.\u0275fac=function($){return new($||ve)},ve.\u0275dir=t.lG2({type:ve,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),ve})(),Oe=(()=>{class ve{}return ve.\u0275fac=function($){return new($||ve)},ve.\u0275dir=t.lG2({type:ve,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),ve})(),De=(()=>{class ve extends R{constructor(){super(...arguments),this._ownHeaders=new t.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle($){this._hideToggle=(0,f.Ig)($)}ngAfterContentInit(){this._headers.changes.pipe((0,K.O)(this._headers)).subscribe($=>{this._ownHeaders.reset($.filter(Ge=>Ge.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new w.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown($){this._keyManager.onKeydown($)}_handleHeaderFocus($){this._keyManager.updateActiveItem($)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return ve.\u0275fac=function(){let Ie;return function(Ge){return(Ie||(Ie=t.n5z(ve)))(Ge||ve)}}(),ve.\u0275dir=t.lG2({type:ve,selectors:[["mat-accordion"]],contentQueries:function($,Ge,ut){if(1&$&&t.Suo(ut,nt,5),2&$){let Ee;t.iGM(Ee=t.CRH())&&(Ge._headers=Ee)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function($,Ge){2&$&&t.ekj("mat-accordion-multi",Ge.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:l,useExisting:ve}]),t.qOj]}),ve})(),ue=(()=>{class ve{}return ve.\u0275fac=function($){return new($||ve)},ve.\u0275mod=t.oAB({type:ve}),ve.\u0275inj=t.cJS({imports:[T.ez,N.BQ,E,L.eL]}),ve})()},9549:(ke,J,p)=>{"use strict";p.d(J,{Eo:()=>b,G_:()=>ye,KE:()=>he,R9:()=>ve,TO:()=>D,bx:()=>me,lN:()=>de});var t=p(9643),e=p(6895),f=p(4650),C=p(3238),a=p(445),M=p(1281),d=p(7579),R=p(6451),h=p(4968),I=p(8675),E=p(2722),L=p(5698),T=p(7340),N=p(3353);const w=["connectionContainer"],G=["inputContainer"],K=["label"];function Q(we,Y){1&we&&(f.ynx(0),f.TgZ(1,"div",14),f._UZ(2,"div",15)(3,"div",16)(4,"div",17),f.qZA(),f.TgZ(5,"div",18),f._UZ(6,"div",15)(7,"div",16)(8,"div",17),f.qZA(),f.BQk())}function re(we,Y){if(1&we){const j=f.EpF();f.TgZ(0,"div",19),f.NdJ("cdkObserveContent",function(){f.CHM(j);const Se=f.oxw();return f.KtG(Se.updateOutlineGap())}),f.Hsn(1,1),f.qZA()}if(2&we){const j=f.oxw();f.Q6J("cdkObserveContentDisabled","outline"!=j.appearance)}}function ie(we,Y){if(1&we&&(f.ynx(0),f.Hsn(1,2),f.TgZ(2,"span"),f._uU(3),f.qZA(),f.BQk()),2&we){const j=f.oxw(2);f.xp6(3),f.Oqu(j._control.placeholder)}}function ce(we,Y){1&we&&f.Hsn(0,3,["*ngSwitchCase","true"])}function ae(we,Y){1&we&&(f.TgZ(0,"span",23),f._uU(1," *"),f.qZA())}function ne(we,Y){if(1&we){const j=f.EpF();f.TgZ(0,"label",20,21),f.NdJ("cdkObserveContent",function(){f.CHM(j);const Se=f.oxw();return f.KtG(Se.updateOutlineGap())}),f.YNc(2,ie,4,1,"ng-container",12),f.YNc(3,ce,1,0,"ng-content",12),f.YNc(4,ae,2,0,"span",22),f.qZA()}if(2&we){const j=f.oxw();f.ekj("mat-empty",j._control.empty&&!j._shouldAlwaysFloat())("mat-form-field-empty",j._control.empty&&!j._shouldAlwaysFloat())("mat-accent","accent"==j.color)("mat-warn","warn"==j.color),f.Q6J("cdkObserveContentDisabled","outline"!=j.appearance)("id",j._labelId)("ngSwitch",j._hasLabel()),f.uIk("for",j._control.id)("aria-owns",j._control.id),f.xp6(2),f.Q6J("ngSwitchCase",!1),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngIf",!j.hideRequiredMarker&&j._control.required&&!j._control.disabled)}}function le(we,Y){1&we&&(f.TgZ(0,"div",24),f.Hsn(1,4),f.qZA())}function ee(we,Y){if(1&we&&(f.TgZ(0,"div",25),f._UZ(1,"span",26),f.qZA()),2&we){const j=f.oxw();f.xp6(1),f.ekj("mat-accent","accent"==j.color)("mat-warn","warn"==j.color)}}function pe(we,Y){if(1&we&&(f.TgZ(0,"div"),f.Hsn(1,5),f.qZA()),2&we){const j=f.oxw();f.Q6J("@transitionMessages",j._subscriptAnimationState)}}function S(we,Y){if(1&we&&(f.TgZ(0,"div",30),f._uU(1),f.qZA()),2&we){const j=f.oxw(2);f.Q6J("id",j._hintLabelId),f.xp6(1),f.Oqu(j.hintLabel)}}function i(we,Y){if(1&we&&(f.TgZ(0,"div",27),f.YNc(1,S,2,2,"div",28),f.Hsn(2,6),f._UZ(3,"div",29),f.Hsn(4,7),f.qZA()),2&we){const j=f.oxw();f.Q6J("@transitionMessages",j._subscriptAnimationState),f.xp6(1),f.Q6J("ngIf",j.hintLabel)}}const r=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],u=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let l=0;const y=new f.OlP("MatError");let D=(()=>{class we{constructor(j,Ce){this.id="mat-error-"+l++,j||Ce.nativeElement.setAttribute("aria-live","polite")}}return we.\u0275fac=function(j){return new(j||we)(f.$8M("aria-live"),f.Y36(f.SBq))},we.\u0275dir=f.lG2({type:we,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(j,Ce){2&j&&f.uIk("id",Ce.id)},inputs:{id:"id"},features:[f._Bn([{provide:y,useExisting:we}])]}),we})();const k={transitionMessages:(0,T.X$)("transitionMessages",[(0,T.SB)("enter",(0,T.oB)({opacity:1,transform:"translateY(0%)"})),(0,T.eR)("void => enter",[(0,T.oB)({opacity:0,transform:"translateY(-5px)"}),(0,T.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let b=(()=>{class we{}return we.\u0275fac=function(j){return new(j||we)},we.\u0275dir=f.lG2({type:we}),we})(),P=0;const U=new f.OlP("MatHint");let me=(()=>{class we{constructor(){this.align="start",this.id="mat-hint-"+P++}}return we.\u0275fac=function(j){return new(j||we)},we.\u0275dir=f.lG2({type:we,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(j,Ce){2&j&&(f.uIk("id",Ce.id)("align",null),f.ekj("mat-form-field-hint-end","end"===Ce.align))},inputs:{align:"align",id:"id"},features:[f._Bn([{provide:U,useExisting:we}])]}),we})(),nt=(()=>{class we{}return we.\u0275fac=function(j){return new(j||we)},we.\u0275dir=f.lG2({type:we,selectors:[["mat-label"]]}),we})(),Pe=(()=>{class we{}return we.\u0275fac=function(j){return new(j||we)},we.\u0275dir=f.lG2({type:we,selectors:[["mat-placeholder"]]}),we})();const Oe=new f.OlP("MatPrefix"),ue=new f.OlP("MatSuffix");let ve=(()=>{class we{}return we.\u0275fac=function(j){return new(j||we)},we.\u0275dir=f.lG2({type:we,selectors:[["","matSuffix",""]],features:[f._Bn([{provide:ue,useExisting:we}])]}),we})(),Ie=0;const ut=(0,C.pj)(class{constructor(we){this._elementRef=we}},"primary"),Ee=new f.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ye=new f.OlP("MatFormField");let he=(()=>{class we extends ut{constructor(j,Ce,Se,X,Ye,Le,gt){super(j),this._changeDetectorRef=Ce,this._dir=Se,this._defaults=X,this._platform=Ye,this._ngZone=Le,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new d.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ie++,this._labelId="mat-form-field-label-"+Ie++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==gt,this.appearance=X?.appearance||"legacy",X&&(this._hideRequiredMarker=Boolean(X.hideRequiredMarker),X.color&&(this.color=this.defaultColor=X.color))}get appearance(){return this._appearance}set appearance(j){const Ce=this._appearance;this._appearance=j||this._defaults?.appearance||"legacy","outline"===this._appearance&&Ce!==j&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(j){this._hideRequiredMarker=(0,M.Ig)(j)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(j){this._hintLabel=j,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(j){j!==this._floatLabel&&(this._floatLabel=j||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(j){this._explicitFormFieldControl=j}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const j=this._control;j.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${j.controlType}`),j.stateChanges.pipe((0,I.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),j.ngControl&&j.ngControl.valueChanges&&j.ngControl.valueChanges.pipe((0,E.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,E.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,R.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,I.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,I.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,E.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(j){const Ce=this._control?this._control.ngControl:null;return Ce&&Ce[j]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,h.R)(this._label.nativeElement,"transitionend").pipe((0,L.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let j=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&j.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Ce=this._hintChildren?this._hintChildren.find(X=>"start"===X.align):null,Se=this._hintChildren?this._hintChildren.find(X=>"end"===X.align):null;Ce?j.push(Ce.id):this._hintLabel&&j.push(this._hintLabelId),Se&&j.push(Se.id)}else this._errorChildren&&j.push(...this._errorChildren.map(Ce=>Ce.id));this._control.setDescribedByIds(j)}}_validateControlChild(){}updateOutlineGap(){const j=this._label?this._label.nativeElement:null,Ce=this._connectionContainerRef.nativeElement,Se=".mat-form-field-outline-start",X=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!j||!j.children.length||!j.textContent.trim()){const Rt=Ce.querySelectorAll(`${Se}, ${X}`);for(let jt=0;jt<Rt.length;jt++)Rt[jt].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let Ye=0,Le=0;const gt=Ce.querySelectorAll(Se),Wt=Ce.querySelectorAll(X);if(this._label&&this._label.nativeElement.children.length){const Rt=Ce.getBoundingClientRect();if(0===Rt.width&&0===Rt.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const jt=this._getStartEnd(Rt),hi=j.children,yt=this._getStartEnd(hi[0].getBoundingClientRect());let Pt=0;for(let pt=0;pt<hi.length;pt++)Pt+=hi[pt].offsetWidth;Ye=Math.abs(yt-jt)-5,Le=Pt>0?.75*Pt+10:0}for(let Rt=0;Rt<gt.length;Rt++)gt[Rt].style.width=`${Ye}px`;for(let Rt=0;Rt<Wt.length;Rt++)Wt[Rt].style.width=`${Le}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(j){return this._dir&&"rtl"===this._dir.value?j.right:j.left}_isAttachedToDOM(){const j=this._elementRef.nativeElement;if(j.getRootNode){const Ce=j.getRootNode();return Ce&&Ce!==j}return document.documentElement.contains(j)}}return we.\u0275fac=function(j){return new(j||we)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(a.Is,8),f.Y36(Ee,8),f.Y36(N.t4),f.Y36(f.R0b),f.Y36(f.QbO,8))},we.\u0275cmp=f.Xpm({type:we,selectors:[["mat-form-field"]],contentQueries:function(j,Ce,Se){if(1&j&&(f.Suo(Se,b,5),f.Suo(Se,b,7),f.Suo(Se,nt,5),f.Suo(Se,nt,7),f.Suo(Se,Pe,5),f.Suo(Se,y,5),f.Suo(Se,U,5),f.Suo(Se,Oe,5),f.Suo(Se,ue,5)),2&j){let X;f.iGM(X=f.CRH())&&(Ce._controlNonStatic=X.first),f.iGM(X=f.CRH())&&(Ce._controlStatic=X.first),f.iGM(X=f.CRH())&&(Ce._labelChildNonStatic=X.first),f.iGM(X=f.CRH())&&(Ce._labelChildStatic=X.first),f.iGM(X=f.CRH())&&(Ce._placeholderChild=X.first),f.iGM(X=f.CRH())&&(Ce._errorChildren=X),f.iGM(X=f.CRH())&&(Ce._hintChildren=X),f.iGM(X=f.CRH())&&(Ce._prefixChildren=X),f.iGM(X=f.CRH())&&(Ce._suffixChildren=X)}},viewQuery:function(j,Ce){if(1&j&&(f.Gf(w,7),f.Gf(G,5),f.Gf(K,5)),2&j){let Se;f.iGM(Se=f.CRH())&&(Ce._connectionContainerRef=Se.first),f.iGM(Se=f.CRH())&&(Ce._inputContainerRef=Se.first),f.iGM(Se=f.CRH())&&(Ce._label=Se.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(j,Ce){2&j&&f.ekj("mat-form-field-appearance-standard","standard"==Ce.appearance)("mat-form-field-appearance-fill","fill"==Ce.appearance)("mat-form-field-appearance-outline","outline"==Ce.appearance)("mat-form-field-appearance-legacy","legacy"==Ce.appearance)("mat-form-field-invalid",Ce._control.errorState)("mat-form-field-can-float",Ce._canLabelFloat())("mat-form-field-should-float",Ce._shouldLabelFloat())("mat-form-field-has-label",Ce._hasFloatingLabel())("mat-form-field-hide-placeholder",Ce._hideControlPlaceholder())("mat-form-field-disabled",Ce._control.disabled)("mat-form-field-autofilled",Ce._control.autofilled)("mat-focused",Ce._control.focused)("ng-untouched",Ce._shouldForward("untouched"))("ng-touched",Ce._shouldForward("touched"))("ng-pristine",Ce._shouldForward("pristine"))("ng-dirty",Ce._shouldForward("dirty"))("ng-valid",Ce._shouldForward("valid"))("ng-invalid",Ce._shouldForward("invalid"))("ng-pending",Ce._shouldForward("pending"))("_mat-animation-noopable",!Ce._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[f._Bn([{provide:ye,useExisting:we}]),f.qOj],ngContentSelectors:u,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(j,Ce){1&j&&(f.F$t(r),f.TgZ(0,"div",0)(1,"div",1,2),f.NdJ("click",function(X){return Ce._control.onContainerClick&&Ce._control.onContainerClick(X)}),f.YNc(3,Q,9,0,"ng-container",3),f.YNc(4,re,2,1,"div",4),f.TgZ(5,"div",5,6),f.Hsn(7),f.TgZ(8,"span",7),f.YNc(9,ne,5,16,"label",8),f.qZA()(),f.YNc(10,le,2,0,"div",9),f.qZA(),f.YNc(11,ee,2,4,"div",10),f.TgZ(12,"div",11),f.YNc(13,pe,2,1,"div",12),f.YNc(14,i,5,2,"div",13),f.qZA()()),2&j&&(f.xp6(3),f.Q6J("ngIf","outline"==Ce.appearance),f.xp6(1),f.Q6J("ngIf",Ce._prefixChildren.length),f.xp6(5),f.Q6J("ngIf",Ce._hasFloatingLabel()),f.xp6(1),f.Q6J("ngIf",Ce._suffixChildren.length),f.xp6(1),f.Q6J("ngIf","outline"!=Ce.appearance),f.xp6(1),f.Q6J("ngSwitch",Ce._getDisplayedMessages()),f.xp6(1),f.Q6J("ngSwitchCase","error"),f.xp6(1),f.Q6J("ngSwitchCase","hint"))},dependencies:[e.O5,e.RF,e.n9,t.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-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;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[k.transitionMessages]},changeDetection:0}),we})(),de=(()=>{class we{}return we.\u0275fac=function(j){return new(j||we)},we.\u0275mod=f.oAB({type:we}),we.\u0275inj=f.cJS({imports:[e.ez,C.BQ,t.Q8,C.BQ]}),we})()},782:(ke,J,p)=>{"use strict";p.d(J,{DX:()=>L,Il:()=>ee,N6:()=>pe});var t=p(4650),e=p(3238),f=p(1281),C=p(445);const a=["*"];class h{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const r=Math.max(...this.tracker);return r>1?this.rowCount+r-1:this.rowCount}update(r,u){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(r),this.tracker.fill(0,0,this.tracker.length),this.positions=u.map(l=>this._trackTile(l))}_trackTile(r){const u=this._findMatchingGap(r.colspan);return this._markTilePosition(u,r),this.columnIndex=u+r.colspan,new I(this.rowIndex,u)}_findMatchingGap(r){let u=-1,l=-1;do{this.columnIndex+r>this.tracker.length?(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),l=this._findGapEndIndex(u)):(u=this.tracker.indexOf(0,this.columnIndex),-1!=u?(l=this._findGapEndIndex(u),this.columnIndex=u+1):(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),l=this._findGapEndIndex(u)))}while(l-u<r||0==l);return Math.max(u,0)}_nextRow(){this.columnIndex=0,this.rowIndex++;for(let r=0;r<this.tracker.length;r++)this.tracker[r]=Math.max(0,this.tracker[r]-1)}_findGapEndIndex(r){for(let u=r+1;u<this.tracker.length;u++)if(0!=this.tracker[u])return u;return this.tracker.length}_markTilePosition(r,u){for(let l=0;l<u.colspan;l++)this.tracker[r+l]=u.rowspan}}class I{constructor(r,u){this.row=r,this.col=u}}const E=new t.OlP("MAT_GRID_LIST");let L=(()=>{class i{constructor(u,l){this._element=u,this._gridList=l,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(u){this._rowspan=Math.round((0,f.su)(u))}get colspan(){return this._colspan}set colspan(u){this._colspan=Math.round((0,f.su)(u))}_setStyle(u,l){this._element.nativeElement.style[u]=l}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(E,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(u,l){2&u&&t.uIk("rowspan",l.rowspan)("colspan",l.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:a,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(u,l){1&u&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),i})();const K=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class Q{constructor(){this._rows=0,this._rowspan=0}init(r,u,l,y){this._gutterSize=ne(r),this._rows=u.rowCount,this._rowspan=u.rowspan,this._cols=l,this._direction=y}getBaseTileSize(r,u){return`(${r}% - (${this._gutterSize} * ${u}))`}getTilePosition(r,u){return 0===u?"0":ae(`(${r} + ${this._gutterSize}) * ${u}`)}getTileSize(r,u){return`(${r} * ${u}) + (${u-1} * ${this._gutterSize})`}setStyle(r,u,l){let y=100/this._cols,D=(this._cols-1)/this._cols;this.setColStyles(r,l,y,D),this.setRowStyles(r,u,y,D)}setColStyles(r,u,l,y){let D=this.getBaseTileSize(l,y);r._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(D,u)),r._setStyle("width",ae(this.getTileSize(D,r.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(r){return`${this._rowspan} * ${this.getTileSize(r,1)}`}getComputedHeight(){return null}}class re extends Q{constructor(r){super(),this.fixedRowHeight=r}init(r,u,l,y){super.init(r,u,l,y),this.fixedRowHeight=ne(this.fixedRowHeight),K.test(this.fixedRowHeight)}setRowStyles(r,u){r._setStyle("top",this.getTilePosition(this.fixedRowHeight,u)),r._setStyle("height",ae(this.getTileSize(this.fixedRowHeight,r.rowspan)))}getComputedHeight(){return["height",ae(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["height",null]),r._tiles&&r._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}class ie extends Q{constructor(r){super(),this._parseRatio(r)}setRowStyles(r,u,l,y){this.baseTileHeight=this.getBaseTileSize(l/this.rowHeightRatio,y),r._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,u)),r._setStyle("paddingTop",ae(this.getTileSize(this.baseTileHeight,r.rowspan)))}getComputedHeight(){return["paddingBottom",ae(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["paddingBottom",null]),r._tiles.forEach(u=>{u._setStyle("marginTop",null),u._setStyle("paddingTop",null)})}_parseRatio(r){const u=r.split(":");this.rowHeightRatio=parseFloat(u[0])/parseFloat(u[1])}}class ce extends Q{setRowStyles(r,u){let D=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);r._setStyle("top",this.getTilePosition(D,u)),r._setStyle("height",ae(this.getTileSize(D,r.rowspan)))}reset(r){r._tiles&&r._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}function ae(i){return`calc(${i})`}function ne(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let ee=(()=>{class i{constructor(u,l){this._element=u,this._dir=l,this._gutter="1px"}get cols(){return this._cols}set cols(u){this._cols=Math.max(1,Math.round((0,f.su)(u)))}get gutterSize(){return this._gutter}set gutterSize(u){this._gutter=`${u??""}`}get rowHeight(){return this._rowHeight}set rowHeight(u){const l=`${u??""}`;l!==this._rowHeight&&(this._rowHeight=l,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(u){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===u?new ce:u&&u.indexOf(":")>-1?new ie(u):new re(u)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new h);const u=this._tileCoordinator,l=this._tiles.filter(D=>!D._gridList||D._gridList===this),y=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,l),this._tileStyler.init(this.gutterSize,u,this.cols,y),l.forEach((D,k)=>{const b=u.positions[k];this._tileStyler.setStyle(D,b.row,b.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(u){u&&(this._element.nativeElement.style[u[0]]=u[1])}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(C.Is,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(u,l,y){if(1&u&&t.Suo(y,L,5),2&u){let D;t.iGM(D=t.CRH())&&(l._tiles=D)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(u,l){2&u&&t.uIk("cols",l.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:E,useExisting:i}])],ngContentSelectors:a,decls:2,vars:0,template:function(u,l){1&u&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),i})(),pe=(()=>{class i{}return i.\u0275fac=function(u){return new(u||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[e.uc,e.BQ,e.uc,e.BQ]}),i})()},7392:(ke,J,p)=>{"use strict";p.d(J,{Hw:()=>P,Ps:()=>U});var t=p(4650),e=p(3238),f=p(1281),C=p(6895),a=p(9646),M=p(2843),d=p(4128),R=p(727),h=p(8505),I=p(4004),E=p(262),L=p(8746),T=p(3099),N=p(5698),w=p(529),G=p(1481);const K=["*"];let Q;function ie(me){return function re(){if(void 0===Q&&(Q=null,typeof window<"u")){const me=window;void 0!==me.trustedTypes&&(Q=me.trustedTypes.createPolicy("angular#components",{createHTML:nt=>nt}))}return Q}()?.createHTML(me)||me}function ce(me){return Error(`Unable to find icon with the name "${me}"`)}function ne(me){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${me}".`)}function le(me){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${me}".`)}class ee{constructor(nt,Pe,Oe){this.url=nt,this.svgText=Pe,this.options=Oe}}let pe=(()=>{class me{constructor(Pe,Oe,De,ue){this._httpClient=Pe,this._sanitizer=Oe,this._errorHandler=ue,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=De}addSvgIcon(Pe,Oe,De){return this.addSvgIconInNamespace("",Pe,Oe,De)}addSvgIconLiteral(Pe,Oe,De){return this.addSvgIconLiteralInNamespace("",Pe,Oe,De)}addSvgIconInNamespace(Pe,Oe,De,ue){return this._addSvgIconConfig(Pe,Oe,new ee(De,null,ue))}addSvgIconResolver(Pe){return this._resolvers.push(Pe),this}addSvgIconLiteralInNamespace(Pe,Oe,De,ue){const ve=this._sanitizer.sanitize(t.q3G.HTML,De);if(!ve)throw le(De);const Ie=ie(ve);return this._addSvgIconConfig(Pe,Oe,new ee("",Ie,ue))}addSvgIconSet(Pe,Oe){return this.addSvgIconSetInNamespace("",Pe,Oe)}addSvgIconSetLiteral(Pe,Oe){return this.addSvgIconSetLiteralInNamespace("",Pe,Oe)}addSvgIconSetInNamespace(Pe,Oe,De){return this._addSvgIconSetConfig(Pe,new ee(Oe,null,De))}addSvgIconSetLiteralInNamespace(Pe,Oe,De){const ue=this._sanitizer.sanitize(t.q3G.HTML,Oe);if(!ue)throw le(Oe);const ve=ie(ue);return this._addSvgIconSetConfig(Pe,new ee("",ve,De))}registerFontClassAlias(Pe,Oe=Pe){return this._fontCssClassesByAlias.set(Pe,Oe),this}classNameForFontAlias(Pe){return this._fontCssClassesByAlias.get(Pe)||Pe}setDefaultFontSetClass(...Pe){return this._defaultFontSetClass=Pe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Pe){const Oe=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,Pe);if(!Oe)throw ne(Pe);const De=this._cachedIconsByUrl.get(Oe);return De?(0,a.of)(r(De)):this._loadSvgIconFromConfig(new ee(Pe,null)).pipe((0,h.b)(ue=>this._cachedIconsByUrl.set(Oe,ue)),(0,I.U)(ue=>r(ue)))}getNamedSvgIcon(Pe,Oe=""){const De=u(Oe,Pe);let ue=this._svgIconConfigs.get(De);if(ue)return this._getSvgFromConfig(ue);if(ue=this._getIconConfigFromResolvers(Oe,Pe),ue)return this._svgIconConfigs.set(De,ue),this._getSvgFromConfig(ue);const ve=this._iconSetConfigs.get(Oe);return ve?this._getSvgFromIconSetConfigs(Pe,ve):(0,M._)(ce(De))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Pe){return Pe.svgText?(0,a.of)(r(this._svgElementFromConfig(Pe))):this._loadSvgIconFromConfig(Pe).pipe((0,I.U)(Oe=>r(Oe)))}_getSvgFromIconSetConfigs(Pe,Oe){const De=this._extractIconWithNameFromAnySet(Pe,Oe);if(De)return(0,a.of)(De);const ue=Oe.filter(ve=>!ve.svgText).map(ve=>this._loadSvgIconSetFromConfig(ve).pipe((0,E.K)(Ie=>{const Ge=`Loading icon set URL: ${this._sanitizer.sanitize(t.q3G.RESOURCE_URL,ve.url)} failed: ${Ie.message}`;return this._errorHandler.handleError(new Error(Ge)),(0,a.of)(null)})));return(0,d.D)(ue).pipe((0,I.U)(()=>{const ve=this._extractIconWithNameFromAnySet(Pe,Oe);if(!ve)throw ce(Pe);return ve}))}_extractIconWithNameFromAnySet(Pe,Oe){for(let De=Oe.length-1;De>=0;De--){const ue=Oe[De];if(ue.svgText&&ue.svgText.toString().indexOf(Pe)>-1){const ve=this._svgElementFromConfig(ue),Ie=this._extractSvgIconFromSet(ve,Pe,ue.options);if(Ie)return Ie}}return null}_loadSvgIconFromConfig(Pe){return this._fetchIcon(Pe).pipe((0,h.b)(Oe=>Pe.svgText=Oe),(0,I.U)(()=>this._svgElementFromConfig(Pe)))}_loadSvgIconSetFromConfig(Pe){return Pe.svgText?(0,a.of)(null):this._fetchIcon(Pe).pipe((0,h.b)(Oe=>Pe.svgText=Oe))}_extractSvgIconFromSet(Pe,Oe,De){const ue=Pe.querySelector(`[id="${Oe}"]`);if(!ue)return null;const ve=ue.cloneNode(!0);if(ve.removeAttribute("id"),"svg"===ve.nodeName.toLowerCase())return this._setSvgAttributes(ve,De);if("symbol"===ve.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ve),De);const Ie=this._svgElementFromString(ie("<svg></svg>"));return Ie.appendChild(ve),this._setSvgAttributes(Ie,De)}_svgElementFromString(Pe){const Oe=this._document.createElement("DIV");Oe.innerHTML=Pe;const De=Oe.querySelector("svg");if(!De)throw Error("<svg> tag not found");return De}_toSvgElement(Pe){const Oe=this._svgElementFromString(ie("<svg></svg>")),De=Pe.attributes;for(let ue=0;ue<De.length;ue++){const{name:ve,value:Ie}=De[ue];"id"!==ve&&Oe.setAttribute(ve,Ie)}for(let ue=0;ue<Pe.childNodes.length;ue++)Pe.childNodes[ue].nodeType===this._document.ELEMENT_NODE&&Oe.appendChild(Pe.childNodes[ue].cloneNode(!0));return Oe}_setSvgAttributes(Pe,Oe){return Pe.setAttribute("fit",""),Pe.setAttribute("height","100%"),Pe.setAttribute("width","100%"),Pe.setAttribute("preserveAspectRatio","xMidYMid meet"),Pe.setAttribute("focusable","false"),Oe&&Oe.viewBox&&Pe.setAttribute("viewBox",Oe.viewBox),Pe}_fetchIcon(Pe){const{url:Oe,options:De}=Pe,ue=De?.withCredentials??!1;if(!this._httpClient)throw function ae(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==Oe)throw Error(`Cannot fetch icon from URL "${Oe}".`);const ve=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,Oe);if(!ve)throw ne(Oe);const Ie=this._inProgressUrlFetches.get(ve);if(Ie)return Ie;const $=this._httpClient.get(ve,{responseType:"text",withCredentials:ue}).pipe((0,I.U)(Ge=>ie(Ge)),(0,L.x)(()=>this._inProgressUrlFetches.delete(ve)),(0,T.B)());return this._inProgressUrlFetches.set(ve,$),$}_addSvgIconConfig(Pe,Oe,De){return this._svgIconConfigs.set(u(Pe,Oe),De),this}_addSvgIconSetConfig(Pe,Oe){const De=this._iconSetConfigs.get(Pe);return De?De.push(Oe):this._iconSetConfigs.set(Pe,[Oe]),this}_svgElementFromConfig(Pe){if(!Pe.svgElement){const Oe=this._svgElementFromString(Pe.svgText);this._setSvgAttributes(Oe,Pe.options),Pe.svgElement=Oe}return Pe.svgElement}_getIconConfigFromResolvers(Pe,Oe){for(let De=0;De<this._resolvers.length;De++){const ue=this._resolvers[De](Oe,Pe);if(ue)return l(ue)?new ee(ue.url,null,ue.options):new ee(ue,null)}}}return me.\u0275fac=function(Pe){return new(Pe||me)(t.LFG(w.eN,8),t.LFG(G.H7),t.LFG(C.K0,8),t.LFG(t.qLn))},me.\u0275prov=t.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})();function r(me){return me.cloneNode(!0)}function u(me,nt){return me+":"+nt}function l(me){return!(!me.url||!me.options)}const y=(0,e.pj)(class{constructor(me){this._elementRef=me}}),D=new t.OlP("MAT_ICON_DEFAULT_OPTIONS"),k=new t.OlP("mat-icon-location",{providedIn:"root",factory:function b(){const me=(0,t.f3M)(C.K0),nt=me?me.location:null;return{getPathname:()=>nt?nt.pathname+nt.search:""}}}),n=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],_=n.map(me=>`[${me}]`).join(", "),W=/^url\(['"]?#(.*?)['"]?\)$/;let P=(()=>{class me extends y{constructor(Pe,Oe,De,ue,ve,Ie){super(Pe),this._iconRegistry=Oe,this._location=ue,this._errorHandler=ve,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=R.w0.EMPTY,Ie&&(Ie.color&&(this.color=this.defaultColor=Ie.color),Ie.fontSet&&(this.fontSet=Ie.fontSet)),De||Pe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Pe){this._inline=(0,f.Ig)(Pe)}get svgIcon(){return this._svgIcon}set svgIcon(Pe){Pe!==this._svgIcon&&(Pe?this._updateSvgIcon(Pe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Pe)}get fontSet(){return this._fontSet}set fontSet(Pe){const Oe=this._cleanupFontValue(Pe);Oe!==this._fontSet&&(this._fontSet=Oe,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Pe){const Oe=this._cleanupFontValue(Pe);Oe!==this._fontIcon&&(this._fontIcon=Oe,this._updateFontIconClasses())}_splitIconName(Pe){if(!Pe)return["",""];const Oe=Pe.split(":");switch(Oe.length){case 1:return["",Oe[0]];case 2:return Oe;default:throw Error(`Invalid icon name: "${Pe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Pe=this._elementsWithExternalReferences;if(Pe&&Pe.size){const Oe=this._location.getPathname();Oe!==this._previousPath&&(this._previousPath=Oe,this._prependPathToReferences(Oe))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Pe){this._clearSvgElement();const Oe=this._location.getPathname();this._previousPath=Oe,this._cacheChildrenWithExternalReferences(Pe),this._prependPathToReferences(Oe),this._elementRef.nativeElement.appendChild(Pe)}_clearSvgElement(){const Pe=this._elementRef.nativeElement;let Oe=Pe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Oe--;){const De=Pe.childNodes[Oe];(1!==De.nodeType||"svg"===De.nodeName.toLowerCase())&&De.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Pe=this._elementRef.nativeElement,Oe=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(De=>De.length>0);this._previousFontSetClass.forEach(De=>Pe.classList.remove(De)),Oe.forEach(De=>Pe.classList.add(De)),this._previousFontSetClass=Oe,this.fontIcon!==this._previousFontIconClass&&!Oe.includes("mat-ligature-font")&&(this._previousFontIconClass&&Pe.classList.remove(this._previousFontIconClass),this.fontIcon&&Pe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Pe){return"string"==typeof Pe?Pe.trim().split(" ")[0]:Pe}_prependPathToReferences(Pe){const Oe=this._elementsWithExternalReferences;Oe&&Oe.forEach((De,ue)=>{De.forEach(ve=>{ue.setAttribute(ve.name,`url('${Pe}#${ve.value}')`)})})}_cacheChildrenWithExternalReferences(Pe){const Oe=Pe.querySelectorAll(_),De=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ue=0;ue<Oe.length;ue++)n.forEach(ve=>{const Ie=Oe[ue],$=Ie.getAttribute(ve),Ge=$?$.match(W):null;if(Ge){let ut=De.get(Ie);ut||(ut=[],De.set(Ie,ut)),ut.push({name:ve,value:Ge[1]})}})}_updateSvgIcon(Pe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Pe){const[Oe,De]=this._splitIconName(Pe);Oe&&(this._svgNamespace=Oe),De&&(this._svgName=De),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(De,Oe).pipe((0,N.q)(1)).subscribe(ue=>this._setSvgElement(ue),ue=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Oe}:${De}! ${ue.message}`))})}}}return me.\u0275fac=function(Pe){return new(Pe||me)(t.Y36(t.SBq),t.Y36(pe),t.$8M("aria-hidden"),t.Y36(k),t.Y36(t.qLn),t.Y36(D,8))},me.\u0275cmp=t.Xpm({type:me,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(Pe,Oe){2&Pe&&(t.uIk("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),t.ekj("mat-icon-inline",Oe.inline)("mat-icon-no-color","primary"!==Oe.color&&"accent"!==Oe.color&&"warn"!==Oe.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:K,decls:1,vars:0,template:function(Pe,Oe){1&Pe&&(t.F$t(),t.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),me})(),U=(()=>{class me{}return me.\u0275fac=function(Pe){return new(Pe||me)},me.\u0275mod=t.oAB({type:me}),me.\u0275inj=t.cJS({imports:[e.BQ,e.BQ]}),me})()},4144:(ke,J,p)=>{"use strict";p.d(J,{Jk:()=>w,Nt:()=>re,c:()=>ie});var t=p(1281),e=p(3353),f=p(4650),C=p(515),a=p(7579);const M=(0,e.i$)({passive:!0});let d=(()=>{class ce{constructor(ne,le){this._platform=ne,this._ngZone=le,this._monitoredElements=new Map}monitor(ne){if(!this._platform.isBrowser)return C.E;const le=(0,t.fI)(ne),ee=this._monitoredElements.get(le);if(ee)return ee.subject;const pe=new a.x,S="cdk-text-field-autofilled",i=r=>{"cdk-text-field-autofill-start"!==r.animationName||le.classList.contains(S)?"cdk-text-field-autofill-end"===r.animationName&&le.classList.contains(S)&&(le.classList.remove(S),this._ngZone.run(()=>pe.next({target:r.target,isAutofilled:!1}))):(le.classList.add(S),this._ngZone.run(()=>pe.next({target:r.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{le.addEventListener("animationstart",i,M),le.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(le,{subject:pe,unlisten:()=>{le.removeEventListener("animationstart",i,M)}}),pe}stopMonitoring(ne){const le=(0,t.fI)(ne),ee=this._monitoredElements.get(le);ee&&(ee.unlisten(),ee.subject.complete(),le.classList.remove("cdk-text-field-autofill-monitored"),le.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(le))}ngOnDestroy(){this._monitoredElements.forEach((ne,le)=>this.stopMonitoring(le))}}return ce.\u0275fac=function(ne){return new(ne||ce)(f.LFG(e.t4),f.LFG(f.R0b))},ce.\u0275prov=f.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),I=(()=>{class ce{}return ce.\u0275fac=function(ne){return new(ne||ce)},ce.\u0275mod=f.oAB({type:ce}),ce.\u0275inj=f.cJS({}),ce})();var E=p(4006),L=p(3238),T=p(9549);const w=new f.OlP("MAT_INPUT_VALUE_ACCESSOR"),G=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let K=0;const Q=(0,L.FD)(class{constructor(ce,ae,ne,le){this._defaultErrorStateMatcher=ce,this._parentForm=ae,this._parentFormGroup=ne,this.ngControl=le,this.stateChanges=new a.x}});let re=(()=>{class ce extends Q{constructor(ne,le,ee,pe,S,i,r,u,l,y){super(i,pe,S,ee),this._elementRef=ne,this._platform=le,this._autofillMonitor=u,this._formField=y,this._uid="mat-input-"+K++,this.focused=!1,this.stateChanges=new a.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(b=>(0,e.qK)().has(b)),this._iOSKeyupListener=b=>{const n=b.target;!n.value&&0===n.selectionStart&&0===n.selectionEnd&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};const D=this._elementRef.nativeElement,k=D.nodeName.toLowerCase();this._inputValueAccessor=r||D,this._previousNativeValue=this.value,this.id=this.id,le.IOS&&l.runOutsideAngular(()=>{ne.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===k,this._isTextarea="textarea"===k,this._isInFormField=!!y,this._isNativeSelect&&(this.controlType=D.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(ne){this._disabled=(0,t.Ig)(ne),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(ne){this._id=ne||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(E.kI.required)??!1}set required(ne){this._required=(0,t.Ig)(ne)}get type(){return this._type}set type(ne){this._type=ne||"text",this._validateType(),!this._isTextarea&&(0,e.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(ne){ne!==this.value&&(this._inputValueAccessor.value=ne,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(ne){this._readonly=(0,t.Ig)(ne)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(ne=>{this.autofilled=ne.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(ne){this._elementRef.nativeElement.focus(ne)}_focusChanged(ne){ne!==this.focused&&(this.focused=ne,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const ne=this._formField,le=ne&&"legacy"===ne.appearance&&!ne._hasLabel?.()?null:this.placeholder;if(le!==this._previousPlaceholder){const ee=this._elementRef.nativeElement;this._previousPlaceholder=le,le?ee.setAttribute("placeholder",le):ee.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const ne=this._elementRef.nativeElement.value;this._previousNativeValue!==ne&&(this._previousNativeValue=ne,this.stateChanges.next())}_validateType(){G.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let ne=this._elementRef.nativeElement.validity;return ne&&ne.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const ne=this._elementRef.nativeElement,le=ne.options[0];return this.focused||ne.multiple||!this.empty||!!(ne.selectedIndex>-1&&le&&le.label)}return this.focused||!this.empty}setDescribedByIds(ne){ne.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ne.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const ne=this._elementRef.nativeElement;return this._isNativeSelect&&(ne.multiple||ne.size>1)}}return ce.\u0275fac=function(ne){return new(ne||ce)(f.Y36(f.SBq),f.Y36(e.t4),f.Y36(E.a5,10),f.Y36(E.F,8),f.Y36(E.sg,8),f.Y36(L.rD),f.Y36(w,10),f.Y36(d),f.Y36(f.R0b),f.Y36(T.G_,8))},ce.\u0275dir=f.lG2({type:ce,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(ne,le){1&ne&&f.NdJ("focus",function(){return le._focusChanged(!0)})("blur",function(){return le._focusChanged(!1)})("input",function(){return le._onInput()}),2&ne&&(f.Ikx("disabled",le.disabled)("required",le.required),f.uIk("id",le.id)("data-placeholder",le.placeholder)("name",le.name||null)("readonly",le.readonly&&!le._isNativeSelect||null)("aria-invalid",le.empty&&le.required?null:le.errorState)("aria-required",le.required),f.ekj("mat-input-server",le._isServer)("mat-native-select-inline",le._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[f._Bn([{provide:T.Eo,useExisting:ce}]),f.qOj,f.TTD]}),ce})(),ie=(()=>{class ce{}return ce.\u0275fac=function(ne){return new(ne||ce)},ce.\u0275mod=f.oAB({type:ce}),ce.\u0275inj=f.cJS({providers:[L.rD],imports:[I,T.lN,L.BQ,I,T.lN]}),ce})()},6338:(ke,J,p)=>{"use strict";p.d(J,{Tg:()=>u,i$:()=>pe,ie:()=>_});var t=p(6895),e=p(4650),f=p(3238),C=p(1281),a=p(7579),M=p(2722),L=(p(8675),p(4761),p(5017),p(9521),p(4006),p(4850));const T=["*"],w=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],G=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],ce=(0,f.Id)((0,f.Kr)(class{})),ae=(0,f.Kr)(class{}),ne=new e.OlP("MatList"),le=new e.OlP("MatNavList");let pe=(()=>{class W extends ce{constructor(U){super(),this._elementRef=U,this._stateChanges=new a.x,"action-list"===this._getListType()&&(U.nativeElement.classList.add("mat-action-list"),U.nativeElement.setAttribute("role","group"))}_getListType(){const U=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===U?"list":"mat-action-list"===U?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return W.\u0275fac=function(U){return new(U||W)(e.Y36(e.SBq))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[e._Bn([{provide:ne,useExisting:W}]),e.qOj,e.TTD],ngContentSelectors:T,decls:1,vars:0,template:function(U,me){1&U&&(e.F$t(),e.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),W})(),S=(()=>{class W{}return W.\u0275fac=function(U){return new(U||W)},W.\u0275dir=e.lG2({type:W,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),W})(),i=(()=>{class W{}return W.\u0275fac=function(U){return new(U||W)},W.\u0275dir=e.lG2({type:W,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),W})(),u=(()=>{class W extends ae{constructor(U,me,nt,Pe){super(),this._element=U,this._isInteractiveList=!1,this._destroyed=new a.x,this._disabled=!1,this._isInteractiveList=!!(nt||Pe&&"action-list"===Pe._getListType()),this._list=nt||Pe;const Oe=this._getHostElement();"button"===Oe.nodeName.toLowerCase()&&!Oe.hasAttribute("type")&&Oe.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,M.R)(this._destroyed)).subscribe(()=>{me.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(U){this._disabled=(0,C.Ig)(U)}ngAfterContentInit(){(0,f.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return W.\u0275fac=function(U){return new(U||W)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(le,8),e.Y36(ne,8))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(U,me,nt){if(1&U&&(e.Suo(nt,S,5),e.Suo(nt,i,5),e.Suo(nt,f.X2,5)),2&U){let Pe;e.iGM(Pe=e.CRH())&&(me._avatar=Pe.first),e.iGM(Pe=e.CRH())&&(me._icon=Pe.first),e.iGM(Pe=e.CRH())&&(me._lines=Pe)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(U,me){2&U&&e.ekj("mat-list-item-disabled",me.disabled)("mat-list-item-with-avatar",me._avatar||me._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[e.qOj],ngContentSelectors:G,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(U,me){1&U&&(e.F$t(w),e.TgZ(0,"span",0),e._UZ(1,"span",1),e.Hsn(2),e.TgZ(3,"span",2),e.Hsn(4,1),e.qZA(),e.Hsn(5,2),e.qZA()),2&U&&(e.xp6(1),e.Q6J("matRippleTrigger",me._getHostElement())("matRippleDisabled",me._isRippleDisabled()))},dependencies:[f.wG],encapsulation:2,changeDetection:0}),W})(),_=(()=>{class W{}return W.\u0275fac=function(U){return new(U||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[f.uc,f.si,f.BQ,f.us,t.ez,f.uc,f.BQ,f.us,L.t]}),W})()},8255:(ke,J,p)=>{"use strict";p.d(J,{OP:()=>P,Tx:()=>Ee,VK:()=>Oe,p6:()=>ut});var t=p(4761),e=p(1281),f=p(9521),C=p(4650),a=p(7579),M=p(727),d=p(6451),R=p(9646),h=p(3101),I=p(8675),E=p(3900),L=p(5698),T=p(2722),N=p(9300),w=p(4086),G=p(7340),K=p(4080),Q=p(6895),re=p(3238),ie=p(445),ce=p(8184),ae=p(3353),ne=p(531);const le=["mat-menu-item",""];function ee(ye,he){1&ye&&(C.O4$(),C.TgZ(0,"svg",2),C._UZ(1,"polygon",3),C.qZA())}const pe=["*"];function S(ye,he){if(1&ye){const de=C.EpF();C.TgZ(0,"div",0),C.NdJ("keydown",function(Y){C.CHM(de);const j=C.oxw();return C.KtG(j._handleKeydown(Y))})("click",function(){C.CHM(de);const Y=C.oxw();return C.KtG(Y.closed.emit("click"))})("@transformMenu.start",function(Y){C.CHM(de);const j=C.oxw();return C.KtG(j._onAnimationStart(Y))})("@transformMenu.done",function(Y){C.CHM(de);const j=C.oxw();return C.KtG(j._onAnimationDone(Y))}),C.TgZ(1,"div",1),C.Hsn(2),C.qZA()()}if(2&ye){const de=C.oxw();C.Q6J("id",de.panelId)("ngClass",de._classList)("@transformMenu",de._panelAnimationState),C.uIk("aria-label",de.ariaLabel||null)("aria-labelledby",de.ariaLabelledby||null)("aria-describedby",de.ariaDescribedby||null)}}const i={transformMenu:(0,G.X$)("transformMenu",[(0,G.SB)("void",(0,G.oB)({opacity:0,transform:"scale(0.8)"})),(0,G.eR)("void => enter",(0,G.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,G.oB)({opacity:1,transform:"scale(1)"}))),(0,G.eR)("* => void",(0,G.jt)("100ms 25ms linear",(0,G.oB)({opacity:0})))]),fadeInItems:(0,G.X$)("fadeInItems",[(0,G.SB)("showing",(0,G.oB)({opacity:1})),(0,G.eR)("void => *",[(0,G.oB)({opacity:0}),(0,G.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},l=new C.OlP("MatMenuContent"),_=new C.OlP("MAT_MENU_PANEL"),W=(0,re.Kr)((0,re.Id)(class{}));let P=(()=>{class ye extends W{constructor(de,we,Y,j,Ce){super(),this._elementRef=de,this._document=we,this._focusMonitor=Y,this._parentMenu=j,this._changeDetectorRef=Ce,this.role="menuitem",this._hovered=new a.x,this._focused=new a.x,this._highlighted=!1,this._triggersSubmenu=!1,j?.addItem?.(this)}focus(de,we){this._focusMonitor&&de?this._focusMonitor.focusVia(this._getHostElement(),de,we):this._getHostElement().focus(we),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(de){this.disabled&&(de.preventDefault(),de.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const de=this._elementRef.nativeElement.cloneNode(!0),we=de.querySelectorAll("mat-icon, .material-icons");for(let Y=0;Y<we.length;Y++)we[Y].remove();return de.textContent?.trim()||""}_setHighlighted(de){this._highlighted=de,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return ye.\u0275fac=function(de){return new(de||ye)(C.Y36(C.SBq),C.Y36(Q.K0),C.Y36(t.tE),C.Y36(_,8),C.Y36(C.sBO))},ye.\u0275cmp=C.Xpm({type:ye,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(de,we){1&de&&C.NdJ("click",function(j){return we._checkDisabled(j)})("mouseenter",function(){return we._handleMouseEnter()}),2&de&&(C.uIk("role",we.role)("tabindex",we._getTabIndex())("aria-disabled",we.disabled.toString())("disabled",we.disabled||null),C.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",we._highlighted)("mat-menu-item-submenu-trigger",we._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[C.qOj],attrs:le,ngContentSelectors:pe,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(de,we){1&de&&(C.F$t(),C.Hsn(0),C._UZ(1,"div",0),C.YNc(2,ee,2,0,"svg",1)),2&de&&(C.xp6(1),C.Q6J("matRippleDisabled",we.disableRipple||we.disabled)("matRippleTrigger",we._getHostElement()),C.xp6(1),C.Q6J("ngIf",we._triggersSubmenu))},dependencies:[Q.O5,re.wG],encapsulation:2,changeDetection:0}),ye})();const U=new C.OlP("mat-menu-default-options",{providedIn:"root",factory:function me(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let nt=0,Pe=(()=>{class ye{constructor(de,we,Y,j){this._elementRef=de,this._ngZone=we,this._defaultOptions=Y,this._changeDetectorRef=j,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new C.n_E,this._tabSubscription=M.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new C.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+nt++}get xPosition(){return this._xPosition}set xPosition(de){this._xPosition=de,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(de){this._yPosition=de,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(de){this._overlapTrigger=(0,e.Ig)(de)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(de){this._hasBackdrop=(0,e.Ig)(de)}set panelClass(de){const we=this._previousPanelClass;we&&we.length&&we.split(" ").forEach(Y=>{this._classList[Y]=!1}),this._previousPanelClass=de,de&&de.length&&(de.split(" ").forEach(Y=>{this._classList[Y]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(de){this.panelClass=de}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new t.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,I.O)(this._directDescendantItems),(0,E.w)(de=>(0,d.T)(...de.map(we=>we._focused)))).subscribe(de=>this._keyManager.updateActiveItem(de)),this._directDescendantItems.changes.subscribe(de=>{const we=this._keyManager;if("enter"===this._panelAnimationState&&we.activeItem?._hasFocus()){const Y=de.toArray(),j=Math.max(0,Math.min(Y.length-1,we.activeItemIndex||0));Y[j]&&!Y[j].disabled?we.setActiveItem(j):we.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,I.O)(this._directDescendantItems),(0,E.w)(we=>(0,d.T)(...we.map(Y=>Y._hovered))))}addItem(de){}removeItem(de){}_handleKeydown(de){const we=de.keyCode,Y=this._keyManager;switch(we){case f.hY:(0,f.Vb)(de)||(de.preventDefault(),this.closed.emit("keydown"));break;case f.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case f.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(we===f.LH||we===f.JH)&&Y.setFocusOrigin("keyboard"),void Y.onKeydown(de)}de.stopPropagation()}focusFirstItem(de="program"){this._ngZone.onStable.pipe((0,L.q)(1)).subscribe(()=>{let we=null;if(this._directDescendantItems.length&&(we=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!we||!we.contains(document.activeElement)){const Y=this._keyManager;Y.setFocusOrigin(de).setFirstItemActive(),!Y.activeItem&&we&&we.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(de){const we=Math.min(this._baseElevation+de,24),Y=`${this._elevationPrefix}${we}`,j=Object.keys(this._classList).find(Ce=>Ce.startsWith(this._elevationPrefix));(!j||j===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[Y]=!0,this._previousElevation=Y)}setPositionClasses(de=this.xPosition,we=this.yPosition){const Y=this._classList;Y["mat-menu-before"]="before"===de,Y["mat-menu-after"]="after"===de,Y["mat-menu-above"]="above"===we,Y["mat-menu-below"]="below"===we,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(de){this._animationDone.next(de),this._isAnimating=!1}_onAnimationStart(de){this._isAnimating=!0,"enter"===de.toState&&0===this._keyManager.activeItemIndex&&(de.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,I.O)(this._allItems)).subscribe(de=>{this._directDescendantItems.reset(de.filter(we=>we._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ye.\u0275fac=function(de){return new(de||ye)(C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(U),C.Y36(C.sBO))},ye.\u0275dir=C.lG2({type:ye,contentQueries:function(de,we,Y){if(1&de&&(C.Suo(Y,l,5),C.Suo(Y,P,5),C.Suo(Y,P,4)),2&de){let j;C.iGM(j=C.CRH())&&(we.lazyContent=j.first),C.iGM(j=C.CRH())&&(we._allItems=j),C.iGM(j=C.CRH())&&(we.items=j)}},viewQuery:function(de,we){if(1&de&&C.Gf(C.Rgc,5),2&de){let Y;C.iGM(Y=C.CRH())&&(we.templateRef=Y.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),ye})(),Oe=(()=>{class ye extends Pe{constructor(de,we,Y,j){super(de,we,Y,j),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ye.\u0275fac=function(de){return new(de||ye)(C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(U),C.Y36(C.sBO))},ye.\u0275cmp=C.Xpm({type:ye,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(de,we){2&de&&C.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[C._Bn([{provide:_,useExisting:ye}]),C.qOj],ngContentSelectors:pe,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(de,we){1&de&&(C.F$t(),C.YNc(0,S,3,6,"ng-template"))},dependencies:[Q.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[i.transformMenu,i.fadeInItems]},changeDetection:0}),ye})();const De=new C.OlP("mat-menu-scroll-strategy"),ve={provide:De,deps:[ce.aV],useFactory:function ue(ye){return()=>ye.scrollStrategies.reposition()}},$=(0,ae.i$)({passive:!0});let Ge=(()=>{class ye{constructor(de,we,Y,j,Ce,Se,X,Ye,Le){this._overlay=de,this._element=we,this._viewContainerRef=Y,this._menuItemInstance=Se,this._dir=X,this._focusMonitor=Ye,this._ngZone=Le,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=M.w0.EMPTY,this._hoverSubscription=M.w0.EMPTY,this._menuCloseSubscription=M.w0.EMPTY,this._handleTouchStart=gt=>{(0,t.yG)(gt)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new C.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new C.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=j,this._parentMaterialMenu=Ce instanceof Pe?Ce:void 0,we.nativeElement.addEventListener("touchstart",this._handleTouchStart,$),Se&&(Se._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(de){this.menu=de}get menu(){return this._menu}set menu(de){de!==this._menu&&(this._menu=de,this._menuCloseSubscription.unsubscribe(),de&&(this._menuCloseSubscription=de.close.subscribe(we=>{this._destroyMenu(we),("click"===we||"tab"===we)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(we)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,$),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const de=this.menu;if(this._menuOpen||!de)return;const we=this._createOverlay(de),Y=we.getConfig(),j=Y.positionStrategy;this._setPosition(de,j),Y.hasBackdrop=de.hasBackdrop??!this.triggersSubmenu(),we.attach(this._getPortal(de)),de.lazyContent&&de.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(de),de instanceof Pe&&(de._startAnimation(),de._directDescendantItems.changes.pipe((0,T.R)(de.close)).subscribe(()=>{j.withLockedPosition(!1).reapplyLastPosition(),j.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(de,we){this._focusMonitor&&de?this._focusMonitor.focusVia(this._element,de,we):this._element.nativeElement.focus(we)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(de){if(!this._overlayRef||!this.menuOpen)return;const we=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===de||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,we instanceof Pe?(we._resetAnimation(),we.lazyContent?we._animationDone.pipe((0,N.h)(Y=>"void"===Y.toState),(0,L.q)(1),(0,T.R)(we.lazyContent._attached)).subscribe({next:()=>we.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),we?.lazyContent?.detach())}_initMenu(de){de.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,de.direction=this.dir,this._setMenuElevation(de),de.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(de){if(de.setElevation){let we=0,Y=de.parentMenu;for(;Y;)we++,Y=Y.parentMenu;de.setElevation(we)}}_setIsMenuOpen(de){this._menuOpen=de,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(de)}_createOverlay(de){if(!this._overlayRef){const we=this._getOverlayConfig(de);this._subscribeToPositions(de,we.positionStrategy),this._overlayRef=this._overlay.create(we),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(de){return new ce.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:de.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:de.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(de,we){de.setPositionClasses&&we.positionChanges.subscribe(Y=>{const j="start"===Y.connectionPair.overlayX?"after":"before",Ce="top"===Y.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>de.setPositionClasses(j,Ce)):de.setPositionClasses(j,Ce)})}_setPosition(de,we){let[Y,j]="before"===de.xPosition?["end","start"]:["start","end"],[Ce,Se]="above"===de.yPosition?["bottom","top"]:["top","bottom"],[X,Ye]=[Ce,Se],[Le,gt]=[Y,j],Wt=0;if(this.triggersSubmenu()){if(gt=Y="before"===de.xPosition?"start":"end",j=Le="end"===Y?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const Rt=this._parentMaterialMenu.items.first;this._parentInnerPadding=Rt?Rt._getHostElement().offsetTop:0}Wt="bottom"===Ce?this._parentInnerPadding:-this._parentInnerPadding}}else de.overlapTrigger||(X="top"===Ce?"bottom":"top",Ye="top"===Se?"bottom":"top");we.withPositions([{originX:Y,originY:X,overlayX:Le,overlayY:Ce,offsetY:Wt},{originX:j,originY:X,overlayX:gt,overlayY:Ce,offsetY:Wt},{originX:Y,originY:Ye,overlayX:Le,overlayY:Se,offsetY:-Wt},{originX:j,originY:Ye,overlayX:gt,overlayY:Se,offsetY:-Wt}])}_menuClosingActions(){const de=this._overlayRef.backdropClick(),we=this._overlayRef.detachments(),Y=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,R.of)(),j=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,N.h)(Ce=>Ce!==this._menuItemInstance),(0,N.h)(()=>this._menuOpen)):(0,R.of)();return(0,d.T)(de,Y,j,we)}_handleMousedown(de){(0,t.X6)(de)||(this._openedBy=0===de.button?"mouse":void 0,this.triggersSubmenu()&&de.preventDefault())}_handleKeydown(de){const we=de.keyCode;(we===f.K5||we===f.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(we===f.SV&&"ltr"===this.dir||we===f.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(de){this.triggersSubmenu()?(de.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,N.h)(de=>de===this._menuItemInstance&&!de.disabled),(0,w.g)(0,h.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Pe&&this.menu._isAnimating?this.menu._animationDone.pipe((0,L.q)(1),(0,w.g)(0,h.E),(0,T.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(de){return(!this._portal||this._portal.templateRef!==de.templateRef)&&(this._portal=new K.UE(de.templateRef,this._viewContainerRef)),this._portal}}return ye.\u0275fac=function(de){return new(de||ye)(C.Y36(ce.aV),C.Y36(C.SBq),C.Y36(C.s_b),C.Y36(De),C.Y36(_,8),C.Y36(P,10),C.Y36(ie.Is,8),C.Y36(t.tE),C.Y36(C.R0b))},ye.\u0275dir=C.lG2({type:ye,hostVars:3,hostBindings:function(de,we){1&de&&C.NdJ("click",function(j){return we._handleClick(j)})("mousedown",function(j){return we._handleMousedown(j)})("keydown",function(j){return we._handleKeydown(j)}),2&de&&C.uIk("aria-haspopup",we.menu?"menu":null)("aria-expanded",we.menuOpen||null)("aria-controls",we.menuOpen?we.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),ye})(),ut=(()=>{class ye extends Ge{}return ye.\u0275fac=function(){let he;return function(we){return(he||(he=C.n5z(ye)))(we||ye)}}(),ye.\u0275dir=C.lG2({type:ye,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[C.qOj]}),ye})(),Ee=(()=>{class ye{}return ye.\u0275fac=function(de){return new(de||ye)},ye.\u0275mod=C.oAB({type:ye}),ye.\u0275inj=C.cJS({providers:[ve],imports:[Q.ez,re.BQ,re.si,ce.U8,ne.ZD,re.BQ]}),ye})()},8739:(ke,J,p)=>{"use strict";p.d(J,{NW:()=>le,TU:()=>ee,ye:()=>G});var t=p(6895),e=p(4650),f=p(3238),C=p(4859),a=p(4385),M=p(266),d=p(1281),R=p(7579),h=p(9549);function I(pe,S){if(1&pe&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&pe){const i=S.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i," ")}}function E(pe,S){if(1&pe){const i=e.EpF();e.TgZ(0,"mat-form-field",16)(1,"mat-select",17),e.NdJ("selectionChange",function(u){e.CHM(i);const l=e.oxw(2);return e.KtG(l._changePageSize(u.value))}),e.YNc(2,I,2,2,"mat-option",18),e.qZA()()}if(2&pe){const i=e.oxw(2);e.Q6J("appearance",i._formFieldAppearance)("color",i.color),e.xp6(1),e.Q6J("value",i.pageSize)("disabled",i.disabled)("panelClass",i.selectConfig.panelClass||"")("disableOptionCentering",i.selectConfig.disableOptionCentering)("aria-label",i._intl.itemsPerPageLabel),e.xp6(1),e.Q6J("ngForOf",i._displayedPageSizeOptions)}}function L(pe,S){if(1&pe&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&pe){const i=e.oxw(2);e.xp6(1),e.Oqu(i.pageSize)}}function T(pe,S){if(1&pe&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,E,3,8,"mat-form-field",14),e.YNc(4,L,2,1,"div",15),e.qZA()),2&pe){const i=e.oxw();e.xp6(2),e.hij(" ",i._intl.itemsPerPageLabel," "),e.xp6(1),e.Q6J("ngIf",i._displayedPageSizeOptions.length>1),e.xp6(1),e.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function N(pe,S){if(1&pe){const i=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){e.CHM(i);const u=e.oxw();return e.KtG(u.firstPage())}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",22),e.qZA()()}if(2&pe){const i=e.oxw();e.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),e.uIk("aria-label",i._intl.firstPageLabel)}}function w(pe,S){if(1&pe){const i=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(i);const u=e.oxw();return e.KtG(u.lastPage())}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",24),e.qZA()()}if(2&pe){const i=e.oxw();e.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),e.uIk("aria-label",i._intl.lastPageLabel)}}let G=(()=>{class pe{constructor(){this.changes=new R.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(i,r,u)=>{if(0==u||0==r)return`0 of ${u}`;const l=i*r;return`${l+1} \u2013 ${l<(u=Math.max(u,0))?Math.min(l+r,u):l+r} of ${u}`}}}return pe.\u0275fac=function(i){return new(i||pe)},pe.\u0275prov=e.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const Q={provide:G,deps:[[new e.FiY,new e.tp0,G]],useFactory:function K(pe){return pe||new G}},ce=new e.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),ae=(0,f.Id)((0,f.dB)(class{}));let ne=(()=>{class pe extends ae{constructor(i,r,u){if(super(),this._intl=i,this._changeDetectorRef=r,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new e.vpe,this._intlChanges=i.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),u){const{pageSize:l,pageSizeOptions:y,hidePageSize:D,showFirstLastButtons:k}=u;null!=l&&(this._pageSize=l),null!=y&&(this._pageSizeOptions=y),null!=D&&(this._hidePageSize=D),null!=k&&(this._showFirstLastButtons=k)}}get pageIndex(){return this._pageIndex}set pageIndex(i){this._pageIndex=Math.max((0,d.su)(i),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(i){this._length=(0,d.su)(i),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(i){this._pageSize=Math.max((0,d.su)(i),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(i){this._pageSizeOptions=(i||[]).map(r=>(0,d.su)(r)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(i){this._hidePageSize=(0,d.Ig)(i)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(i){this._showFirstLastButtons=(0,d.Ig)(i)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(i)}previousPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(i)}firstPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=0,this._emitPageEvent(i)}lastPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(i)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const i=this.getNumberOfPages()-1;return this.pageIndex<i&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(i){const u=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/i)||0,this.pageSize=i,this._emitPageEvent(u)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){!this._initialized||(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((i,r)=>i-r),this._changeDetectorRef.markForCheck())}_emitPageEvent(i){this.page.emit({previousPageIndex:i,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return pe.\u0275fac=function(i){e.$Z()},pe.\u0275dir=e.lG2({type:pe,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[e.qOj]}),pe})(),le=(()=>{class pe extends ne{constructor(i,r,u){super(i,r,u),u&&null!=u.formFieldAppearance&&(this._formFieldAppearance=u.formFieldAppearance)}}return pe.\u0275fac=function(i){return new(i||pe)(e.Y36(G),e.Y36(e.sBO),e.Y36(ce,8))},pe.\u0275cmp=e.Xpm({type:pe,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[e.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,r){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,T,5,3,"div",2),e.TgZ(3,"div",3)(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,N,3,5,"button",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return r.previousPage()}),e.O4$(),e.TgZ(8,"svg",7),e._UZ(9,"path",8),e.qZA()(),e.kcU(),e.TgZ(10,"button",9),e.NdJ("click",function(){return r.nextPage()}),e.O4$(),e.TgZ(11,"svg",7),e._UZ(12,"path",10),e.qZA()(),e.YNc(13,w,3,5,"button",11),e.qZA()()()),2&i&&(e.xp6(2),e.Q6J("ngIf",!r.hidePageSize),e.xp6(3),e.hij(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),e.xp6(1),e.Q6J("ngIf",r.showFirstLastButtons),e.xp6(1),e.Q6J("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),e.uIk("aria-label",r._intl.previousPageLabel),e.xp6(3),e.Q6J("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),e.uIk("aria-label",r._intl.nextPageLabel),e.xp6(3),e.Q6J("ngIf",r.showFirstLastButtons))},dependencies:[t.sg,t.O5,C.lW,h.KE,a.gD,f.ey,M.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),pe})(),ee=(()=>{class pe{}return pe.\u0275fac=function(i){return new(i||pe)},pe.\u0275mod=e.oAB({type:pe}),pe.\u0275inj=e.cJS({providers:[Q],imports:[t.ez,C.ot,a.LD,M.AV,f.BQ]}),pe})()},3162:(ke,J,p)=>{"use strict";p.d(J,{Cv:()=>G,pW:()=>N});var t=p(4650),e=p(6895),f=p(3238),C=p(1281),a=p(727),M=p(4968),d=p(9300);const R=["primaryValueBar"],h=(0,f.pj)(class{constructor(K){this._elementRef=K}},"primary"),I=new t.OlP("mat-progress-bar-location",{providedIn:"root",factory:function E(){const K=(0,t.f3M)(e.K0),Q=K?K.location:null;return{getPathname:()=>Q?Q.pathname+Q.search:""}}}),L=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let T=0,N=(()=>{class K extends h{constructor(re,ie,ce,ae,ne,le){super(re),this._ngZone=ie,this._animationMode=ce,this._changeDetectorRef=le,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new t.vpe,this._animationEndSubscription=a.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+T++;const ee=ae?ae.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${ee}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===ce,ne&&(ne.color&&(this.color=this.defaultColor=ne.color),this.mode=ne.mode||this.mode)}get value(){return this._value}set value(re){this._value=w((0,C.su)(re)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(re){this._bufferValue=w(re||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const re=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,M.R)(re,"transitionend").pipe((0,d.h)(ie=>ie.target===re)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return K.\u0275fac=function(re){return new(re||K)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.QbO,8),t.Y36(I,8),t.Y36(L,8),t.Y36(t.sBO))},K.\u0275cmp=t.Xpm({type:K,selectors:[["mat-progress-bar"]],viewQuery:function(re,ie){if(1&re&&t.Gf(R,5),2&re){let ce;t.iGM(ce=t.CRH())&&(ie._primaryValueBar=ce.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(re,ie){2&re&&(t.uIk("aria-valuenow","indeterminate"===ie.mode||"query"===ie.mode?null:ie.value)("mode",ie.mode),t.ekj("_mat-animation-noopable",ie._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(re,ie){1&re&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),t._UZ(4,"circle",3),t.qZA()(),t._UZ(5,"rect",4),t.qZA(),t.kcU(),t._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),t.qZA()),2&re&&(t.xp6(3),t.Q6J("id",ie.progressbarId),t.xp6(2),t.uIk("fill",ie._rectangleFillValue),t.xp6(1),t.Q6J("ngStyle",ie._bufferTransform()),t.xp6(1),t.Q6J("ngStyle",ie._primaryTransform()))},dependencies:[e.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),K})();function w(K,Q=0,re=100){return Math.max(Q,Math.min(re,K))}let G=(()=>{class K{}return K.\u0275fac=function(re){return new(re||K)},K.\u0275mod=t.oAB({type:K}),K.\u0275inj=t.cJS({imports:[e.ez,f.BQ,f.BQ]}),K})()},1572:(ke,J,p)=>{"use strict";p.d(J,{Cq:()=>K,Ou:()=>G});var t=p(1281),e=p(3353),f=p(531),C=p(6895),a=p(4650),M=p(3238),d=p(727);function R(re,ie){if(1&re&&(a.O4$(),a._UZ(0,"circle",4)),2&re){const ce=a.oxw(),ae=a.MAs(1);a.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+ce._spinnerAnimationLabel)("stroke-dashoffset",ce._getStrokeDashOffset(),"px")("stroke-dasharray",ce._getStrokeCircumference(),"px")("stroke-width",ce._getCircleStrokeWidth(),"%")("transform-origin",ce._getCircleTransformOrigin(ae)),a.uIk("r",ce._getCircleRadius())}}function h(re,ie){if(1&re&&(a.O4$(),a._UZ(0,"circle",4)),2&re){const ce=a.oxw(),ae=a.MAs(1);a.Udp("stroke-dashoffset",ce._getStrokeDashOffset(),"px")("stroke-dasharray",ce._getStrokeCircumference(),"px")("stroke-width",ce._getCircleStrokeWidth(),"%")("transform-origin",ce._getCircleTransformOrigin(ae)),a.uIk("r",ce._getCircleRadius())}}const L=(0,M.pj)(class{constructor(re){this._elementRef=re}},"primary"),T=new a.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function N(){return{diameter:100}}});class G extends L{constructor(ie,ce,ae,ne,le,ee,pe,S){super(ie),this._document=ae,this._diameter=100,this._value=0,this._resizeSubscription=d.w0.EMPTY,this.mode="determinate";const i=G._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),i.has(ae.head)||i.set(ae.head,new Set([100])),this._noopAnimations="NoopAnimations"===ne&&!!le&&!le._forceAnimations,"mat-spinner"===ie.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),le&&(le.color&&(this.color=this.defaultColor=le.color),le.diameter&&(this.diameter=le.diameter),le.strokeWidth&&(this.strokeWidth=le.strokeWidth)),ce.isBrowser&&ce.SAFARI&&pe&&ee&&S&&(this._resizeSubscription=pe.change(150).subscribe(()=>{"indeterminate"===this.mode&&S.run(()=>ee.markForCheck())}))}get diameter(){return this._diameter}set diameter(ie){this._diameter=(0,t.su)(ie),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(ie){this._strokeWidth=(0,t.su)(ie)}get value(){return"determinate"===this.mode?this._value:0}set value(ie){this._value=Math.max(0,Math.min(100,(0,t.su)(ie)))}ngOnInit(){const ie=this._elementRef.nativeElement;this._styleRoot=(0,e.kV)(ie)||this._document.head,this._attachStyleNode(),ie.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const ie=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${ie} ${ie}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(ie){const ce=50*(ie.currentScale??1);return`${ce}% ${ce}%`}_attachStyleNode(){const ie=this._styleRoot,ce=this._diameter,ae=G._diameters;let ne=ae.get(ie);if(!ne||!ne.has(ce)){const le=this._document.createElement("style");le.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),le.textContent=this._getAnimationText(),ie.appendChild(le),ne||(ne=new Set,ae.set(ie,ne)),ne.add(ce)}}_getAnimationText(){const ie=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*ie).replace(/END_VALUE/g,""+.2*ie).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}G._diameters=new WeakMap,G.\u0275fac=function(ie){return new(ie||G)(a.Y36(a.SBq),a.Y36(e.t4),a.Y36(C.K0,8),a.Y36(a.QbO,8),a.Y36(T),a.Y36(a.sBO),a.Y36(f.rL),a.Y36(a.R0b))},G.\u0275cmp=a.Xpm({type:G,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(ie,ce){2&ie&&(a.uIk("aria-valuemin","determinate"===ce.mode?0:null)("aria-valuemax","determinate"===ce.mode?100:null)("aria-valuenow","determinate"===ce.mode?ce.value:null)("mode",ce.mode),a.Udp("width",ce.diameter,"px")("height",ce.diameter,"px"),a.ekj("_mat-animation-noopable",ce._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[a.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(ie,ce){1&ie&&(a.O4$(),a.TgZ(0,"svg",0,1),a.YNc(2,R,1,11,"circle",2),a.YNc(3,h,1,9,"circle",3),a.qZA()),2&ie&&(a.Udp("width",ce.diameter,"px")("height",ce.diameter,"px"),a.Q6J("ngSwitch","indeterminate"===ce.mode),a.uIk("viewBox",ce._getViewBox()),a.xp6(2),a.Q6J("ngSwitchCase",!0),a.xp6(1),a.Q6J("ngSwitchCase",!1))},dependencies:[C.RF,C.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let K=(()=>{class re{}return re.\u0275fac=function(ce){return new(ce||re)},re.\u0275mod=a.oAB({type:re}),re.\u0275inj=a.cJS({imports:[M.BQ,C.ez,M.BQ]}),re})()},1948:(ke,J,p)=>{"use strict";p.d(J,{Fk:()=>ae,U0:()=>ce,VQ:()=>K});var t=p(4650),e=p(3238),f=p(4761),C=p(1281),a=p(5017),M=p(4006);const d=["input"],R=function(ne){return{enterDuration:ne}},h=["*"],I=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function E(){return{color:"accent"}}});let L=0;const T={provide:M.JU,useExisting:(0,t.Gpc)(()=>K),multi:!0};class N{constructor(le,ee){this.source=le,this.value=ee}}const w=new t.OlP("MatRadioGroup");let G=(()=>{class ne{constructor(ee){this._changeDetector=ee,this._value=null,this._name="mat-radio-group-"+L++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new t.vpe}get name(){return this._name}set name(ee){this._name=ee,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ee){this._labelPosition="before"===ee?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ee){this._value!==ee&&(this._value=ee,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ee){this._selected=ee,this.value=ee?ee.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ee){this._disabled=(0,C.Ig)(ee),this._markRadiosForCheck()}get required(){return this._required}set required(ee){this._required=(0,C.Ig)(ee),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ee=>{ee.name=this.name,ee._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(pe=>{pe.checked=this.value===pe.value,pe.checked&&(this._selected=pe)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new N(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ee=>ee._markForCheck())}writeValue(ee){this.value=ee,this._changeDetector.markForCheck()}registerOnChange(ee){this._controlValueAccessorChangeFn=ee}registerOnTouched(ee){this.onTouched=ee}setDisabledState(ee){this.disabled=ee,this._changeDetector.markForCheck()}}return ne.\u0275fac=function(ee){return new(ee||ne)(t.Y36(t.sBO))},ne.\u0275dir=t.lG2({type:ne,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),ne})(),K=(()=>{class ne extends G{}return ne.\u0275fac=function(){let le;return function(pe){return(le||(le=t.n5z(ne)))(pe||ne)}}(),ne.\u0275dir=t.lG2({type:ne,selectors:[["mat-radio-group"]],contentQueries:function(ee,pe,S){if(1&ee&&t.Suo(S,ce,5),2&ee){let i;t.iGM(i=t.CRH())&&(pe._radios=i)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([T,{provide:w,useExisting:ne}]),t.qOj]}),ne})();class Q{constructor(le){this._elementRef=le}}const re=(0,e.Kr)((0,e.sb)(Q));let ie=(()=>{class ne extends re{constructor(ee,pe,S,i,r,u,l,y){super(pe),this._changeDetector=S,this._focusMonitor=i,this._radioDispatcher=r,this._providerOverride=l,this._uniqueId="mat-radio-"+ ++L,this.id=this._uniqueId,this.change=new t.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ee,this._noopAnimations="NoopAnimations"===u,y&&(this.tabIndex=(0,C.su)(y,0)),this._removeUniqueSelectionListener=r.listen((D,k)=>{D!==this.id&&k===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(ee){const pe=(0,C.Ig)(ee);this._checked!==pe&&(this._checked=pe,pe&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!pe&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),pe&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ee){this._value!==ee&&(this._value=ee,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ee),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ee){this._labelPosition=ee}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ee){this._setDisabled((0,C.Ig)(ee))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ee){this._required=(0,C.Ig)(ee)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ee){this._color=ee}get inputId(){return`${this.id||this._uniqueId}-input`}focus(ee,pe){pe?this._focusMonitor.focusVia(this._inputElement,pe,ee):this._inputElement.nativeElement.focus(ee)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ee=>{!ee&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new N(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(ee){ee.stopPropagation()}_onInputInteraction(ee){if(ee.stopPropagation(),!this.checked&&!this.disabled){const pe=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),pe&&this.radioGroup._emitChangeEvent())}}_setDisabled(ee){this._disabled!==ee&&(this._disabled=ee,this._changeDetector.markForCheck())}_updateTabIndex(){const ee=this.radioGroup;let pe;if(pe=ee&&ee.selected&&!this.disabled?ee.selected===this?this.tabIndex:-1:this.tabIndex,pe!==this._previousTabIndex){const S=this._inputElement?.nativeElement;S&&(S.setAttribute("tabindex",pe+""),this._previousTabIndex=pe)}}}return ne.\u0275fac=function(ee){t.$Z()},ne.\u0275dir=t.lG2({type:ne,viewQuery:function(ee,pe){if(1&ee&&t.Gf(d,5),2&ee){let S;t.iGM(S=t.CRH())&&(pe._inputElement=S.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[t.qOj]}),ne})(),ce=(()=>{class ne extends ie{constructor(ee,pe,S,i,r,u,l,y){super(ee,pe,S,i,r,u,l,y)}}return ne.\u0275fac=function(ee){return new(ee||ne)(t.Y36(w,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(f.tE),t.Y36(a.A8),t.Y36(t.QbO,8),t.Y36(I,8),t.$8M("tabindex"))},ne.\u0275cmp=t.Xpm({type:ne,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(ee,pe){1&ee&&t.NdJ("focus",function(){return pe._inputElement.nativeElement.focus()}),2&ee&&(t.uIk("tabindex",null)("id",pe.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.ekj("mat-radio-checked",pe.checked)("mat-radio-disabled",pe.disabled)("_mat-animation-noopable",pe._noopAnimations)("mat-primary","primary"===pe.color)("mat-accent","accent"===pe.color)("mat-warn","warn"===pe.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[t.qOj],ngContentSelectors:h,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(ee,pe){if(1&ee&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2),t._UZ(3,"span",3)(4,"span",4),t.TgZ(5,"input",5,6),t.NdJ("change",function(i){return pe._onInputInteraction(i)})("click",function(i){return pe._onInputClick(i)}),t.qZA(),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()(),t.TgZ(9,"span",9)(10,"span",10),t._uU(11,"\xa0"),t.qZA(),t.Hsn(12),t.qZA()()),2&ee){const S=t.MAs(1);t.uIk("for",pe.inputId),t.xp6(5),t.Q6J("id",pe.inputId)("checked",pe.checked)("disabled",pe.disabled)("required",pe.required),t.uIk("name",pe.name)("value",pe.value)("aria-label",pe.ariaLabel)("aria-labelledby",pe.ariaLabelledby)("aria-describedby",pe.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",S)("matRippleDisabled",pe._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(17,R,pe._noopAnimations?0:150)),t.xp6(2),t.ekj("mat-radio-label-before","before"==pe.labelPosition)}},dependencies:[e.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),ne})(),ae=(()=>{class ne{}return ne.\u0275fac=function(ee){return new(ee||ne)},ne.\u0275mod=t.oAB({type:ne}),ne.\u0275inj=t.cJS({imports:[e.si,e.BQ,e.BQ]}),ne})()},4385:(ke,J,p)=>{"use strict";p.d(J,{$L:()=>ut,LD:()=>he,gD:()=>ye});var t=p(8184),e=p(6895),f=p(4650),C=p(3238),a=p(9549),M=p(531),d=p(4761),R=p(445),h=p(1281),I=p(5017),E=p(9521),L=p(4006),T=p(7579),N=p(9770),w=p(6451),G=p(8675),K=p(3900),Q=p(5698),re=p(9300),ie=p(4004),ce=p(1884),ae=p(2722),ne=p(7340);const le=["trigger"],ee=["panel"];function pe(de,we){if(1&de&&(f.TgZ(0,"span",8),f._uU(1),f.qZA()),2&de){const Y=f.oxw();f.xp6(1),f.Oqu(Y.placeholder)}}function S(de,we){if(1&de&&(f.TgZ(0,"span",12),f._uU(1),f.qZA()),2&de){const Y=f.oxw(2);f.xp6(1),f.Oqu(Y.triggerValue)}}function i(de,we){1&de&&f.Hsn(0,0,["*ngSwitchCase","true"])}function r(de,we){if(1&de&&(f.TgZ(0,"span",9),f.YNc(1,S,2,1,"span",10),f.YNc(2,i,1,0,"ng-content",11),f.qZA()),2&de){const Y=f.oxw();f.Q6J("ngSwitch",!!Y.customTrigger),f.xp6(2),f.Q6J("ngSwitchCase",!0)}}function u(de,we){if(1&de){const Y=f.EpF();f.TgZ(0,"div",13)(1,"div",14,15),f.NdJ("@transformPanel.done",function(Ce){f.CHM(Y);const Se=f.oxw();return f.KtG(Se._panelDoneAnimatingStream.next(Ce.toState))})("keydown",function(Ce){f.CHM(Y);const Se=f.oxw();return f.KtG(Se._handleKeydown(Ce))}),f.Hsn(3,1),f.qZA()()}if(2&de){const Y=f.oxw();f.Q6J("@transformPanelWrap",void 0),f.xp6(1),f.Gre("mat-select-panel ",Y._getPanelTheme(),""),f.Udp("transform-origin",Y._transformOrigin)("font-size",Y._triggerFontSize,"px"),f.Q6J("ngClass",Y.panelClass)("@transformPanel",Y.multiple?"showing-multiple":"showing"),f.uIk("id",Y.id+"-panel")("aria-multiselectable",Y.multiple)("aria-label",Y.ariaLabel||null)("aria-labelledby",Y._getPanelAriaLabelledby())}}const l=[[["mat-select-trigger"]],"*"],y=["mat-select-trigger","*"],D={transformPanelWrap:(0,ne.X$)("transformPanelWrap",[(0,ne.eR)("* => void",(0,ne.IO)("@transformPanel",[(0,ne.pV)()],{optional:!0}))]),transformPanel:(0,ne.X$)("transformPanel",[(0,ne.SB)("void",(0,ne.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,ne.SB)("showing",(0,ne.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ne.SB)("showing-multiple",(0,ne.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ne.eR)("void => *",(0,ne.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ne.eR)("* => void",(0,ne.jt)("100ms 25ms linear",(0,ne.oB)({opacity:0})))])};let _=0;const W=256,Oe=new f.OlP("mat-select-scroll-strategy"),ue=new f.OlP("MAT_SELECT_CONFIG"),ve={provide:Oe,deps:[t.aV],useFactory:function De(de){return()=>de.scrollStrategies.reposition()}};class Ie{constructor(we,Y){this.source=we,this.value=Y}}const $=(0,C.Kr)((0,C.sb)((0,C.Id)((0,C.FD)(class{constructor(de,we,Y,j,Ce){this._elementRef=de,this._defaultErrorStateMatcher=we,this._parentForm=Y,this._parentFormGroup=j,this.ngControl=Ce,this.stateChanges=new T.x}})))),Ge=new f.OlP("MatSelectTrigger");let ut=(()=>{class de{}return de.\u0275fac=function(Y){return new(Y||de)},de.\u0275dir=f.lG2({type:de,selectors:[["mat-select-trigger"]],features:[f._Bn([{provide:Ge,useExisting:de}])]}),de})(),Ee=(()=>{class de extends ${constructor(Y,j,Ce,Se,X,Ye,Le,gt,Wt,Rt,jt,hi,yt,Pt){super(X,Se,Le,gt,Rt),this._viewportRuler=Y,this._changeDetectorRef=j,this._ngZone=Ce,this._dir=Ye,this._parentFormField=Wt,this._liveAnnouncer=yt,this._defaultOptions=Pt,this._panelOpen=!1,this._compareWith=(pt,vt)=>pt===vt,this._uid="mat-select-"+_++,this._triggerAriaLabelledBy=null,this._destroy=new T.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+_++,this._panelDoneAnimatingStream=new T.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,N.P)(()=>{const pt=this.options;return pt?pt.changes.pipe((0,G.O)(pt),(0,K.w)(()=>(0,w.T)(...pt.map(vt=>vt.onSelectionChange)))):this._ngZone.onStable.pipe((0,Q.q)(1),(0,K.w)(()=>this.optionSelectionChanges))}),this.openedChange=new f.vpe,this._openedStream=this.openedChange.pipe((0,re.h)(pt=>pt),(0,ie.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,re.h)(pt=>!pt),(0,ie.U)(()=>{})),this.selectionChange=new f.vpe,this.valueChange=new f.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Pt?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Pt.typeaheadDebounceInterval),this._scrollStrategyFactory=hi,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(jt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(Y){this._placeholder=Y,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(L.kI.required)??!1}set required(Y){this._required=(0,h.Ig)(Y),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Y){this._multiple=(0,h.Ig)(Y)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(Y){this._disableOptionCentering=(0,h.Ig)(Y)}get compareWith(){return this._compareWith}set compareWith(Y){this._compareWith=Y,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Y){this._assignValue(Y)&&this._onChange(Y)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(Y){this._typeaheadDebounceInterval=(0,h.su)(Y)}get id(){return this._id}set id(Y){this._id=Y||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new I.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ce.x)(),(0,ae.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,ae.R)(this._destroy)).subscribe(Y=>{Y.added.forEach(j=>j.select()),Y.removed.forEach(j=>j.deselect())}),this.options.changes.pipe((0,G.O)(null),(0,ae.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Y=this._getTriggerAriaLabelledby(),j=this.ngControl;if(Y!==this._triggerAriaLabelledBy){const Ce=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Y,Y?Ce.setAttribute("aria-labelledby",Y):Ce.removeAttribute("aria-labelledby")}j&&(this._previousControl!==j.control&&(void 0!==this._previousControl&&null!==j.disabled&&j.disabled!==this.disabled&&(this.disabled=j.disabled),this._previousControl=j.control),this.updateErrorState())}ngOnChanges(Y){(Y.disabled||Y.userAriaDescribedBy)&&this.stateChanges.next(),Y.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(Y){this._assignValue(Y)}registerOnChange(Y){this._onChange=Y}registerOnTouched(Y){this._onTouched=Y}setDisabledState(Y){this.disabled=Y,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 Y=this._selectionModel.selected.map(j=>j.viewValue);return this._isRtl()&&Y.reverse(),Y.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Y){this.disabled||(this.panelOpen?this._handleOpenKeydown(Y):this._handleClosedKeydown(Y))}_handleClosedKeydown(Y){const j=Y.keyCode,Ce=j===E.JH||j===E.LH||j===E.oh||j===E.SV,Se=j===E.K5||j===E.L_,X=this._keyManager;if(!X.isTyping()&&Se&&!(0,E.Vb)(Y)||(this.multiple||Y.altKey)&&Ce)Y.preventDefault(),this.open();else if(!this.multiple){const Ye=this.selected;X.onKeydown(Y);const Le=this.selected;Le&&Ye!==Le&&this._liveAnnouncer.announce(Le.viewValue,1e4)}}_handleOpenKeydown(Y){const j=this._keyManager,Ce=Y.keyCode,Se=Ce===E.JH||Ce===E.LH,X=j.isTyping();if(Se&&Y.altKey)Y.preventDefault(),this.close();else if(X||Ce!==E.K5&&Ce!==E.L_||!j.activeItem||(0,E.Vb)(Y))if(!X&&this._multiple&&Ce===E.A&&Y.ctrlKey){Y.preventDefault();const Ye=this.options.some(Le=>!Le.disabled&&!Le.selected);this.options.forEach(Le=>{Le.disabled||(Ye?Le.select():Le.deselect())})}else{const Ye=j.activeItemIndex;j.onKeydown(Y),this._multiple&&Se&&Y.shiftKey&&j.activeItem&&j.activeItemIndex!==Ye&&j.activeItem._selectViaInteraction()}else Y.preventDefault(),j.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Q.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(Y){if(this._selectionModel.selected.forEach(j=>j.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Y)Array.isArray(Y),Y.forEach(j=>this._selectOptionByValue(j)),this._sortValues();else{const j=this._selectOptionByValue(Y);j?this._keyManager.updateActiveItem(j):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Y){const j=this.options.find(Ce=>{if(this._selectionModel.isSelected(Ce))return!1;try{return null!=Ce.value&&this._compareWith(Ce.value,Y)}catch{return!1}});return j&&this._selectionModel.select(j),j}_assignValue(Y){return!!(Y!==this._value||this._multiple&&Array.isArray(Y))&&(this.options&&this._setSelectionByValue(Y),this._value=Y,!0)}_initKeyManager(){this._keyManager=new d.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,ae.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,ae.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const Y=(0,w.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ae.R)(Y)).subscribe(j=>{this._onSelect(j.source,j.isUserInput),j.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,w.T)(...this.options.map(j=>j._stateChanges)).pipe((0,ae.R)(Y)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(Y,j){const Ce=this._selectionModel.isSelected(Y);null!=Y.value||this._multiple?(Ce!==Y.selected&&(Y.selected?this._selectionModel.select(Y):this._selectionModel.deselect(Y)),j&&this._keyManager.setActiveItem(Y),this.multiple&&(this._sortValues(),j&&this.focus())):(Y.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Y.value)),Ce!==this._selectionModel.isSelected(Y)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Y=this.options.toArray();this._selectionModel.sort((j,Ce)=>this.sortComparator?this.sortComparator(j,Ce,Y):Y.indexOf(j)-Y.indexOf(Ce)),this.stateChanges.next()}}_propagateChanges(Y){let j=null;j=this.multiple?this.selected.map(Ce=>Ce.value):this.selected?this.selected.value:Y,this._value=j,this.valueChange.emit(j),this._onChange(j),this.selectionChange.emit(this._getChangeEvent(j)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(Y){this._elementRef.nativeElement.focus(Y)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const Y=this._parentFormField?.getLabelId();return this.ariaLabelledby?(Y?Y+" ":"")+this.ariaLabelledby:Y}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const Y=this._parentFormField?.getLabelId();let j=(Y?Y+" ":"")+this._valueId;return this.ariaLabelledby&&(j+=" "+this.ariaLabelledby),j}_panelDoneAnimating(Y){this.openedChange.emit(Y)}setDescribedByIds(Y){Y.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Y.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return de.\u0275fac=function(Y){return new(Y||de)(f.Y36(M.rL),f.Y36(f.sBO),f.Y36(f.R0b),f.Y36(C.rD),f.Y36(f.SBq),f.Y36(R.Is,8),f.Y36(L.F,8),f.Y36(L.sg,8),f.Y36(a.G_,8),f.Y36(L.a5,10),f.$8M("tabindex"),f.Y36(Oe),f.Y36(d.Kd),f.Y36(ue,8))},de.\u0275dir=f.lG2({type:de,viewQuery:function(Y,j){if(1&Y&&(f.Gf(le,5),f.Gf(ee,5),f.Gf(t.pI,5)),2&Y){let Ce;f.iGM(Ce=f.CRH())&&(j.trigger=Ce.first),f.iGM(Ce=f.CRH())&&(j.panel=Ce.first),f.iGM(Ce=f.CRH())&&(j._overlayDir=Ce.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[f.qOj,f.TTD]}),de})(),ye=(()=>{class de extends Ee{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(Y,j,Ce){const Se=this._getItemHeight();return Math.min(Math.max(0,Se*Y-j+Se/2),Ce)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,ae.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Q.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(Y){const j=(0,C.CB)(Y,this.options,this.optionGroups),Ce=this._getItemHeight();this.panel.nativeElement.scrollTop=0===Y&&1===j?0:(0,C.jH)((Y+j)*Ce,Ce,this.panel.nativeElement.scrollTop,W)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(Y){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(Y)}_getChangeEvent(Y){return new Ie(this,Y)}_calculateOverlayOffsetX(){const Y=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),j=this._viewportRuler.getViewportSize(),Ce=this._isRtl(),Se=this.multiple?56:32;let X;if(this.multiple)X=40;else if(this.disableOptionCentering)X=16;else{let gt=this._selectionModel.selected[0]||this.options.first;X=gt&&gt.group?32:16}Ce||(X*=-1);const Ye=0-(Y.left+X-(Ce?Se:0)),Le=Y.right+X-j.width+(Ce?0:Se);Ye>0?X+=Ye+8:Le>0&&(X-=Le+8),this._overlayDir.offsetX=Math.round(X),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(Y,j,Ce){const Se=this._getItemHeight(),X=(Se-this._triggerRect.height)/2,Ye=Math.floor(W/Se);let Le;return this.disableOptionCentering?0:(Le=0===this._scrollTop?Y*Se:this._scrollTop===Ce?(Y-(this._getItemCount()-Ye))*Se+(Se-(this._getItemCount()*Se-W)%Se):j-Se/2,Math.round(-1*Le-X))}_checkOverlayWithinViewport(Y){const j=this._getItemHeight(),Ce=this._viewportRuler.getViewportSize(),Se=this._triggerRect.top-8,X=Ce.height-this._triggerRect.bottom-8,Ye=Math.abs(this._offsetY),gt=Math.min(this._getItemCount()*j,W)-Ye-this._triggerRect.height;gt>X?this._adjustPanelUp(gt,X):Ye>Se?this._adjustPanelDown(Ye,Se,Y):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(Y,j){const Ce=Math.round(Y-j);this._scrollTop-=Ce,this._offsetY-=Ce,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(Y,j,Ce){const Se=Math.round(Y-j);if(this._scrollTop+=Se,this._offsetY+=Se,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Ce)return this._scrollTop=Ce,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const Y=this._getItemHeight(),j=this._getItemCount(),Ce=Math.min(j*Y,W),X=j*Y-Ce;let Ye;Ye=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),Ye+=(0,C.CB)(Ye,this.options,this.optionGroups);const Le=Ce/2;this._scrollTop=this._calculateOverlayScroll(Ye,Le,X),this._offsetY=this._calculateOverlayOffsetY(Ye,Le,X),this._checkOverlayWithinViewport(X)}_getOriginBasedOnOption(){const Y=this._getItemHeight(),j=(Y-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-j+Y/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return de.\u0275fac=function(){let we;return function(j){return(we||(we=f.n5z(de)))(j||de)}}(),de.\u0275cmp=f.Xpm({type:de,selectors:[["mat-select"]],contentQueries:function(Y,j,Ce){if(1&Y&&(f.Suo(Ce,Ge,5),f.Suo(Ce,C.ey,5),f.Suo(Ce,C.K7,5)),2&Y){let Se;f.iGM(Se=f.CRH())&&(j.customTrigger=Se.first),f.iGM(Se=f.CRH())&&(j.options=Se),f.iGM(Se=f.CRH())&&(j.optionGroups=Se)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(Y,j){1&Y&&f.NdJ("keydown",function(Se){return j._handleKeydown(Se)})("focus",function(){return j._onFocus()})("blur",function(){return j._onBlur()}),2&Y&&(f.uIk("id",j.id)("tabindex",j.tabIndex)("aria-controls",j.panelOpen?j.id+"-panel":null)("aria-expanded",j.panelOpen)("aria-label",j.ariaLabel||null)("aria-required",j.required.toString())("aria-disabled",j.disabled.toString())("aria-invalid",j.errorState)("aria-activedescendant",j._getAriaActiveDescendant()),f.ekj("mat-select-disabled",j.disabled)("mat-select-invalid",j.errorState)("mat-select-required",j.required)("mat-select-empty",j.empty)("mat-select-multiple",j.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[f._Bn([{provide:a.Eo,useExisting:de},{provide:C.HF,useExisting:de}]),f.qOj],ngContentSelectors:y,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(Y,j){if(1&Y&&(f.F$t(l),f.TgZ(0,"div",0,1),f.NdJ("click",function(){return j.toggle()}),f.TgZ(3,"div",2),f.YNc(4,pe,2,1,"span",3),f.YNc(5,r,3,2,"span",4),f.qZA(),f.TgZ(6,"div",5),f._UZ(7,"div",6),f.qZA()(),f.YNc(8,u,4,14,"ng-template",7),f.NdJ("backdropClick",function(){return j.close()})("attach",function(){return j._onAttached()})("detach",function(){return j.close()})),2&Y){const Ce=f.MAs(1);f.uIk("aria-owns",j.panelOpen?j.id+"-panel":null),f.xp6(3),f.Q6J("ngSwitch",j.empty),f.uIk("id",j._valueId),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngSwitchCase",!1),f.xp6(3),f.Q6J("cdkConnectedOverlayPanelClass",j._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",j._scrollStrategy)("cdkConnectedOverlayOrigin",Ce)("cdkConnectedOverlayOpen",j.panelOpen)("cdkConnectedOverlayPositions",j._positions)("cdkConnectedOverlayMinWidth",null==j._triggerRect?null:j._triggerRect.width)("cdkConnectedOverlayOffsetY",j._offsetY)}},dependencies:[e.mk,e.RF,e.n9,e.ED,t.pI,t.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[D.transformPanelWrap,D.transformPanel]},changeDetection:0}),de})(),he=(()=>{class de{}return de.\u0275fac=function(Y){return new(Y||de)},de.\u0275mod=f.oAB({type:de}),de.\u0275inj=f.cJS({providers:[ve],imports:[e.ez,t.U8,C.Ng,C.BQ,M.ZD,a.lN,C.Ng,C.BQ]}),de})()},3267:(ke,J,p)=>{"use strict";p.d(J,{JX:()=>nt,Rh:()=>me,SJ:()=>Oe,TM:()=>Pe});var t=p(531),e=p(6895),f=p(4650),C=p(3238),a=p(4761),M=p(445),d=p(1281),R=p(9521),h=p(3353),I=p(7579),E=p(4968),L=p(6451),T=p(9300),N=p(4004),w=p(9718),G=p(2722),K=p(1884),Q=p(5698),re=p(8675),ie=p(8372),ce=p(7340);const ae=["*"],ne=["content"];function le(De,ue){if(1&De){const ve=f.EpF();f.TgZ(0,"div",2),f.NdJ("click",function(){f.CHM(ve);const $=f.oxw();return f.KtG($._onBackdropClicked())}),f.qZA()}if(2&De){const ve=f.oxw();f.ekj("mat-drawer-shown",ve._isShowingBackdrop())}}function ee(De,ue){1&De&&(f.TgZ(0,"mat-drawer-content"),f.Hsn(1,2),f.qZA())}const pe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],S=["mat-drawer","mat-drawer-content","*"];function i(De,ue){if(1&De){const ve=f.EpF();f.TgZ(0,"div",2),f.NdJ("click",function(){f.CHM(ve);const $=f.oxw();return f.KtG($._onBackdropClicked())}),f.qZA()}if(2&De){const ve=f.oxw();f.ekj("mat-drawer-shown",ve._isShowingBackdrop())}}function r(De,ue){1&De&&(f.TgZ(0,"mat-sidenav-content"),f.Hsn(1,2),f.qZA())}const u=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],l=["mat-sidenav","mat-sidenav-content","*"],D={transformDrawer:(0,ce.X$)("transform",[(0,ce.SB)("open, open-instant",(0,ce.oB)({transform:"none",visibility:"visible"})),(0,ce.SB)("void",(0,ce.oB)({"box-shadow":"none",visibility:"hidden"})),(0,ce.eR)("void => open-instant",(0,ce.jt)("0ms")),(0,ce.eR)("void <=> open, open-instant => void",(0,ce.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},b=new f.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function _(){return!1}}),n=new f.OlP("MAT_DRAWER_CONTAINER");let W=(()=>{class De extends t.PQ{constructor(ve,Ie,$,Ge,ut){super($,Ge,ut),this._changeDetectorRef=ve,this._container=Ie}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return De.\u0275fac=function(ve){return new(ve||De)(f.Y36(f.sBO),f.Y36((0,f.Gpc)(()=>U)),f.Y36(f.SBq),f.Y36(t.mF),f.Y36(f.R0b))},De.\u0275cmp=f.Xpm({type:De,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(ve,Ie){2&ve&&f.Udp("margin-left",Ie._container._contentMargins.left,"px")("margin-right",Ie._container._contentMargins.right,"px")},features:[f._Bn([{provide:t.PQ,useExisting:De}]),f.qOj],ngContentSelectors:ae,decls:1,vars:0,template:function(ve,Ie){1&ve&&(f.F$t(),f.Hsn(0))},encapsulation:2,changeDetection:0}),De})(),P=(()=>{class De{constructor(ve,Ie,$,Ge,ut,Ee,ye,he){this._elementRef=ve,this._focusTrapFactory=Ie,this._focusMonitor=$,this._platform=Ge,this._ngZone=ut,this._interactivityChecker=Ee,this._doc=ye,this._container=he,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new I.x,this._animationEnd=new I.x,this._animationState="void",this.openedChange=new f.vpe(!0),this._openedStream=this.openedChange.pipe((0,T.h)(de=>de),(0,N.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,T.h)(de=>de.fromState!==de.toState&&0===de.toState.indexOf("open")),(0,w.h)(void 0)),this._closedStream=this.openedChange.pipe((0,T.h)(de=>!de),(0,N.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,T.h)(de=>de.fromState!==de.toState&&"void"===de.toState),(0,w.h)(void 0)),this._destroyed=new I.x,this.onPositionChanged=new f.vpe,this._modeChanged=new I.x,this.openedChange.subscribe(de=>{de?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,E.R)(this._elementRef.nativeElement,"keydown").pipe((0,T.h)(de=>de.keyCode===R.hY&&!this.disableClose&&!(0,R.Vb)(de)),(0,G.R)(this._destroyed)).subscribe(de=>this._ngZone.run(()=>{this.close(),de.stopPropagation(),de.preventDefault()}))}),this._animationEnd.pipe((0,K.x)((de,we)=>de.fromState===we.fromState&&de.toState===we.toState)).subscribe(de=>{const{fromState:we,toState:Y}=de;(0===Y.indexOf("open")&&"void"===we||"void"===Y&&0===we.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(ve){(ve="end"===ve?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(ve),this._position=ve,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(ve){this._mode=ve,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(ve){this._disableClose=(0,d.Ig)(ve)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(ve){("true"===ve||"false"===ve||null==ve)&&(ve=(0,d.Ig)(ve)),this._autoFocus=ve}get opened(){return this._opened}set opened(ve){this.toggle((0,d.Ig)(ve))}_forceFocus(ve,Ie){this._interactivityChecker.isFocusable(ve)||(ve.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const $=()=>{ve.removeEventListener("blur",$),ve.removeEventListener("mousedown",$),ve.removeAttribute("tabindex")};ve.addEventListener("blur",$),ve.addEventListener("mousedown",$)})),ve.focus(Ie)}_focusByCssSelector(ve,Ie){let $=this._elementRef.nativeElement.querySelector(ve);$&&this._forceFocus($,Ie)}_takeFocus(){if(!this._focusTrap)return;const ve=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ie=>{!Ie&&"function"==typeof this._elementRef.nativeElement.focus&&ve.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(ve){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,ve):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const ve=this._doc.activeElement;return!!ve&&this._elementRef.nativeElement.contains(ve)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&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(ve){return this.toggle(!0,ve)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(ve=!this.opened,Ie){ve&&Ie&&(this._openedVia=Ie);const $=this._setOpen(ve,!ve&&this._isFocusWithinDrawer(),this._openedVia||"program");return ve||(this._openedVia=null),$}_setOpen(ve,Ie,$){return this._opened=ve,ve?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Ie&&this._restoreFocus($)),this._updateFocusTrapState(),new Promise(Ge=>{this.openedChange.pipe((0,Q.q)(1)).subscribe(ut=>Ge(ut?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(ve){const Ie=this._elementRef.nativeElement,$=Ie.parentNode;"end"===ve?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),$.insertBefore(this._anchor,Ie)),$.appendChild(Ie)):this._anchor&&this._anchor.parentNode.insertBefore(Ie,this._anchor)}}return De.\u0275fac=function(ve){return new(ve||De)(f.Y36(f.SBq),f.Y36(a.qV),f.Y36(a.tE),f.Y36(h.t4),f.Y36(f.R0b),f.Y36(a.ic),f.Y36(e.K0,8),f.Y36(n,8))},De.\u0275cmp=f.Xpm({type:De,selectors:[["mat-drawer"]],viewQuery:function(ve,Ie){if(1&ve&&f.Gf(ne,5),2&ve){let $;f.iGM($=f.CRH())&&(Ie._content=$.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(ve,Ie){1&ve&&f.WFA("@transform.start",function(Ge){return Ie._animationStarted.next(Ge)})("@transform.done",function(Ge){return Ie._animationEnd.next(Ge)}),2&ve&&(f.uIk("align",null),f.d8E("@transform",Ie._animationState),f.ekj("mat-drawer-end","end"===Ie.position)("mat-drawer-over","over"===Ie.mode)("mat-drawer-push","push"===Ie.mode)("mat-drawer-side","side"===Ie.mode)("mat-drawer-opened",Ie.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:ae,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ve,Ie){1&ve&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA())},dependencies:[t.PQ],encapsulation:2,data:{animation:[D.transformDrawer]},changeDetection:0}),De})(),U=(()=>{class De{constructor(ve,Ie,$,Ge,ut,Ee=!1,ye){this._dir=ve,this._element=Ie,this._ngZone=$,this._changeDetectorRef=Ge,this._animationMode=ye,this._drawers=new f.n_E,this.backdropClick=new f.vpe,this._destroyed=new I.x,this._doCheckSubject=new I.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new I.x,ve&&ve.change.pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),ut.change().pipe((0,G.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Ee}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(ve){this._autosize=(0,d.Ig)(ve)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(ve){this._backdropOverride=null==ve?null:(0,d.Ig)(ve)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,re.O)(this._allDrawers),(0,G.R)(this._destroyed)).subscribe(ve=>{this._drawers.reset(ve.filter(Ie=>!Ie._container||Ie._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,re.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(ve=>{this._watchDrawerToggle(ve),this._watchDrawerPosition(ve),this._watchDrawerMode(ve)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,ie.b)(10),(0,G.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(ve=>ve.open())}close(){this._drawers.forEach(ve=>ve.close())}updateContentMargins(){let ve=0,Ie=0;if(this._left&&this._left.opened)if("side"==this._left.mode)ve+=this._left._getWidth();else if("push"==this._left.mode){const $=this._left._getWidth();ve+=$,Ie-=$}if(this._right&&this._right.opened)if("side"==this._right.mode)Ie+=this._right._getWidth();else if("push"==this._right.mode){const $=this._right._getWidth();Ie+=$,ve-=$}ve=ve||null,Ie=Ie||null,(ve!==this._contentMargins.left||Ie!==this._contentMargins.right)&&(this._contentMargins={left:ve,right:Ie},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(ve){ve._animationStarted.pipe((0,T.h)(Ie=>Ie.fromState!==Ie.toState),(0,G.R)(this._drawers.changes)).subscribe(Ie=>{"open-instant"!==Ie.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==ve.mode&&ve.openedChange.pipe((0,G.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(ve.opened))}_watchDrawerPosition(ve){!ve||ve.onPositionChanged.pipe((0,G.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Q.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(ve){ve&&ve._modeChanged.pipe((0,G.R)((0,L.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(ve){const Ie=this._element.nativeElement.classList,$="mat-drawer-container-has-open";ve?Ie.add($):Ie.remove($)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(ve=>{"end"==ve.position?this._end=ve:this._start=ve}),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(ve=>ve&&!ve.disableClose&&this._canHaveBackdrop(ve)).forEach(ve=>ve._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(ve){return"side"!==ve.mode||!!this._backdropOverride}_isDrawerOpen(ve){return null!=ve&&ve.opened}}return De.\u0275fac=function(ve){return new(ve||De)(f.Y36(M.Is,8),f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(f.sBO),f.Y36(t.rL),f.Y36(b),f.Y36(f.QbO,8))},De.\u0275cmp=f.Xpm({type:De,selectors:[["mat-drawer-container"]],contentQueries:function(ve,Ie,$){if(1&ve&&(f.Suo($,W,5),f.Suo($,P,5)),2&ve){let Ge;f.iGM(Ge=f.CRH())&&(Ie._content=Ge.first),f.iGM(Ge=f.CRH())&&(Ie._allDrawers=Ge)}},viewQuery:function(ve,Ie){if(1&ve&&f.Gf(W,5),2&ve){let $;f.iGM($=f.CRH())&&(Ie._userContent=$.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(ve,Ie){2&ve&&f.ekj("mat-drawer-container-explicit-backdrop",Ie._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[f._Bn([{provide:n,useExisting:De}])],ngContentSelectors:S,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(ve,Ie){1&ve&&(f.F$t(pe),f.YNc(0,le,1,2,"div",0),f.Hsn(1),f.Hsn(2,1),f.YNc(3,ee,2,0,"mat-drawer-content",1)),2&ve&&(f.Q6J("ngIf",Ie.hasBackdrop),f.xp6(3),f.Q6J("ngIf",!Ie._content))},dependencies:[e.O5,W],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),De})(),me=(()=>{class De extends W{constructor(ve,Ie,$,Ge,ut){super(ve,Ie,$,Ge,ut)}}return De.\u0275fac=function(ve){return new(ve||De)(f.Y36(f.sBO),f.Y36((0,f.Gpc)(()=>Pe)),f.Y36(f.SBq),f.Y36(t.mF),f.Y36(f.R0b))},De.\u0275cmp=f.Xpm({type:De,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(ve,Ie){2&ve&&f.Udp("margin-left",Ie._container._contentMargins.left,"px")("margin-right",Ie._container._contentMargins.right,"px")},features:[f._Bn([{provide:t.PQ,useExisting:De}]),f.qOj],ngContentSelectors:ae,decls:1,vars:0,template:function(ve,Ie){1&ve&&(f.F$t(),f.Hsn(0))},encapsulation:2,changeDetection:0}),De})(),nt=(()=>{class De extends P{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(ve){this._fixedInViewport=(0,d.Ig)(ve)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(ve){this._fixedTopGap=(0,d.su)(ve)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(ve){this._fixedBottomGap=(0,d.su)(ve)}}return De.\u0275fac=function(){let ue;return function(Ie){return(ue||(ue=f.n5z(De)))(Ie||De)}}(),De.\u0275cmp=f.Xpm({type:De,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(ve,Ie){2&ve&&(f.uIk("align",null),f.Udp("top",Ie.fixedInViewport?Ie.fixedTopGap:null,"px")("bottom",Ie.fixedInViewport?Ie.fixedBottomGap:null,"px"),f.ekj("mat-drawer-end","end"===Ie.position)("mat-drawer-over","over"===Ie.mode)("mat-drawer-push","push"===Ie.mode)("mat-drawer-side","side"===Ie.mode)("mat-drawer-opened",Ie.opened)("mat-sidenav-fixed",Ie.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[f.qOj],ngContentSelectors:ae,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ve,Ie){1&ve&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA())},dependencies:[t.PQ],encapsulation:2,data:{animation:[D.transformDrawer]},changeDetection:0}),De})(),Pe=(()=>{class De extends U{}return De.\u0275fac=function(){let ue;return function(Ie){return(ue||(ue=f.n5z(De)))(Ie||De)}}(),De.\u0275cmp=f.Xpm({type:De,selectors:[["mat-sidenav-container"]],contentQueries:function(ve,Ie,$){if(1&ve&&(f.Suo($,me,5),f.Suo($,nt,5)),2&ve){let Ge;f.iGM(Ge=f.CRH())&&(Ie._content=Ge.first),f.iGM(Ge=f.CRH())&&(Ie._allDrawers=Ge)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(ve,Ie){2&ve&&f.ekj("mat-drawer-container-explicit-backdrop",Ie._backdropOverride)},exportAs:["matSidenavContainer"],features:[f._Bn([{provide:n,useExisting:De}]),f.qOj],ngContentSelectors:l,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(ve,Ie){1&ve&&(f.F$t(u),f.YNc(0,i,1,2,"div",0),f.Hsn(1),f.Hsn(2,1),f.YNc(3,r,2,0,"mat-sidenav-content",1)),2&ve&&(f.Q6J("ngIf",Ie.hasBackdrop),f.xp6(3),f.Q6J("ngIf",!Ie._content))},dependencies:[e.O5,me],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),De})(),Oe=(()=>{class De{}return De.\u0275fac=function(ve){return new(ve||De)},De.\u0275mod=f.oAB({type:De}),De.\u0275inj=f.cJS({imports:[e.ez,C.BQ,t.ZD,t.ZD,C.BQ]}),De})()},455:(ke,J,p)=>{"use strict";p.d(J,{Rr:()=>G,rP:()=>ie});var t=p(9643),e=p(4650),f=p(3238),C=p(4761),a=p(1281),M=p(4006);const d=["input"],R=function(ce){return{enterDuration:ce}},h=["*"],I=new e.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let E=0;const L={provide:M.JU,useExisting:(0,e.Gpc)(()=>G),multi:!0};class T{constructor(ae,ne){this.source=ae,this.checked=ne}}const N=(0,f.sb)((0,f.pj)((0,f.Kr)((0,f.Id)(class{constructor(ce){this._elementRef=ce}}))));let w=(()=>{class ce extends N{constructor(ne,le,ee,pe,S,i,r){super(ne),this._focusMonitor=le,this._changeDetectorRef=ee,this.defaults=S,this._onChange=u=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new e.vpe,this.toggleChange=new e.vpe,this.tabIndex=parseInt(pe)||0,this.color=this.defaultColor=S.color||"accent",this._noopAnimations="NoopAnimations"===i,this.id=this._uniqueId=`${r}${++E}`}get required(){return this._required}set required(ne){this._required=(0,a.Ig)(ne)}get checked(){return this._checked}set checked(ne){this._checked=(0,a.Ig)(ne),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ne=>{"keyboard"===ne||"program"===ne?this._focused=!0:ne||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(ne){this.checked=!!ne}registerOnChange(ne){this._onChange=ne}registerOnTouched(ne){this._onTouched=ne}setDisabledState(ne){this.disabled=ne,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return ce.\u0275fac=function(ne){e.$Z()},ce.\u0275dir=e.lG2({type:ce,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[e.qOj]}),ce})(),G=(()=>{class ce extends w{constructor(ne,le,ee,pe,S,i){super(ne,le,ee,pe,S,i,"mat-slide-toggle-")}_createChangeEvent(ne){return new T(this,ne)}_onChangeEvent(ne){ne.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(ne){ne.stopPropagation()}focus(ne,le){le?this._focusMonitor.focusVia(this._inputElement,le,ne):this._inputElement.nativeElement.focus(ne)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return ce.\u0275fac=function(ne){return new(ne||ce)(e.Y36(e.SBq),e.Y36(C.tE),e.Y36(e.sBO),e.$8M("tabindex"),e.Y36(I),e.Y36(e.QbO,8))},ce.\u0275cmp=e.Xpm({type:ce,selectors:[["mat-slide-toggle"]],viewQuery:function(ne,le){if(1&ne&&e.Gf(d,5),2&ne){let ee;e.iGM(ee=e.CRH())&&(le._inputElement=ee.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(ne,le){2&ne&&(e.Ikx("id",le.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),e.ekj("mat-checked",le.checked)("mat-disabled",le.disabled)("mat-slide-toggle-label-before","before"==le.labelPosition)("_mat-animation-noopable",le._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[e._Bn([L]),e.qOj],ngContentSelectors:h,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(ne,le){if(1&ne&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),e.NdJ("change",function(pe){return le._onChangeEvent(pe)})("click",function(pe){return le._onInputClick(pe)}),e.qZA(),e.TgZ(5,"span",5),e._UZ(6,"span",6),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA()()(),e.TgZ(9,"span",9,10),e.NdJ("cdkObserveContent",function(){return le._onLabelTextChange()}),e.TgZ(11,"span",11),e._uU(12,"\xa0"),e.qZA(),e.Hsn(13),e.qZA()()),2&ne){const ee=e.MAs(1),pe=e.MAs(10);e.uIk("for",le.inputId),e.xp6(2),e.ekj("mat-slide-toggle-bar-no-side-margin",!pe.textContent||!pe.textContent.trim()),e.xp6(1),e.Q6J("id",le.inputId)("required",le.required)("tabIndex",le.tabIndex)("checked",le.checked)("disabled",le.disabled),e.uIk("name",le.name)("aria-checked",le.checked)("aria-label",le.ariaLabel)("aria-labelledby",le.ariaLabelledby)("aria-describedby",le.ariaDescribedby),e.xp6(4),e.Q6J("matRippleTrigger",ee)("matRippleDisabled",le.disableRipple||le.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,R,le._noopAnimations?0:150))}},dependencies:[f.wG,t.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),ce})(),re=(()=>{class ce{}return ce.\u0275fac=function(ne){return new(ne||ce)},ce.\u0275mod=e.oAB({type:ce}),ce.\u0275inj=e.cJS({}),ce})(),ie=(()=>{class ce{}return ce.\u0275fac=function(ne){return new(ne||ce)},ce.\u0275mod=e.oAB({type:ce}),ce.\u0275inj=e.cJS({imports:[re,f.si,f.BQ,t.Q8,re,f.BQ]}),ce})()},7009:(ke,J,p)=>{"use strict";p.d(J,{Ve:()=>ee,ZX:()=>le,ux:()=>i});var t=p(8184),e=p(4080),f=p(6895),C=p(4650),a=p(3238),M=p(4859),d=p(7579),R=p(3353),h=p(5698),I=p(2722),E=p(7340),L=p(4761),T=p(2289);function N(r,u){if(1&r){const l=C.EpF();C.TgZ(0,"div",2)(1,"button",3),C.NdJ("click",function(){C.CHM(l);const D=C.oxw();return C.KtG(D.action())}),C._uU(2),C.qZA()()}if(2&r){const l=C.oxw();C.xp6(2),C.Oqu(l.data.action)}}function w(r,u){}const G=new C.OlP("MatSnackBarData");class K{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const Q=Math.pow(2,31)-1;class re{constructor(u,l){this._overlayRef=l,this._afterDismissed=new d.x,this._afterOpened=new d.x,this._onAction=new d.x,this._dismissedByAction=!1,this.containerInstance=u,u._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(u){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(u,Q))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let ie=(()=>{class r{constructor(l,y){this.snackBarRef=l,this.data=y}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return r.\u0275fac=function(l){return new(l||r)(C.Y36(re),C.Y36(G))},r.\u0275cmp=C.Xpm({type:r,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(l,y){1&l&&(C.TgZ(0,"span",0),C._uU(1),C.qZA(),C.YNc(2,N,3,1,"div",1)),2&l&&(C.xp6(1),C.Oqu(y.data.message),C.xp6(1),C.Q6J("ngIf",y.hasAction))},dependencies:[f.O5,M.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),r})();const ce={snackBarState:(0,E.X$)("state",[(0,E.SB)("void, hidden",(0,E.oB)({transform:"scale(0.8)",opacity:0})),(0,E.SB)("visible",(0,E.oB)({transform:"scale(1)",opacity:1})),(0,E.eR)("* => visible",(0,E.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,E.eR)("* => void, * => hidden",(0,E.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,E.oB)({opacity:0})))])};let ae=(()=>{class r extends e.en{constructor(l,y,D,k,b){super(),this._ngZone=l,this._elementRef=y,this._changeDetectorRef=D,this._platform=k,this.snackBarConfig=b,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new d.x,this._onExit=new d.x,this._onEnter=new d.x,this._animationState="void",this.attachDomPortal=n=>{this._assertNotAttached();const _=this._portalOutlet.attachDomPortal(n);return this._afterPortalAttached(),_},this._live="assertive"!==b.politeness||b.announcementMessage?"off"===b.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(l){this._assertNotAttached();const y=this._portalOutlet.attachComponentPortal(l);return this._afterPortalAttached(),y}attachTemplatePortal(l){this._assertNotAttached();const y=this._portalOutlet.attachTemplatePortal(l);return this._afterPortalAttached(),y}onAnimationEnd(l){const{fromState:y,toState:D}=l;if(("void"===D&&"void"!==y||"hidden"===D)&&this._completeExit(),"visible"===D){const k=this._onEnter;this._ngZone.run(()=>{k.next(),k.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,h.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const l=this._elementRef.nativeElement,y=this.snackBarConfig.panelClass;y&&(Array.isArray(y)?y.forEach(D=>l.classList.add(D)):l.classList.add(y))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const l=this._elementRef.nativeElement.querySelector("[aria-hidden]"),y=this._elementRef.nativeElement.querySelector("[aria-live]");if(l&&y){let D=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&l.contains(document.activeElement)&&(D=document.activeElement),l.removeAttribute("aria-hidden"),y.appendChild(l),D?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return r.\u0275fac=function(l){return new(l||r)(C.Y36(C.R0b),C.Y36(C.SBq),C.Y36(C.sBO),C.Y36(R.t4),C.Y36(K))},r.\u0275dir=C.lG2({type:r,viewQuery:function(l,y){if(1&l&&C.Gf(e.Pl,7),2&l){let D;C.iGM(D=C.CRH())&&(y._portalOutlet=D.first)}},features:[C.qOj]}),r})(),ne=(()=>{class r extends ae{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return r.\u0275fac=function(){let u;return function(y){return(u||(u=C.n5z(r)))(y||r)}}(),r.\u0275cmp=C.Xpm({type:r,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(l,y){1&l&&C.WFA("@state.done",function(k){return y.onAnimationEnd(k)}),2&l&&C.d8E("@state",y._animationState)},features:[C.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(l,y){1&l&&(C.TgZ(0,"div",0),C.YNc(1,w,0,0,"ng-template",1),C.qZA(),C._UZ(2,"div")),2&l&&(C.xp6(2),C.uIk("aria-live",y._live)("role",y._role))},dependencies:[e.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[ce.snackBarState]}}),r})(),le=(()=>{class r{}return r.\u0275fac=function(l){return new(l||r)},r.\u0275mod=C.oAB({type:r}),r.\u0275inj=C.cJS({imports:[t.U8,e.eL,f.ez,M.ot,a.BQ,a.BQ]}),r})();const ee=new C.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function pe(){return new K}});let S=(()=>{class r{constructor(l,y,D,k,b,n){this._overlay=l,this._live=y,this._injector=D,this._breakpointObserver=k,this._parentSnackBar=b,this._defaultConfig=n,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const l=this._parentSnackBar;return l?l._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(l){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=l:this._snackBarRefAtThisLevel=l}openFromComponent(l,y){return this._attach(l,y)}openFromTemplate(l,y){return this._attach(l,y)}open(l,y="",D){const k={...this._defaultConfig,...D};return k.data={message:l,action:y},k.announcementMessage===l&&(k.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,k)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(l,y){const k=C.zs3.create({parent:y&&y.viewContainerRef&&y.viewContainerRef.injector||this._injector,providers:[{provide:K,useValue:y}]}),b=new e.C5(this.snackBarContainerComponent,y.viewContainerRef,k),n=l.attach(b);return n.instance.snackBarConfig=y,n.instance}_attach(l,y){const D={...new K,...this._defaultConfig,...y},k=this._createOverlay(D),b=this._attachSnackBarContainer(k,D),n=new re(b,k);if(l instanceof C.Rgc){const _=new e.UE(l,null,{$implicit:D.data,snackBarRef:n});n.instance=b.attachTemplatePortal(_)}else{const _=this._createInjector(D,n),W=new e.C5(l,void 0,_),P=b.attachComponentPortal(W);n.instance=P.instance}return this._breakpointObserver.observe(T.u3.HandsetPortrait).pipe((0,I.R)(k.detachments())).subscribe(_=>{k.overlayElement.classList.toggle(this.handsetCssClass,_.matches)}),D.announcementMessage&&b._onAnnounce.subscribe(()=>{this._live.announce(D.announcementMessage,D.politeness)}),this._animateSnackBar(n,D),this._openedSnackBarRef=n,this._openedSnackBarRef}_animateSnackBar(l,y){l.afterDismissed().subscribe(()=>{this._openedSnackBarRef==l&&(this._openedSnackBarRef=null),y.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{l.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):l.containerInstance.enter(),y.duration&&y.duration>0&&l.afterOpened().subscribe(()=>l._dismissAfter(y.duration))}_createOverlay(l){const y=new t.X_;y.direction=l.direction;let D=this._overlay.position().global();const k="rtl"===l.direction,b="left"===l.horizontalPosition||"start"===l.horizontalPosition&&!k||"end"===l.horizontalPosition&&k,n=!b&&"center"!==l.horizontalPosition;return b?D.left("0"):n?D.right("0"):D.centerHorizontally(),"top"===l.verticalPosition?D.top("0"):D.bottom("0"),y.positionStrategy=D,this._overlay.create(y)}_createInjector(l,y){return C.zs3.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:re,useValue:y},{provide:G,useValue:l.data}]})}}return r.\u0275fac=function(l){return new(l||r)(C.LFG(t.aV),C.LFG(L.Kd),C.LFG(C.zs3),C.LFG(T.Yg),C.LFG(r,12),C.LFG(ee))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac}),r})(),i=(()=>{class r extends S{constructor(l,y,D,k,b,n){super(l,y,D,k,b,n),this.simpleSnackBarComponent=ie,this.snackBarContainerComponent=ne,this.handsetCssClass="mat-snack-bar-handset"}}return r.\u0275fac=function(l){return new(l||r)(C.LFG(t.aV),C.LFG(L.Kd),C.LFG(C.zs3),C.LFG(T.Yg),C.LFG(r,12),C.LFG(ee))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:le}),r})()},6308:(ke,J,p)=>{"use strict";p.d(J,{JX:()=>i,YE:()=>re,nU:()=>S});var t=p(4650),e=p(4761),f=p(1281),C=p(9521),a=p(3238),M=p(7579),d=p(6451),R=p(7340),h=p(6895);const I=["mat-sort-header",""];function E(r,u){if(1&r){const l=t.EpF();t.TgZ(0,"div",3),t.NdJ("@arrowPosition.start",function(){t.CHM(l);const D=t.oxw();return t.KtG(D._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){t.CHM(l);const D=t.oxw();return t.KtG(D._disableViewStateAnimation=!1)}),t._UZ(1,"div",4),t.TgZ(2,"div",5),t._UZ(3,"div",6)(4,"div",7)(5,"div",8),t.qZA()()}if(2&r){const l=t.oxw();t.Q6J("@arrowOpacity",l._getArrowViewState())("@arrowPosition",l._getArrowViewState())("@allowChildren",l._getArrowDirectionState()),t.xp6(2),t.Q6J("@indicator",l._getArrowDirectionState()),t.xp6(1),t.Q6J("@leftPointer",l._getArrowDirectionState()),t.xp6(1),t.Q6J("@rightPointer",l._getArrowDirectionState())}}const L=["*"],K=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),Q=(0,a.dB)((0,a.Id)(class{}));let re=(()=>{class r extends Q{constructor(l){super(),this._defaultOptions=l,this.sortables=new Map,this._stateChanges=new M.x,this.start="asc",this._direction="",this.sortChange=new t.vpe}get direction(){return this._direction}set direction(l){this._direction=l}get disableClear(){return this._disableClear}set disableClear(l){this._disableClear=(0,f.Ig)(l)}register(l){this.sortables.set(l.id,l)}deregister(l){this.sortables.delete(l.id)}sort(l){this.active!=l.id?(this.active=l.id,this.direction=l.start?l.start:this.start):this.direction=this.getNextSortDirection(l),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(l){if(!l)return"";let D=function ie(r,u){let l=["asc","desc"];return"desc"==r&&l.reverse(),u||l.push(""),l}(l.start||this.start,l?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),k=D.indexOf(this.direction)+1;return k>=D.length&&(k=0),D[k]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return r.\u0275fac=function(l){return new(l||r)(t.Y36(K,8))},r.\u0275dir=t.lG2({type:r,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[t.qOj,t.TTD]}),r})();const ce=a.mZ.ENTERING+" "+a.yN.STANDARD_CURVE,ae={indicator:(0,R.X$)("indicator",[(0,R.SB)("active-asc, asc",(0,R.oB)({transform:"translateY(0px)"})),(0,R.SB)("active-desc, desc",(0,R.oB)({transform:"translateY(10px)"})),(0,R.eR)("active-asc <=> active-desc",(0,R.jt)(ce))]),leftPointer:(0,R.X$)("leftPointer",[(0,R.SB)("active-asc, asc",(0,R.oB)({transform:"rotate(-45deg)"})),(0,R.SB)("active-desc, desc",(0,R.oB)({transform:"rotate(45deg)"})),(0,R.eR)("active-asc <=> active-desc",(0,R.jt)(ce))]),rightPointer:(0,R.X$)("rightPointer",[(0,R.SB)("active-asc, asc",(0,R.oB)({transform:"rotate(45deg)"})),(0,R.SB)("active-desc, desc",(0,R.oB)({transform:"rotate(-45deg)"})),(0,R.eR)("active-asc <=> active-desc",(0,R.jt)(ce))]),arrowOpacity:(0,R.X$)("arrowOpacity",[(0,R.SB)("desc-to-active, asc-to-active, active",(0,R.oB)({opacity:1})),(0,R.SB)("desc-to-hint, asc-to-hint, hint",(0,R.oB)({opacity:.54})),(0,R.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,R.oB)({opacity:0})),(0,R.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,R.jt)("0ms")),(0,R.eR)("* <=> *",(0,R.jt)(ce))]),arrowPosition:(0,R.X$)("arrowPosition",[(0,R.eR)("* => desc-to-hint, * => desc-to-active",(0,R.jt)(ce,(0,R.F4)([(0,R.oB)({transform:"translateY(-25%)"}),(0,R.oB)({transform:"translateY(0)"})]))),(0,R.eR)("* => hint-to-desc, * => active-to-desc",(0,R.jt)(ce,(0,R.F4)([(0,R.oB)({transform:"translateY(0)"}),(0,R.oB)({transform:"translateY(25%)"})]))),(0,R.eR)("* => asc-to-hint, * => asc-to-active",(0,R.jt)(ce,(0,R.F4)([(0,R.oB)({transform:"translateY(25%)"}),(0,R.oB)({transform:"translateY(0)"})]))),(0,R.eR)("* => hint-to-asc, * => active-to-asc",(0,R.jt)(ce,(0,R.F4)([(0,R.oB)({transform:"translateY(0)"}),(0,R.oB)({transform:"translateY(-25%)"})]))),(0,R.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,R.oB)({transform:"translateY(0)"})),(0,R.SB)("hint-to-desc, active-to-desc, desc",(0,R.oB)({transform:"translateY(-25%)"})),(0,R.SB)("hint-to-asc, active-to-asc, asc",(0,R.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,R.X$)("allowChildren",[(0,R.eR)("* <=> *",[(0,R.IO)("@*",(0,R.pV)(),{optional:!0})])])};let ne=(()=>{class r{constructor(){this.changes=new M.x}}return r.\u0275fac=function(l){return new(l||r)},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const ee={provide:ne,deps:[[new t.FiY,new t.tp0,ne]],useFactory:function le(r){return r||new ne}},pe=(0,a.Id)(class{});let S=(()=>{class r extends pe{constructor(l,y,D,k,b,n,_,W){super(),this._intl=l,this._changeDetectorRef=y,this._sort=D,this._columnDef=k,this._focusMonitor=b,this._elementRef=n,this._ariaDescriber=_,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",W?.arrowPosition&&(this.arrowPosition=W?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(l){this._updateSortActionDescription(l)}get disableClear(){return this._disableClear}set disableClear(l){this._disableClear=(0,f.Ig)(l)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(l=>{const y=!!l;y!==this._showIndicatorHint&&(this._setIndicatorHintVisible(y),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(l){this._isDisabled()&&l||(this._showIndicatorHint=l,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(l){this._viewState=l||{},this._disableViewStateAnimation&&(this._viewState={toState:l.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(l){!this._isDisabled()&&(l.keyCode===C.L_||l.keyCode===C.K5)&&(l.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const l=this._viewState.fromState;return(l?`${l}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(l){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,l)),this._sortActionDescription=l}_handleStateChanges(){this._rerenderSubscription=(0,d.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return r.\u0275fac=function(l){return new(l||r)(t.Y36(ne),t.Y36(t.sBO),t.Y36(re,8),t.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),t.Y36(e.tE),t.Y36(t.SBq),t.Y36(e.$s,8),t.Y36(K,8))},r.\u0275cmp=t.Xpm({type:r,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(l,y){1&l&&t.NdJ("click",function(){return y._handleClick()})("keydown",function(k){return y._handleKeydown(k)})("mouseenter",function(){return y._setIndicatorHintVisible(!0)})("mouseleave",function(){return y._setIndicatorHintVisible(!1)}),2&l&&(t.uIk("aria-sort",y._getAriaSortAttribute()),t.ekj("mat-sort-header-disabled",y._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[t.qOj],attrs:I,ngContentSelectors:L,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(l,y){1&l&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1),t.Hsn(2),t.qZA(),t.YNc(3,E,6,6,"div",2),t.qZA()),2&l&&(t.ekj("mat-sort-header-sorted",y._isSorted())("mat-sort-header-position-before","before"===y.arrowPosition),t.uIk("tabindex",y._isDisabled()?null:0)("role",y._isDisabled()?null:"button"),t.xp6(3),t.Q6J("ngIf",y._renderArrow()))},dependencies:[h.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[ae.indicator,ae.leftPointer,ae.rightPointer,ae.arrowOpacity,ae.arrowPosition,ae.allowChildren]},changeDetection:0}),r})(),i=(()=>{class r{}return r.\u0275fac=function(l){return new(l||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({providers:[ee],imports:[h.ez,a.BQ]}),r})()},8425:(ke,J,p)=>{"use strict";p.d(J,{C0:()=>Ee,Ic:()=>he,T5:()=>we,VY:()=>me,Vq:()=>ye,fd:()=>de,z9:()=>Ge});var t=p(4080),e=p(2138),f=p(6895),C=p(4650),a=p(4859),M=p(3238),d=p(7392),R=p(4761),h=p(7579),I=p(727),E=p(445),L=p(3900),T=p(4004),N=p(8675),w=p(2722),G=p(1884),K=p(7340);function Q(Y,j){if(1&Y&&C.GkF(0,8),2&Y){const Ce=C.oxw();C.Q6J("ngTemplateOutlet",Ce.iconOverrides[Ce.state])("ngTemplateOutletContext",Ce._getIconContext())}}function re(Y,j){if(1&Y&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&Y){const Ce=C.oxw(2);C.xp6(1),C.Oqu(Ce._getDefaultTextForState(Ce.state))}}function ie(Y,j){if(1&Y&&(C.TgZ(0,"span",14),C._uU(1),C.qZA()),2&Y){const Ce=C.oxw(2);C.xp6(1),C.Oqu(Ce._intl.completedLabel)}}function ce(Y,j){if(1&Y&&(C.TgZ(0,"span",14),C._uU(1),C.qZA()),2&Y){const Ce=C.oxw(2);C.xp6(1),C.Oqu(Ce._intl.editableLabel)}}function ae(Y,j){if(1&Y&&(C.TgZ(0,"mat-icon",13),C._uU(1),C.qZA()),2&Y){const Ce=C.oxw(2);C.xp6(1),C.Oqu(Ce._getDefaultTextForState(Ce.state))}}function ne(Y,j){if(1&Y&&(C.ynx(0,9),C.YNc(1,re,2,1,"span",10),C.YNc(2,ie,2,1,"span",11),C.YNc(3,ce,2,1,"span",11),C.YNc(4,ae,2,1,"mat-icon",12),C.BQk()),2&Y){const Ce=C.oxw();C.Q6J("ngSwitch",Ce.state),C.xp6(1),C.Q6J("ngSwitchCase","number"),C.xp6(1),C.Q6J("ngIf","done"===Ce.state),C.xp6(1),C.Q6J("ngIf","edit"===Ce.state)}}function le(Y,j){if(1&Y&&(C.TgZ(0,"div",15),C.GkF(1,16),C.qZA()),2&Y){const Ce=C.oxw();C.xp6(1),C.Q6J("ngTemplateOutlet",Ce._templateLabel().template)}}function ee(Y,j){if(1&Y&&(C.TgZ(0,"div",15),C._uU(1),C.qZA()),2&Y){const Ce=C.oxw();C.xp6(1),C.Oqu(Ce.label)}}function pe(Y,j){if(1&Y&&(C.TgZ(0,"div",17),C._uU(1),C.qZA()),2&Y){const Ce=C.oxw();C.xp6(1),C.Oqu(Ce._intl.optionalLabel)}}function S(Y,j){if(1&Y&&(C.TgZ(0,"div",18),C._uU(1),C.qZA()),2&Y){const Ce=C.oxw();C.xp6(1),C.Oqu(Ce.errorMessage)}}function i(Y,j){}function r(Y,j){if(1&Y&&(C.Hsn(0),C.YNc(1,i,0,0,"ng-template",0)),2&Y){const Ce=C.oxw();C.xp6(1),C.Q6J("cdkPortalOutlet",Ce._portal)}}const u=["*"];function l(Y,j){1&Y&&C._UZ(0,"div",11)}const y=function(Y,j){return{step:Y,i:j}};function D(Y,j){if(1&Y&&(C.ynx(0),C.GkF(1,9),C.YNc(2,l,1,0,"div",10),C.BQk()),2&Y){const Ce=j.$implicit,Se=j.index,X=j.last;C.oxw(2);const Ye=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",Ye)("ngTemplateOutletContext",C.WLB(3,y,Ce,Se)),C.xp6(1),C.Q6J("ngIf",!X)}}const k=function(Y){return{animationDuration:Y}},b=function(Y,j){return{value:Y,params:j}};function n(Y,j){if(1&Y){const Ce=C.EpF();C.TgZ(0,"div",12),C.NdJ("@horizontalStepTransition.done",function(X){C.CHM(Ce);const Ye=C.oxw(2);return C.KtG(Ye._animationDone.next(X))}),C.GkF(1,13),C.qZA()}if(2&Y){const Ce=j.$implicit,Se=j.index,X=C.oxw(2);C.ekj("mat-horizontal-stepper-content-inactive",X.selectedIndex!==Se),C.Q6J("@horizontalStepTransition",C.WLB(8,b,X._getAnimationDirection(Se),C.VKq(6,k,X._getAnimationDuration())))("id",X._getStepContentId(Se)),C.uIk("aria-labelledby",X._getStepLabelId(Se)),C.xp6(1),C.Q6J("ngTemplateOutlet",Ce.content)}}function _(Y,j){if(1&Y&&(C.TgZ(0,"div",4)(1,"div",5),C.YNc(2,D,3,6,"ng-container",6),C.qZA(),C.TgZ(3,"div",7),C.YNc(4,n,2,11,"div",8),C.qZA()()),2&Y){const Ce=C.oxw();C.xp6(2),C.Q6J("ngForOf",Ce.steps),C.xp6(2),C.Q6J("ngForOf",Ce.steps)}}function W(Y,j){if(1&Y){const Ce=C.EpF();C.TgZ(0,"div",15),C.GkF(1,9),C.TgZ(2,"div",16)(3,"div",17),C.NdJ("@verticalStepTransition.done",function(X){C.CHM(Ce);const Ye=C.oxw(2);return C.KtG(Ye._animationDone.next(X))}),C.TgZ(4,"div",18),C.GkF(5,13),C.qZA()()()()}if(2&Y){const Ce=j.$implicit,Se=j.index,X=j.last,Ye=C.oxw(2),Le=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",Le)("ngTemplateOutletContext",C.WLB(10,y,Ce,Se)),C.xp6(1),C.ekj("mat-stepper-vertical-line",!X),C.xp6(1),C.ekj("mat-vertical-stepper-content-inactive",Ye.selectedIndex!==Se),C.Q6J("@verticalStepTransition",C.WLB(15,b,Ye._getAnimationDirection(Se),C.VKq(13,k,Ye._getAnimationDuration())))("id",Ye._getStepContentId(Se)),C.uIk("aria-labelledby",Ye._getStepLabelId(Se)),C.xp6(2),C.Q6J("ngTemplateOutlet",Ce.content)}}function P(Y,j){if(1&Y&&(C.ynx(0),C.YNc(1,W,6,18,"div",14),C.BQk()),2&Y){const Ce=C.oxw();C.xp6(1),C.Q6J("ngForOf",Ce.steps)}}function U(Y,j){if(1&Y){const Ce=C.EpF();C.TgZ(0,"mat-step-header",19),C.NdJ("click",function(){const Ye=C.CHM(Ce).step;return C.KtG(Ye.select())})("keydown",function(X){C.CHM(Ce);const Ye=C.oxw();return C.KtG(Ye._onKeydown(X))}),C.qZA()}if(2&Y){const Ce=j.step,Se=j.i,X=C.oxw();C.ekj("mat-horizontal-stepper-header","horizontal"===X.orientation)("mat-vertical-stepper-header","vertical"===X.orientation),C.Q6J("tabIndex",X._getFocusIndex()===Se?0:-1)("id",X._getStepLabelId(Se))("index",Se)("state",X._getIndicatorType(Se,Ce.state))("label",Ce.stepLabel||Ce.label)("selected",X.selectedIndex===Se)("active",X._stepIsNavigable(Se,Ce))("optional",Ce.optional)("errorMessage",Ce.errorMessage)("iconOverrides",X._iconOverrides)("disableRipple",X.disableRipple||!X._stepIsNavigable(Se,Ce))("color",Ce.color||X.color),C.uIk("aria-posinset",Se+1)("aria-setsize",X.steps.length)("aria-controls",X._getStepContentId(Se))("aria-selected",X.selectedIndex==Se)("aria-label",Ce.ariaLabel||null)("aria-labelledby",!Ce.ariaLabel&&Ce.ariaLabelledby?Ce.ariaLabelledby:null)("aria-disabled",!X._stepIsNavigable(Se,Ce)||null)}}let me=(()=>{class Y extends e.u6{}return Y.\u0275fac=function(){let j;return function(Se){return(j||(j=C.n5z(Y)))(Se||Y)}}(),Y.\u0275dir=C.lG2({type:Y,selectors:[["","matStepLabel",""]],features:[C.qOj]}),Y})(),nt=(()=>{class Y{constructor(){this.changes=new h.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return Y.\u0275fac=function(Ce){return new(Ce||Y)},Y.\u0275prov=C.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})();const Oe={provide:nt,deps:[[new C.FiY,new C.tp0,nt]],useFactory:function Pe(Y){return Y||new nt}},De=(0,M.pj)(class extends e.KL{constructor(j){super(j)}},"primary");let ue=(()=>{class Y extends De{constructor(Ce,Se,X,Ye){super(X),this._intl=Ce,this._focusMonitor=Se,this._intlSubscription=Ce.changes.subscribe(()=>Ye.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(Ce,Se){Ce?this._focusMonitor.focusVia(this._elementRef,Ce,Se):this._elementRef.nativeElement.focus(Se)}_stringLabel(){return this.label instanceof me?null:this.label}_templateLabel(){return this.label instanceof me?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(Ce){return"number"==Ce?`${this.index+1}`:"edit"==Ce?"create":"error"==Ce?"warning":Ce}}return Y.\u0275fac=function(Ce){return new(Ce||Y)(C.Y36(nt),C.Y36(R.tE),C.Y36(C.SBq),C.Y36(C.sBO))},Y.\u0275cmp=C.Xpm({type:Y,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[C.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(Ce,Se){1&Ce&&(C._UZ(0,"div",0),C.TgZ(1,"div")(2,"div",1),C.YNc(3,Q,1,2,"ng-container",2),C.YNc(4,ne,5,4,"ng-container",3),C.qZA()(),C.TgZ(5,"div",4),C.YNc(6,le,2,1,"div",5),C.YNc(7,ee,2,1,"div",5),C.YNc(8,pe,2,1,"div",6),C.YNc(9,S,2,1,"div",7),C.qZA()),2&Ce&&(C.Q6J("matRippleTrigger",Se._getHostElement())("matRippleDisabled",Se.disableRipple),C.xp6(1),C.Gre("mat-step-icon-state-",Se.state," mat-step-icon"),C.ekj("mat-step-icon-selected",Se.selected),C.xp6(1),C.Q6J("ngSwitch",!(!Se.iconOverrides||!Se.iconOverrides[Se.state])),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(2),C.ekj("mat-step-label-active",Se.active)("mat-step-label-selected",Se.selected)("mat-step-label-error","error"==Se.state),C.xp6(1),C.Q6J("ngIf",Se._templateLabel()),C.xp6(1),C.Q6J("ngIf",Se._stringLabel()),C.xp6(1),C.Q6J("ngIf",Se.optional&&"error"!=Se.state),C.xp6(1),C.Q6J("ngIf","error"==Se.state))},dependencies:[f.O5,f.tP,f.RF,f.n9,f.ED,d.Hw,M.wG],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:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),Y})();const $={horizontalStepTransition:(0,K.X$)("horizontalStepTransition",[(0,K.SB)("previous",(0,K.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,K.SB)("current",(0,K.oB)({transform:"none",visibility:"inherit"})),(0,K.SB)("next",(0,K.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,K.eR)("* => *",(0,K.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,K.X$)("verticalStepTransition",[(0,K.SB)("previous",(0,K.oB)({height:"0px",visibility:"hidden"})),(0,K.SB)("next",(0,K.oB)({height:"0px",visibility:"hidden"})),(0,K.SB)("current",(0,K.oB)({height:"*",visibility:"inherit"})),(0,K.eR)("* <=> current",(0,K.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let Ge=(()=>{class Y{constructor(Ce){this.templateRef=Ce}}return Y.\u0275fac=function(Ce){return new(Ce||Y)(C.Y36(C.Rgc))},Y.\u0275dir=C.lG2({type:Y,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),Y})(),ut=(()=>{class Y{constructor(Ce){this._template=Ce}}return Y.\u0275fac=function(Ce){return new(Ce||Y)(C.Y36(C.Rgc))},Y.\u0275dir=C.lG2({type:Y,selectors:[["ng-template","matStepContent",""]]}),Y})(),Ee=(()=>{class Y extends e.be{constructor(Ce,Se,X,Ye){super(Ce,Ye),this._errorStateMatcher=Se,this._viewContainerRef=X,this._isSelected=I.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,L.w)(()=>this._stepper.selectionChange.pipe((0,T.U)(Ce=>Ce.selectedStep===this),(0,N.O)(this._stepper.selected===this)))).subscribe(Ce=>{Ce&&this._lazyContent&&!this._portal&&(this._portal=new t.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(Ce,Se){return this._errorStateMatcher.isErrorState(Ce,Se)||!!(Ce&&Ce.invalid&&this.interacted)}}return Y.\u0275fac=function(Ce){return new(Ce||Y)(C.Y36((0,C.Gpc)(()=>ye)),C.Y36(M.rD,4),C.Y36(C.s_b),C.Y36(e.gx,8))},Y.\u0275cmp=C.Xpm({type:Y,selectors:[["mat-step"]],contentQueries:function(Ce,Se,X){if(1&Ce&&(C.Suo(X,me,5),C.Suo(X,ut,5)),2&Ce){let Ye;C.iGM(Ye=C.CRH())&&(Se.stepLabel=Ye.first),C.iGM(Ye=C.CRH())&&(Se._lazyContent=Ye.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[C._Bn([{provide:M.rD,useExisting:Y},{provide:e.be,useExisting:Y}]),C.qOj],ngContentSelectors:u,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(Ce,Se){1&Ce&&(C.F$t(),C.YNc(0,r,2,1,"ng-template"))},dependencies:[t.Pl],encapsulation:2,changeDetection:0}),Y})(),ye=(()=>{class Y extends e.B8{constructor(Ce,Se,X){super(Ce,Se,X),this.steps=new C.n_E,this.animationDone=new C.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new h.x,this._animationDuration="";const Ye=X.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===Ye?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(Ce){this._animationDuration=/^\d+$/.test(Ce)?Ce+"ms":Ce}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:Ce,templateRef:Se})=>this._iconOverrides[Ce]=Se),this.steps.changes.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,G.x)((Ce,Se)=>Ce.fromState===Se.fromState&&Ce.toState===Se.toState),(0,w.R)(this._destroyed)).subscribe(Ce=>{"current"===Ce.toState&&this.animationDone.emit()})}_stepIsNavigable(Ce,Se){return Se.completed||this.selectedIndex===Ce||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return Y.\u0275fac=function(Ce){return new(Ce||Y)(C.Y36(E.Is,8),C.Y36(C.sBO),C.Y36(C.SBq))},Y.\u0275cmp=C.Xpm({type:Y,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(Ce,Se,X){if(1&Ce&&(C.Suo(X,Ee,5),C.Suo(X,Ge,5)),2&Ce){let Ye;C.iGM(Ye=C.CRH())&&(Se._steps=Ye),C.iGM(Ye=C.CRH())&&(Se._icons=Ye)}},viewQuery:function(Ce,Se){if(1&Ce&&C.Gf(ue,5),2&Ce){let X;C.iGM(X=C.CRH())&&(Se._stepHeader=X)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(Ce,Se){2&Ce&&(C.uIk("aria-orientation",Se.orientation),C.ekj("mat-stepper-horizontal","horizontal"===Se.orientation)("mat-stepper-vertical","vertical"===Se.orientation)("mat-stepper-label-position-end","horizontal"===Se.orientation&&"end"==Se.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Se.orientation&&"bottom"==Se.labelPosition)("mat-stepper-header-position-bottom","bottom"===Se.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[C._Bn([{provide:e.B8,useExisting:Y}]),C.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(Ce,Se){1&Ce&&(C.ynx(0,0),C.YNc(1,_,5,2,"div",1),C.YNc(2,P,2,1,"ng-container",2),C.BQk(),C.YNc(3,U,1,23,"ng-template",null,3,C.W1O)),2&Ce&&(C.Q6J("ngSwitch",Se.orientation),C.xp6(1),C.Q6J("ngSwitchCase","horizontal"),C.xp6(1),C.Q6J("ngSwitchCase","vertical"))},dependencies:[f.sg,f.O5,f.tP,f.RF,f.n9,ue],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-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}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-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{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[$.horizontalStepTransition,$.verticalStepTransition]},changeDetection:0}),Y})(),he=(()=>{class Y extends e.st{}return Y.\u0275fac=function(){let j;return function(Se){return(j||(j=C.n5z(Y)))(Se||Y)}}(),Y.\u0275dir=C.lG2({type:Y,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(Ce,Se){2&Ce&&C.Ikx("type",Se.type)},inputs:{type:"type"},features:[C.qOj]}),Y})(),de=(()=>{class Y extends e.po{}return Y.\u0275fac=function(){let j;return function(Se){return(j||(j=C.n5z(Y)))(Se||Y)}}(),Y.\u0275dir=C.lG2({type:Y,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(Ce,Se){2&Ce&&C.Ikx("type",Se.type)},inputs:{type:"type"},features:[C.qOj]}),Y})(),we=(()=>{class Y{}return Y.\u0275fac=function(Ce){return new(Ce||Y)},Y.\u0275mod=C.oAB({type:Y}),Y.\u0275inj=C.cJS({providers:[Oe,M.rD],imports:[M.BQ,f.ez,t.eL,a.ot,e.U5,d.Ps,M.si,M.BQ]}),Y})()},671:(ke,J,p)=>{"use strict";p.d(J,{ev:()=>mt,Dz:()=>Nt,w1:()=>rt,yh:()=>Ke,mD:()=>Ae,Q2:()=>ht,Ke:()=>Gt,ge:()=>Qe,fO:()=>et,XQ:()=>Et,as:()=>$t,Gk:()=>at,nj:()=>zt,BZ:()=>ct,by:()=>Vi,p0:()=>Pi});var t=p(4650),e=p(445),f=p(1281),C=p(5017),a=p(3353),M=p(531),d=p(6895),R=p(7579),h=p(457),I=p(1135),E=p(5191),L=p(9646),T=p(2722),N=p(5698);const w=[[["caption"]],[["colgroup"],["col"]]],G=["caption","colgroup, col"];function re(Be){return class extends Be{constructor(...kt){super(...kt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(kt){const _e=this._sticky;this._sticky=(0,f.Ig)(kt),this._hasStickyChanged=_e!==this._sticky}hasStickyChanged(){const kt=this._hasStickyChanged;return this._hasStickyChanged=!1,kt}resetStickyChanged(){this._hasStickyChanged=!1}}}const ie=new t.OlP("CDK_TABLE");let ae=(()=>{class Be{constructor(_e){this.template=_e}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkCellDef",""]]}),Be})(),ne=(()=>{class Be{constructor(_e){this.template=_e}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkHeaderCellDef",""]]}),Be})(),le=(()=>{class Be{constructor(_e){this.template=_e}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkFooterCellDef",""]]}),Be})();class ee{}const pe=re(ee);let S=(()=>{class Be extends pe{constructor(_e){super(),this._table=_e,this._stickyEnd=!1}get name(){return this._name}set name(_e){this._setNameInput(_e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(_e){const Je=this._stickyEnd;this._stickyEnd=(0,f.Ig)(_e),this._hasStickyChanged=Je!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(_e){_e&&(this._name=_e,this.cssClassFriendlyName=_e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(ie,8))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkColumnDef",""]],contentQueries:function(_e,Je,_t){if(1&_e&&(t.Suo(_t,ae,5),t.Suo(_t,ne,5),t.Suo(_t,le,5)),2&_e){let se;t.iGM(se=t.CRH())&&(Je.cell=se.first),t.iGM(se=t.CRH())&&(Je.headerCell=se.first),t.iGM(se=t.CRH())&&(Je.footerCell=se.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Be}]),t.qOj]}),Be})();class i{constructor(kt,_e){_e.nativeElement.classList.add(...kt._columnCssClassName)}}let r=(()=>{class Be extends i{constructor(_e,Je){super(_e,Je)}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(S),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]}),Be})(),u=(()=>{class Be extends i{constructor(_e,Je){if(super(_e,Je),1===_e._table?._elementRef.nativeElement.nodeType){const _t=_e._table._elementRef.nativeElement.getAttribute("role");Je.nativeElement.setAttribute("role","grid"===_t||"treegrid"===_t?"gridcell":"cell")}}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(S),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[t.qOj]}),Be})(),l=(()=>{class Be extends i{constructor(_e,Je){if(super(_e,Je),1===_e._table?._elementRef.nativeElement.nodeType){const _t=_e._table._elementRef.nativeElement.getAttribute("role");Je.nativeElement.setAttribute("role","grid"===_t||"treegrid"===_t?"gridcell":"cell")}}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(S),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]}),Be})();class y{constructor(){this.tasks=[],this.endTasks=[]}}const D=new t.OlP("_COALESCED_STYLE_SCHEDULER");let k=(()=>{class Be{constructor(_e){this._ngZone=_e,this._currentSchedule=null,this._destroyed=new R.x}schedule(_e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(_e)}scheduleEnd(_e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(_e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new y,this._getScheduleObservable().pipe((0,T.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const _e=this._currentSchedule;this._currentSchedule=new y;for(const Je of _e.tasks)Je();for(const Je of _e.endTasks)Je()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,h.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,N.q)(1))}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.LFG(t.R0b))},Be.\u0275prov=t.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),n=(()=>{class Be{constructor(_e,Je){this.template=_e,this._differs=Je}ngOnChanges(_e){if(!this._columnsDiffer){const Je=_e.columns&&_e.columns.currentValue||[];this._columnsDiffer=this._differs.find(Je).create(),this._columnsDiffer.diff(Je)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(_e){return this instanceof P?_e.headerCell.template:this instanceof nt?_e.footerCell.template:_e.cell.template}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},Be.\u0275dir=t.lG2({type:Be,features:[t.TTD]}),Be})();class _ extends n{}const W=re(_);let P=(()=>{class Be extends W{constructor(_e,Je,_t){super(_e,Je),this._table=_t}ngOnChanges(_e){super.ngOnChanges(_e)}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ie,8))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),Be})();class U extends n{}const me=re(U);let nt=(()=>{class Be extends me{constructor(_e,Je,_t){super(_e,Je),this._table=_t}ngOnChanges(_e){super.ngOnChanges(_e)}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ie,8))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),Be})(),Pe=(()=>{class Be extends n{constructor(_e,Je,_t){super(_e,Je),this._table=_t}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ie,8))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]}),Be})(),Oe=(()=>{class Be{constructor(_e){this._viewContainer=_e,Be.mostRecentCellOutlet=this}ngOnDestroy(){Be.mostRecentCellOutlet===this&&(Be.mostRecentCellOutlet=null)}}return Be.mostRecentCellOutlet=null,Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.s_b))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkCellOutlet",""]]}),Be})(),De=(()=>{class Be{}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275cmp=t.Xpm({type:Be,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,Je){1&_e&&t.GkF(0,0)},dependencies:[Oe],encapsulation:2}),Be})(),ue=(()=>{class Be{}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275cmp=t.Xpm({type:Be,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,Je){1&_e&&t.GkF(0,0)},dependencies:[Oe],encapsulation:2}),Be})(),ve=(()=>{class Be{}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275cmp=t.Xpm({type:Be,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,Je){1&_e&&t.GkF(0,0)},dependencies:[Oe],encapsulation:2}),Be})(),Ie=(()=>{class Be{constructor(_e){this.templateRef=_e,this._contentClassName="cdk-no-data-row"}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc))},Be.\u0275dir=t.lG2({type:Be,selectors:[["ng-template","cdkNoDataRow",""]]}),Be})();const $=["top","bottom","left","right"];class Ge{constructor(kt,_e,Je,_t,se=!0,Xe=!0,bt){this._isNativeHtmlTable=kt,this._stickCellCss=_e,this.direction=Je,this._coalescedStyleScheduler=_t,this._isBrowser=se,this._needsPositionStickyOnElement=Xe,this._positionListener=bt,this._cachedCellWidths=[],this._borderCellCss={top:`${_e}-border-elem-top`,bottom:`${_e}-border-elem-bottom`,left:`${_e}-border-elem-left`,right:`${_e}-border-elem-right`}}clearStickyPositioning(kt,_e){const Je=[];for(const _t of kt)if(_t.nodeType===_t.ELEMENT_NODE){Je.push(_t);for(let se=0;se<_t.children.length;se++)Je.push(_t.children[se])}this._coalescedStyleScheduler.schedule(()=>{for(const _t of Je)this._removeStickyStyle(_t,_e)})}updateStickyColumns(kt,_e,Je,_t=!0){if(!kt.length||!this._isBrowser||!_e.some(Ji=>Ji)&&!Je.some(Ji=>Ji))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const se=kt[0],Xe=se.children.length,bt=this._getCellWidths(se,_t),Vt=this._getStickyStartColumnPositions(bt,_e),mi=this._getStickyEndColumnPositions(bt,Je),Hi=_e.lastIndexOf(!0),Ui=Je.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Ji="rtl"===this.direction,an=Ji?"right":"left",_n=Ji?"left":"right";for(const si of kt)for(let Ti=0;Ti<Xe;Ti++){const ot=si.children[Ti];_e[Ti]&&this._addStickyStyle(ot,an,Vt[Ti],Ti===Hi),Je[Ti]&&this._addStickyStyle(ot,_n,mi[Ti],Ti===Ui)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Hi?[]:bt.slice(0,Hi+1).map((si,Ti)=>_e[Ti]?si:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Ui?[]:bt.slice(Ui).map((si,Ti)=>Je[Ti+Ui]?si:null).reverse()}))})}stickRows(kt,_e,Je){if(!this._isBrowser)return;const _t="bottom"===Je?kt.slice().reverse():kt,se="bottom"===Je?_e.slice().reverse():_e,Xe=[],bt=[],Vt=[];for(let Hi=0,Ui=0;Hi<_t.length;Hi++){if(!se[Hi])continue;Xe[Hi]=Ui;const Ji=_t[Hi];Vt[Hi]=this._isNativeHtmlTable?Array.from(Ji.children):[Ji];const an=Ji.getBoundingClientRect().height;Ui+=an,bt[Hi]=an}const mi=se.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let Hi=0;Hi<_t.length;Hi++){if(!se[Hi])continue;const Ui=Xe[Hi],Ji=Hi===mi;for(const an of Vt[Hi])this._addStickyStyle(an,Je,Ui,Ji)}"top"===Je?this._positionListener?.stickyHeaderRowsUpdated({sizes:bt,offsets:Xe,elements:Vt}):this._positionListener?.stickyFooterRowsUpdated({sizes:bt,offsets:Xe,elements:Vt})})}updateStickyFooterContainer(kt,_e){if(!this._isNativeHtmlTable)return;const Je=kt.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{_e.some(_t=>!_t)?this._removeStickyStyle(Je,["bottom"]):this._addStickyStyle(Je,"bottom",0,!1)})}_removeStickyStyle(kt,_e){for(const _t of _e)kt.style[_t]="",kt.classList.remove(this._borderCellCss[_t]);$.some(_t=>-1===_e.indexOf(_t)&&kt.style[_t])?kt.style.zIndex=this._getCalculatedZIndex(kt):(kt.style.zIndex="",this._needsPositionStickyOnElement&&(kt.style.position=""),kt.classList.remove(this._stickCellCss))}_addStickyStyle(kt,_e,Je,_t){kt.classList.add(this._stickCellCss),_t&&kt.classList.add(this._borderCellCss[_e]),kt.style[_e]=`${Je}px`,kt.style.zIndex=this._getCalculatedZIndex(kt),this._needsPositionStickyOnElement&&(kt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(kt){const _e={top:100,bottom:10,left:1,right:1};let Je=0;for(const _t of $)kt.style[_t]&&(Je+=_e[_t]);return Je?`${Je}`:""}_getCellWidths(kt,_e=!0){if(!_e&&this._cachedCellWidths.length)return this._cachedCellWidths;const Je=[],_t=kt.children;for(let se=0;se<_t.length;se++)Je.push(_t[se].getBoundingClientRect().width);return this._cachedCellWidths=Je,Je}_getStickyStartColumnPositions(kt,_e){const Je=[];let _t=0;for(let se=0;se<kt.length;se++)_e[se]&&(Je[se]=_t,_t+=kt[se]);return Je}_getStickyEndColumnPositions(kt,_e){const Je=[];let _t=0;for(let se=kt.length;se>0;se--)_e[se]&&(Je[se]=_t,_t+=kt[se]);return Je}}const Ce=new t.OlP("CDK_SPL");let X=(()=>{class Be{constructor(_e,Je){this.viewContainer=_e,this.elementRef=Je}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.s_b),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","rowOutlet",""]]}),Be})(),Ye=(()=>{class Be{constructor(_e,Je){this.viewContainer=_e,this.elementRef=Je}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.s_b),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","headerRowOutlet",""]]}),Be})(),Le=(()=>{class Be{constructor(_e,Je){this.viewContainer=_e,this.elementRef=Je}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.s_b),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","footerRowOutlet",""]]}),Be})(),gt=(()=>{class Be{constructor(_e,Je){this.viewContainer=_e,this.elementRef=Je}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.s_b),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","noDataRowOutlet",""]]}),Be})(),jt=(()=>{class Be{constructor(_e,Je,_t,se,Xe,bt,Vt,mi,Hi,Ui,Ji,an){this._differs=_e,this._changeDetectorRef=Je,this._elementRef=_t,this._dir=Xe,this._platform=Vt,this._viewRepeater=mi,this._coalescedStyleScheduler=Hi,this._viewportRuler=Ui,this._stickyPositioningListener=Ji,this._ngZone=an,this._onDestroy=new R.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new t.vpe,this.viewChange=new I.X({start:0,end:Number.MAX_VALUE}),se||this._elementRef.nativeElement.setAttribute("role","table"),this._document=bt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(_e){this._trackByFn=_e}get dataSource(){return this._dataSource}set dataSource(_e){this._dataSource!==_e&&this._switchDataSource(_e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(_e){this._multiTemplateDataRows=(0,f.Ig)(_e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(_e){this._fixedLayout=(0,f.Ig)(_e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((_e,Je)=>this.trackBy?this.trackBy(Je.dataIndex,Je.data):Je),this._viewportRuler.change().pipe((0,T.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Je=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Je,this._forceRecalculateCellWidths=Je,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(_e=>{_e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,C.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const _e=this._dataDiffer.diff(this._renderRows);if(!_e)return this._updateNoDataRow(),void this.contentChanged.next();const Je=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(_e,Je,(_t,se,Xe)=>this._getEmbeddedViewArgs(_t.item,Xe),_t=>_t.item.data,_t=>{1===_t.operation&&_t.context&&this._renderCellTemplateForItem(_t.record.item.rowDef,_t.context)}),this._updateRowIndexContext(),_e.forEachIdentityChange(_t=>{Je.get(_t.currentIndex).context.$implicit=_t.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,N.q)(1),(0,T.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(_e){this._customColumnDefs.add(_e)}removeColumnDef(_e){this._customColumnDefs.delete(_e)}addRowDef(_e){this._customRowDefs.add(_e)}removeRowDef(_e){this._customRowDefs.delete(_e)}addHeaderRowDef(_e){this._customHeaderRowDefs.add(_e),this._headerRowDefChanged=!0}removeHeaderRowDef(_e){this._customHeaderRowDefs.delete(_e),this._headerRowDefChanged=!0}addFooterRowDef(_e){this._customFooterRowDefs.add(_e),this._footerRowDefChanged=!0}removeFooterRowDef(_e){this._customFooterRowDefs.delete(_e),this._footerRowDefChanged=!0}setNoDataRow(_e){this._customNoDataRow=_e}updateStickyHeaderRowStyles(){const _e=this._getRenderedRows(this._headerRowOutlet),_t=this._elementRef.nativeElement.querySelector("thead");_t&&(_t.style.display=_e.length?"":"none");const se=this._headerRowDefs.map(Xe=>Xe.sticky);this._stickyStyler.clearStickyPositioning(_e,["top"]),this._stickyStyler.stickRows(_e,se,"top"),this._headerRowDefs.forEach(Xe=>Xe.resetStickyChanged())}updateStickyFooterRowStyles(){const _e=this._getRenderedRows(this._footerRowOutlet),_t=this._elementRef.nativeElement.querySelector("tfoot");_t&&(_t.style.display=_e.length?"":"none");const se=this._footerRowDefs.map(Xe=>Xe.sticky);this._stickyStyler.clearStickyPositioning(_e,["bottom"]),this._stickyStyler.stickRows(_e,se,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,se),this._footerRowDefs.forEach(Xe=>Xe.resetStickyChanged())}updateStickyColumnStyles(){const _e=this._getRenderedRows(this._headerRowOutlet),Je=this._getRenderedRows(this._rowOutlet),_t=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([..._e,...Je,..._t],["left","right"]),this._stickyColumnStylesNeedReset=!1),_e.forEach((se,Xe)=>{this._addStickyColumnStyles([se],this._headerRowDefs[Xe])}),this._rowDefs.forEach(se=>{const Xe=[];for(let bt=0;bt<Je.length;bt++)this._renderRows[bt].rowDef===se&&Xe.push(Je[bt]);this._addStickyColumnStyles(Xe,se)}),_t.forEach((se,Xe)=>{this._addStickyColumnStyles([se],this._footerRowDefs[Xe])}),Array.from(this._columnDefsByName.values()).forEach(se=>se.resetStickyChanged())}_getAllRenderRows(){const _e=[],Je=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let _t=0;_t<this._data.length;_t++){let se=this._data[_t];const Xe=this._getRenderRowsForData(se,_t,Je.get(se));this._cachedRenderRowsMap.has(se)||this._cachedRenderRowsMap.set(se,new WeakMap);for(let bt=0;bt<Xe.length;bt++){let Vt=Xe[bt];const mi=this._cachedRenderRowsMap.get(Vt.data);mi.has(Vt.rowDef)?mi.get(Vt.rowDef).push(Vt):mi.set(Vt.rowDef,[Vt]),_e.push(Vt)}}return _e}_getRenderRowsForData(_e,Je,_t){return this._getRowDefs(_e,Je).map(Xe=>{const bt=_t&&_t.has(Xe)?_t.get(Xe):[];if(bt.length){const Vt=bt.shift();return Vt.dataIndex=Je,Vt}return{data:_e,rowDef:Xe,dataIndex:Je}})}_cacheColumnDefs(){this._columnDefsByName.clear(),hi(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Je=>{this._columnDefsByName.has(Je.name),this._columnDefsByName.set(Je.name,Je)})}_cacheRowDefs(){this._headerRowDefs=hi(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=hi(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=hi(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const _e=this._rowDefs.filter(Je=>!Je.when);this._defaultRowDef=_e[0]}_renderUpdatedColumns(){const _e=(Xe,bt)=>Xe||!!bt.getColumnsDiff(),Je=this._rowDefs.reduce(_e,!1);Je&&this._forceRenderDataRows();const _t=this._headerRowDefs.reduce(_e,!1);_t&&this._forceRenderHeaderRows();const se=this._footerRowDefs.reduce(_e,!1);return se&&this._forceRenderFooterRows(),Je||_t||se}_switchDataSource(_e){this._data=[],(0,C.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),_e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=_e}_observeRenderChanges(){if(!this.dataSource)return;let _e;(0,C.Z9)(this.dataSource)?_e=this.dataSource.connect(this):(0,E.b)(this.dataSource)?_e=this.dataSource:Array.isArray(this.dataSource)&&(_e=(0,L.of)(this.dataSource)),this._renderChangeSubscription=_e.pipe((0,T.R)(this._onDestroy)).subscribe(Je=>{this._data=Je||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((_e,Je)=>this._renderRow(this._headerRowOutlet,_e,Je)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((_e,Je)=>this._renderRow(this._footerRowOutlet,_e,Je)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(_e,Je){const _t=Array.from(Je.columns||[]).map(bt=>this._columnDefsByName.get(bt)),se=_t.map(bt=>bt.sticky),Xe=_t.map(bt=>bt.stickyEnd);this._stickyStyler.updateStickyColumns(_e,se,Xe,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(_e){const Je=[];for(let _t=0;_t<_e.viewContainer.length;_t++){const se=_e.viewContainer.get(_t);Je.push(se.rootNodes[0])}return Je}_getRowDefs(_e,Je){if(1==this._rowDefs.length)return[this._rowDefs[0]];let _t=[];if(this.multiTemplateDataRows)_t=this._rowDefs.filter(se=>!se.when||se.when(Je,_e));else{let se=this._rowDefs.find(Xe=>Xe.when&&Xe.when(Je,_e))||this._defaultRowDef;se&&_t.push(se)}return _t}_getEmbeddedViewArgs(_e,Je){return{templateRef:_e.rowDef.template,context:{$implicit:_e.data},index:Je}}_renderRow(_e,Je,_t,se={}){const Xe=_e.viewContainer.createEmbeddedView(Je.template,se,_t);return this._renderCellTemplateForItem(Je,se),Xe}_renderCellTemplateForItem(_e,Je){for(let _t of this._getCellTemplates(_e))Oe.mostRecentCellOutlet&&Oe.mostRecentCellOutlet._viewContainer.createEmbeddedView(_t,Je);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const _e=this._rowOutlet.viewContainer;for(let Je=0,_t=_e.length;Je<_t;Je++){const Xe=_e.get(Je).context;Xe.count=_t,Xe.first=0===Je,Xe.last=Je===_t-1,Xe.even=Je%2==0,Xe.odd=!Xe.even,this.multiTemplateDataRows?(Xe.dataIndex=this._renderRows[Je].dataIndex,Xe.renderIndex=Je):Xe.index=this._renderRows[Je].dataIndex}}_getCellTemplates(_e){return _e&&_e.columns?Array.from(_e.columns,Je=>{const _t=this._columnDefsByName.get(Je);return _e.extractCellTemplate(_t)}):[]}_applyNativeTableSections(){const _e=this._document.createDocumentFragment(),Je=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const _t of Je){const se=this._document.createElement(_t.tag);se.setAttribute("role","rowgroup");for(const Xe of _t.outlets)se.appendChild(Xe.elementRef.nativeElement);_e.appendChild(se)}this._elementRef.nativeElement.appendChild(_e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const _e=(Je,_t)=>Je||_t.hasStickyChanged();this._headerRowDefs.reduce(_e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(_e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(_e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ge(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,L.of)()).pipe((0,T.R)(this._onDestroy)).subscribe(Je=>{this._stickyStyler.direction=Je,this.updateStickyColumnStyles()})}_getOwnDefs(_e){return _e.filter(Je=>!Je._table||Je._table===this)}_updateNoDataRow(){const _e=this._customNoDataRow||this._noDataRow;if(!_e)return;const Je=0===this._rowOutlet.viewContainer.length;if(Je===this._isShowingNoDataRow)return;const _t=this._noDataRowOutlet.viewContainer;if(Je){const se=_t.createEmbeddedView(_e.templateRef),Xe=se.rootNodes[0];1===se.rootNodes.length&&Xe?.nodeType===this._document.ELEMENT_NODE&&(Xe.setAttribute("role","row"),Xe.classList.add(_e._contentClassName))}else _t.clear();this._isShowingNoDataRow=Je}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(e.Is,8),t.Y36(d.K0),t.Y36(a.t4),t.Y36(C.k),t.Y36(D),t.Y36(M.rL),t.Y36(Ce,12),t.Y36(t.R0b,8))},Be.\u0275cmp=t.Xpm({type:Be,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(_e,Je,_t){if(1&_e&&(t.Suo(_t,Ie,5),t.Suo(_t,S,5),t.Suo(_t,Pe,5),t.Suo(_t,P,5),t.Suo(_t,nt,5)),2&_e){let se;t.iGM(se=t.CRH())&&(Je._noDataRow=se.first),t.iGM(se=t.CRH())&&(Je._contentColumnDefs=se),t.iGM(se=t.CRH())&&(Je._contentRowDefs=se),t.iGM(se=t.CRH())&&(Je._contentHeaderRowDefs=se),t.iGM(se=t.CRH())&&(Je._contentFooterRowDefs=se)}},viewQuery:function(_e,Je){if(1&_e&&(t.Gf(X,7),t.Gf(Ye,7),t.Gf(Le,7),t.Gf(gt,7)),2&_e){let _t;t.iGM(_t=t.CRH())&&(Je._rowOutlet=_t.first),t.iGM(_t=t.CRH())&&(Je._headerRowOutlet=_t.first),t.iGM(_t=t.CRH())&&(Je._footerRowOutlet=_t.first),t.iGM(_t=t.CRH())&&(Je._noDataRowOutlet=_t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(_e,Je){2&_e&&t.ekj("cdk-table-fixed-layout",Je.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:ie,useExisting:Be},{provide:C.k,useClass:C.yy},{provide:D,useClass:k},{provide:Ce,useValue:null}])],ngContentSelectors:G,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(_e,Je){1&_e&&(t.F$t(w),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[X,Ye,Le,gt],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Be})();function hi(Be,kt){return Be.concat(Array.from(kt))}let pt=(()=>{class Be{}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275mod=t.oAB({type:Be}),Be.\u0275inj=t.cJS({imports:[M.Cl]}),Be})();var vt=p(3238),Ct=p(6451),At=p(9841),dt=p(4004);const ze=[[["caption"]],[["colgroup"],["col"]]],Ve=["caption","colgroup, col"];let ct=(()=>{class Be extends jt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Be.\u0275fac=function(){let kt;return function(Je){return(kt||(kt=t.n5z(Be)))(Je||Be)}}(),Be.\u0275cmp=t.Xpm({type:Be,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(_e,Je){2&_e&&t.ekj("mat-table-fixed-layout",Je.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:C.k,useClass:C.yy},{provide:jt,useExisting:Be},{provide:ie,useExisting:Be},{provide:D,useClass:k},{provide:Ce,useValue:null}]),t.qOj],ngContentSelectors:Ve,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(_e,Je){1&_e&&(t.F$t(ze),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[X,Ye,Le,gt],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Be})(),Nt=(()=>{class Be extends ae{}return Be.\u0275fac=function(){let kt;return function(Je){return(kt||(kt=t.n5z(Be)))(Je||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:ae,useExisting:Be}]),t.qOj]}),Be})(),et=(()=>{class Be extends ne{}return Be.\u0275fac=function(){let kt;return function(Je){return(kt||(kt=t.n5z(Be)))(Je||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:ne,useExisting:Be}]),t.qOj]}),Be})(),Ae=(()=>{class Be extends le{}return Be.\u0275fac=function(){let kt;return function(Je){return(kt||(kt=t.n5z(Be)))(Je||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:le,useExisting:Be}]),t.qOj]}),Be})(),rt=(()=>{class Be extends S{get name(){return this._name}set name(_e){this._setNameInput(_e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Be.\u0275fac=function(){let kt;return function(Je){return(kt||(kt=t.n5z(Be)))(Je||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:S,useExisting:Be},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Be}]),t.qOj]}),Be})(),Qe=(()=>{class Be extends r{}return Be.\u0275fac=function(){let kt;return function(Je){return(kt||(kt=t.n5z(Be)))(Je||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[t.qOj]}),Be})(),Ke=(()=>{class Be extends u{}return Be.\u0275fac=function(){let kt;return function(Je){return(kt||(kt=t.n5z(Be)))(Je||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[t.qOj]}),Be})(),mt=(()=>{class Be extends l{}return Be.\u0275fac=function(){let kt;return function(Je){return(kt||(kt=t.n5z(Be)))(Je||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[t.qOj]}),Be})(),$t=(()=>{class Be extends P{}return Be.\u0275fac=function(){let kt;return function(Je){return(kt||(kt=t.n5z(Be)))(Je||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:P,useExisting:Be}]),t.qOj]}),Be})(),Gt=(()=>{class Be extends nt{}return Be.\u0275fac=function(){let kt;return function(Je){return(kt||(kt=t.n5z(Be)))(Je||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:nt,useExisting:Be}]),t.qOj]}),Be})(),zt=(()=>{class Be extends Pe{}return Be.\u0275fac=function(){let kt;return function(Je){return(kt||(kt=t.n5z(Be)))(Je||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:Pe,useExisting:Be}]),t.qOj]}),Be})(),Et=(()=>{class Be extends De{}return Be.\u0275fac=function(){let kt;return function(Je){return(kt||(kt=t.n5z(Be)))(Je||Be)}}(),Be.\u0275cmp=t.Xpm({type:Be,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:De,useExisting:Be}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,Je){1&_e&&t.GkF(0,0)},dependencies:[Oe],encapsulation:2}),Be})(),ht=(()=>{class Be extends ue{}return Be.\u0275fac=function(){let kt;return function(Je){return(kt||(kt=t.n5z(Be)))(Je||Be)}}(),Be.\u0275cmp=t.Xpm({type:Be,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:ue,useExisting:Be}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,Je){1&_e&&t.GkF(0,0)},dependencies:[Oe],encapsulation:2}),Be})(),at=(()=>{class Be extends ve{}return Be.\u0275fac=function(){let kt;return function(Je){return(kt||(kt=t.n5z(Be)))(Je||Be)}}(),Be.\u0275cmp=t.Xpm({type:Be,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[t._Bn([{provide:ve,useExisting:Be}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,Je){1&_e&&t.GkF(0,0)},dependencies:[Oe],encapsulation:2}),Be})(),Pi=(()=>{class Be{}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275mod=t.oAB({type:Be}),Be.\u0275inj=t.cJS({imports:[pt,vt.BQ,vt.BQ]}),Be})();class Ei extends C.o2{constructor(kt=[]){super(),this._renderData=new I.X([]),this._filter=new I.X(""),this._internalPageChanges=new R.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(_e,Je)=>{const _t=_e[Je];if((0,f.t6)(_t)){const se=Number(_t);return se<9007199254740991?se:_t}return _t},this.sortData=(_e,Je)=>{const _t=Je.active,se=Je.direction;return _t&&""!=se?_e.sort((Xe,bt)=>{let Vt=this.sortingDataAccessor(Xe,_t),mi=this.sortingDataAccessor(bt,_t);const Hi=typeof Vt,Ui=typeof mi;Hi!==Ui&&("number"===Hi&&(Vt+=""),"number"===Ui&&(mi+=""));let Ji=0;return null!=Vt&&null!=mi?Vt>mi?Ji=1:Vt<mi&&(Ji=-1):null!=Vt?Ji=1:null!=mi&&(Ji=-1),Ji*("asc"==se?1:-1)}):_e},this.filterPredicate=(_e,Je)=>{const _t=Object.keys(_e).reduce((Xe,bt)=>Xe+_e[bt]+"\u25ec","").toLowerCase(),se=Je.trim().toLowerCase();return-1!=_t.indexOf(se)},this._data=new I.X(kt),this._updateChangeSubscription()}get data(){return this._data.value}set data(kt){kt=Array.isArray(kt)?kt:[],this._data.next(kt),this._renderChangesSubscription||this._filterData(kt)}get filter(){return this._filter.value}set filter(kt){this._filter.next(kt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(kt){this._sort=kt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(kt){this._paginator=kt,this._updateChangeSubscription()}_updateChangeSubscription(){const kt=this._sort?(0,Ct.T)(this._sort.sortChange,this._sort.initialized):(0,L.of)(null),_e=this._paginator?(0,Ct.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,L.of)(null),_t=(0,At.a)([this._data,this._filter]).pipe((0,dt.U)(([bt])=>this._filterData(bt))),se=(0,At.a)([_t,kt]).pipe((0,dt.U)(([bt])=>this._orderData(bt))),Xe=(0,At.a)([se,_e]).pipe((0,dt.U)(([bt])=>this._pageData(bt)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Xe.subscribe(bt=>this._renderData.next(bt))}_filterData(kt){return this.filteredData=null==this.filter||""===this.filter?kt:kt.filter(_e=>this.filterPredicate(_e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(kt){return this.sort?this.sortData(kt.slice(),this.sort):kt}_pageData(kt){if(!this.paginator)return kt;const _e=this.paginator.pageIndex*this.paginator.pageSize;return kt.slice(_e,_e+this.paginator.pageSize)}_updatePaginator(kt){Promise.resolve().then(()=>{const _e=this.paginator;if(_e&&(_e.length=kt,_e.pageIndex>0)){const Je=Math.ceil(_e.length/_e.pageSize)-1||0,_t=Math.min(_e.pageIndex,Je);_t!==_e.pageIndex&&(_e.pageIndex=_t,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Vi extends Ei{}},3848:(ke,J,p)=>{"use strict";p.d(J,{BU:()=>Fe,Nh:()=>et,Nj:()=>ct,SP:()=>dt,uD:()=>ye,uX:()=>we});var t=p(4761),e=p(9643),f=p(4080),C=p(6895),a=p(4650),M=p(3238),d=p(5698),R=p(8675),h=p(1884),I=p(2722),E=p(3900),L=p(5684),T=p(9300),N=p(7579),w=p(727),G=p(4968),K=p(9646),Q=p(6451),re=p(515),ie=p(9751),ce=p(2805),ae=p(445),ne=p(7340),le=p(1281),ee=p(531),pe=p(3353),S=p(9521);function i(Ae,rt){1&Ae&&a.Hsn(0)}const r=["*"];function u(Ae,rt){}const l=function(Ae){return{animationDuration:Ae}},y=function(Ae,rt){return{value:Ae,params:rt}},D=["tabListContainer"],k=["tabList"],b=["tabListInner"],n=["nextPaginator"],_=["previousPaginator"],W=["tabBodyWrapper"],P=["tabHeader"];function U(Ae,rt){}function me(Ae,rt){if(1&Ae&&a.YNc(0,U,0,0,"ng-template",10),2&Ae){const Qe=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",Qe.templateLabel)}}function nt(Ae,rt){if(1&Ae&&a._uU(0),2&Ae){const Qe=a.oxw().$implicit;a.Oqu(Qe.textLabel)}}function Pe(Ae,rt){if(1&Ae){const Qe=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const mt=a.CHM(Qe),$t=mt.$implicit,Gt=mt.index,zt=a.oxw(),Et=a.MAs(1);return a.KtG(zt._handleClick($t,Et,Gt))})("cdkFocusChange",function(mt){const Gt=a.CHM(Qe).index,zt=a.oxw();return a.KtG(zt._tabFocusChanged(mt,Gt))}),a.TgZ(1,"div",7),a.YNc(2,me,1,1,"ng-template",8),a.YNc(3,nt,1,1,"ng-template",null,9,a.W1O),a.qZA()()}if(2&Ae){const Qe=rt.$implicit,Ke=rt.index,mt=a.MAs(4),$t=a.oxw();a.ekj("mat-tab-label-active",$t.selectedIndex===Ke),a.Q6J("id",$t._getTabLabelId(Ke))("ngClass",Qe.labelClass)("disabled",Qe.disabled)("matRippleDisabled",Qe.disabled||$t.disableRipple),a.uIk("tabIndex",$t._getTabIndex(Qe,Ke))("aria-posinset",Ke+1)("aria-setsize",$t._tabs.length)("aria-controls",$t._getTabContentId(Ke))("aria-selected",$t.selectedIndex===Ke)("aria-label",Qe.ariaLabel||null)("aria-labelledby",!Qe.ariaLabel&&Qe.ariaLabelledby?Qe.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",Qe.templateLabel)("ngIfElse",mt)}}function Oe(Ae,rt){if(1&Ae){const Qe=a.EpF();a.TgZ(0,"mat-tab-body",11),a.NdJ("_onCentered",function(){a.CHM(Qe);const mt=a.oxw();return a.KtG(mt._removeTabBodyWrapperHeight())})("_onCentering",function(mt){a.CHM(Qe);const $t=a.oxw();return a.KtG($t._setTabBodyWrapperHeight(mt))}),a.qZA()}if(2&Ae){const Qe=rt.$implicit,Ke=rt.index,mt=a.oxw();a.ekj("mat-tab-body-active",mt.selectedIndex===Ke),a.Q6J("id",mt._getTabContentId(Ke))("ngClass",Qe.bodyClass)("content",Qe.content)("position",Qe.position)("origin",Qe.origin)("animationDuration",mt.animationDuration)("preserveContent",mt.preserveContent),a.uIk("tabindex",null!=mt.contentTabIndex&&mt.selectedIndex===Ke?mt.contentTabIndex:null)("aria-labelledby",mt._getTabLabelId(Ke))}}const De=["mat-tab-nav-bar",""],ue=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function ve(){return rt=>({left:rt?(rt.offsetLeft||0)+"px":"0",width:rt?(rt.offsetWidth||0)+"px":"0"})}});let Ie=(()=>{class Ae{constructor(Qe,Ke,mt,$t){this._elementRef=Qe,this._ngZone=Ke,this._inkBarPositioner=mt,this._animationMode=$t}alignToElement(Qe){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,d.q)(1)).subscribe(()=>{const Ke=this._inkBarPositioner(Qe),mt=this._elementRef.nativeElement;mt.style.left=Ke.left,mt.style.width=Ke.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(ue),a.Y36(a.QbO,8))},Ae.\u0275dir=a.lG2({type:Ae,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Qe,Ke){2&Qe&&a.ekj("_mat-animation-noopable","NoopAnimations"===Ke._animationMode)}}),Ae})();const $=new a.OlP("MatTabContent"),ut=new a.OlP("MatTabLabel"),Ee=new a.OlP("MAT_TAB");let ye=(()=>{class Ae extends f.ig{constructor(Qe,Ke,mt){super(Qe,Ke),this._closestTab=mt}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(a.Rgc),a.Y36(a.s_b),a.Y36(Ee,8))},Ae.\u0275dir=a.lG2({type:Ae,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:ut,useExisting:Ae}]),a.qOj]}),Ae})();const he=(0,M.Id)(class{}),de=new a.OlP("MAT_TAB_GROUP");let we=(()=>{class Ae extends he{constructor(Qe,Ke){super(),this._viewContainerRef=Qe,this._closestTabGroup=Ke,this.textLabel="",this._contentPortal=null,this._stateChanges=new N.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Qe){this._setTemplateLabelInput(Qe)}get content(){return this._contentPortal}ngOnChanges(Qe){(Qe.hasOwnProperty("textLabel")||Qe.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new f.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Qe){Qe&&Qe._closestTab===this&&(this._templateLabel=Qe)}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(a.s_b),a.Y36(de,8))},Ae.\u0275cmp=a.Xpm({type:Ae,selectors:[["mat-tab"]],contentQueries:function(Qe,Ke,mt){if(1&Qe&&(a.Suo(mt,ut,5),a.Suo(mt,$,7,a.Rgc)),2&Qe){let $t;a.iGM($t=a.CRH())&&(Ke.templateLabel=$t.first),a.iGM($t=a.CRH())&&(Ke._explicitContent=$t.first)}},viewQuery:function(Qe,Ke){if(1&Qe&&a.Gf(a.Rgc,7),2&Qe){let mt;a.iGM(mt=a.CRH())&&(Ke._implicitContent=mt.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[a._Bn([{provide:Ee,useExisting:Ae}]),a.qOj,a.TTD],ngContentSelectors:r,decls:1,vars:0,template:function(Qe,Ke){1&Qe&&(a.F$t(),a.YNc(0,i,1,0,"ng-template"))},encapsulation:2}),Ae})();const Y={translateTab:(0,ne.X$)("translateTab",[(0,ne.SB)("center, void, left-origin-center, right-origin-center",(0,ne.oB)({transform:"none"})),(0,ne.SB)("left",(0,ne.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,ne.SB)("right",(0,ne.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,ne.eR)("* => left, * => right, left => center, right => center",(0,ne.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,ne.eR)("void => left-origin-center",[(0,ne.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,ne.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,ne.eR)("void => right-origin-center",[(0,ne.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,ne.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let j=(()=>{class Ae extends f.Pl{constructor(Qe,Ke,mt,$t){super(Qe,Ke,$t),this._host=mt,this._centeringSub=w.w0.EMPTY,this._leavingSub=w.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,R.O)(this._host._isCenterPosition(this._host._position))).subscribe(Qe=>{Qe&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>Se)),a.Y36(C.K0))},Ae.\u0275dir=a.lG2({type:Ae,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),Ae})(),Ce=(()=>{class Ae{constructor(Qe,Ke,mt){this._elementRef=Qe,this._dir=Ke,this._dirChangeSubscription=w.w0.EMPTY,this._translateTabComplete=new N.x,this._onCentering=new a.vpe,this._beforeCentering=new a.vpe,this._afterLeavingCenter=new a.vpe,this._onCentered=new a.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,Ke&&(this._dirChangeSubscription=Ke.change.subscribe($t=>{this._computePositionAnimationState($t),mt.markForCheck()})),this._translateTabComplete.pipe((0,h.x)(($t,Gt)=>$t.fromState===Gt.fromState&&$t.toState===Gt.toState)).subscribe($t=>{this._isCenterPosition($t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition($t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Qe){this._positionIndex=Qe,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Qe){const Ke=this._isCenterPosition(Qe.toState);this._beforeCentering.emit(Ke),Ke&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Qe){return"center"==Qe||"left-origin-center"==Qe||"right-origin-center"==Qe}_computePositionAnimationState(Qe=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Qe?"left":"right":this._positionIndex>0?"ltr"==Qe?"right":"left":"center"}_computePositionFromOrigin(Qe){const Ke=this._getLayoutDirection();return"ltr"==Ke&&Qe<=0||"rtl"==Ke&&Qe>0?"left-origin-center":"right-origin-center"}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(a.SBq),a.Y36(ae.Is,8),a.Y36(a.sBO))},Ae.\u0275dir=a.lG2({type:Ae,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ae})(),Se=(()=>{class Ae extends Ce{constructor(Qe,Ke,mt){super(Qe,Ke,mt)}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(a.SBq),a.Y36(ae.Is,8),a.Y36(a.sBO))},Ae.\u0275cmp=a.Xpm({type:Ae,selectors:[["mat-tab-body"]],viewQuery:function(Qe,Ke){if(1&Qe&&a.Gf(f.Pl,5),2&Qe){let mt;a.iGM(mt=a.CRH())&&(Ke._portalHost=mt.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Qe,Ke){1&Qe&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function($t){return Ke._onTranslateTabStarted($t)})("@translateTab.done",function($t){return Ke._translateTabComplete.next($t)}),a.YNc(2,u,0,0,"ng-template",2),a.qZA()),2&Qe&&a.Q6J("@translateTab",a.WLB(3,y,Ke._position,a.VKq(1,l,Ke.animationDuration)))},dependencies:[j],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Y.translateTab]}}),Ae})();const X=new a.OlP("MAT_TABS_CONFIG"),Ye=(0,M.Id)(class{});let Le=(()=>{class Ae extends Ye{constructor(Qe){super(),this.elementRef=Qe}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(a.SBq))},Ae.\u0275dir=a.lG2({type:Ae,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Qe,Ke){2&Qe&&(a.uIk("aria-disabled",!!Ke.disabled),a.ekj("mat-tab-disabled",Ke.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),Ae})();const gt=(0,pe.i$)({passive:!0});let hi=(()=>{class Ae{constructor(Qe,Ke,mt,$t,Gt,zt,Et){this._elementRef=Qe,this._changeDetectorRef=Ke,this._viewportRuler=mt,this._dir=$t,this._ngZone=Gt,this._platform=zt,this._animationMode=Et,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new N.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new N.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.vpe,this.indexFocused=new a.vpe,Gt.runOutsideAngular(()=>{(0,G.R)(Qe.nativeElement,"mouseleave").pipe((0,I.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(Qe){this._disablePagination=(0,le.Ig)(Qe)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Qe){Qe=(0,le.su)(Qe),this._selectedIndex!=Qe&&(this._selectedIndexChanged=!0,this._selectedIndex=Qe,this._keyManager&&this._keyManager.updateActiveItem(Qe))}ngAfterViewInit(){(0,G.R)(this._previousPaginator.nativeElement,"touchstart",gt).pipe((0,I.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,G.R)(this._nextPaginator.nativeElement,"touchstart",gt).pipe((0,I.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Qe=this._dir?this._dir.change:(0,K.of)("ltr"),Ke=this._viewportRuler.change(150),mt=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new t.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,d.q)(1)).subscribe(mt),(0,Q.T)(Qe,Ke,this._items.changes,this._itemsResized()).pipe((0,I.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),mt()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,I.R)(this._destroyed)).subscribe($t=>{this.indexFocused.emit($t),this._setTabFocus($t)})}_itemsResized(){return"function"!=typeof ResizeObserver?re.E:this._items.changes.pipe((0,R.O)(this._items),(0,E.w)(Qe=>new ie.y(Ke=>this._ngZone.runOutsideAngular(()=>{const mt=new ResizeObserver($t=>Ke.next($t));return Qe.forEach($t=>mt.observe($t.elementRef.nativeElement)),()=>{mt.disconnect()}}))),(0,L.T)(1),(0,T.h)(Qe=>Qe.some(Ke=>Ke.contentRect.width>0&&Ke.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._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Qe){if(!(0,S.Vb)(Qe))switch(Qe.keyCode){case S.K5:case S.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Qe));break;default:this._keyManager.onKeydown(Qe)}}_onContentChanges(){const Qe=this._elementRef.nativeElement.textContent;Qe!==this._currentTextContent&&(this._currentTextContent=Qe||"",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(Qe){!this._isValidIndex(Qe)||this.focusIndex===Qe||!this._keyManager||this._keyManager.setActiveItem(Qe)}_isValidIndex(Qe){if(!this._items)return!0;const Ke=this._items?this._items.toArray()[Qe]:null;return!!Ke&&!Ke.disabled}_setTabFocus(Qe){if(this._showPaginationControls&&this._scrollToLabel(Qe),this._items&&this._items.length){this._items.toArray()[Qe].focus();const Ke=this._tabListContainer.nativeElement;Ke.scrollLeft="ltr"==this._getLayoutDirection()?0:Ke.scrollWidth-Ke.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Qe=this.scrollDistance,Ke="ltr"===this._getLayoutDirection()?-Qe:Qe;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Ke)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Qe){this._scrollTo(Qe)}_scrollHeader(Qe){return this._scrollTo(this._scrollDistance+("before"==Qe?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Qe){this._stopInterval(),this._scrollHeader(Qe)}_scrollToLabel(Qe){if(this.disablePagination)return;const Ke=this._items?this._items.toArray()[Qe]:null;if(!Ke)return;const mt=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:$t,offsetWidth:Gt}=Ke.elementRef.nativeElement;let zt,Et;"ltr"==this._getLayoutDirection()?(zt=$t,Et=zt+Gt):(Et=this._tabListInner.nativeElement.offsetWidth-$t,zt=Et-Gt);const ht=this.scrollDistance,at=this.scrollDistance+mt;zt<ht?this.scrollDistance-=ht-zt+60:Et>at&&(this.scrollDistance+=Et-at+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Qe=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Qe||(this.scrollDistance=0),Qe!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Qe}}_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 Qe=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Ke=Qe?Qe.elementRef.nativeElement:null;Ke?this._inkBar.alignToElement(Ke):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Qe,Ke){Ke&&null!=Ke.button&&0!==Ke.button||(this._stopInterval(),(0,ce.H)(650,100).pipe((0,I.R)((0,Q.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:mt,distance:$t}=this._scrollHeader(Qe);(0===$t||$t>=mt)&&this._stopInterval()}))}_scrollTo(Qe){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Ke=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Ke,Qe)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Ke,distance:this._scrollDistance}}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(ee.rL),a.Y36(ae.Is,8),a.Y36(a.R0b),a.Y36(pe.t4),a.Y36(a.QbO,8))},Ae.\u0275dir=a.lG2({type:Ae,inputs:{disablePagination:"disablePagination"}}),Ae})(),yt=(()=>{class Ae extends hi{constructor(Qe,Ke,mt,$t,Gt,zt,Et){super(Qe,Ke,mt,$t,Gt,zt,Et),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Qe){this._disableRipple=(0,le.Ig)(Qe)}_itemSelected(Qe){Qe.preventDefault()}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(ee.rL),a.Y36(ae.Is,8),a.Y36(a.R0b),a.Y36(pe.t4),a.Y36(a.QbO,8))},Ae.\u0275dir=a.lG2({type:Ae,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),Ae})(),Pt=(()=>{class Ae extends yt{constructor(Qe,Ke,mt,$t,Gt,zt,Et){super(Qe,Ke,mt,$t,Gt,zt,Et)}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(ee.rL),a.Y36(ae.Is,8),a.Y36(a.R0b),a.Y36(pe.t4),a.Y36(a.QbO,8))},Ae.\u0275cmp=a.Xpm({type:Ae,selectors:[["mat-tab-header"]],contentQueries:function(Qe,Ke,mt){if(1&Qe&&a.Suo(mt,Le,4),2&Qe){let $t;a.iGM($t=a.CRH())&&(Ke._items=$t)}},viewQuery:function(Qe,Ke){if(1&Qe&&(a.Gf(Ie,7),a.Gf(D,7),a.Gf(k,7),a.Gf(b,7),a.Gf(n,5),a.Gf(_,5)),2&Qe){let mt;a.iGM(mt=a.CRH())&&(Ke._inkBar=mt.first),a.iGM(mt=a.CRH())&&(Ke._tabListContainer=mt.first),a.iGM(mt=a.CRH())&&(Ke._tabList=mt.first),a.iGM(mt=a.CRH())&&(Ke._tabListInner=mt.first),a.iGM(mt=a.CRH())&&(Ke._nextPaginator=mt.first),a.iGM(mt=a.CRH())&&(Ke._previousPaginator=mt.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Qe,Ke){2&Qe&&a.ekj("mat-tab-header-pagination-controls-enabled",Ke._showPaginationControls)("mat-tab-header-rtl","rtl"==Ke._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.qOj],ngContentSelectors:r,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Qe,Ke){1&Qe&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return Ke._handlePaginatorClick("before")})("mousedown",function($t){return Ke._handlePaginatorPress("before",$t)})("touchend",function(){return Ke._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function($t){return Ke._handleKeydown($t)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return Ke._onContentChanges()}),a.TgZ(7,"div",7,8),a.Hsn(9),a.qZA(),a._UZ(10,"mat-ink-bar"),a.qZA()(),a.TgZ(11,"button",9,10),a.NdJ("mousedown",function($t){return Ke._handlePaginatorPress("after",$t)})("click",function(){return Ke._handlePaginatorClick("after")})("touchend",function(){return Ke._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&Qe&&(a.ekj("mat-tab-header-pagination-disabled",Ke._disableScrollBefore),a.Q6J("matRippleDisabled",Ke._disableScrollBefore||Ke.disableRipple)("disabled",Ke._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===Ke._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",Ke._disableScrollAfter),a.Q6J("matRippleDisabled",Ke._disableScrollAfter||Ke.disableRipple)("disabled",Ke._disableScrollAfter||null))},dependencies:[M.wG,e.wD,Ie],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),Ae})(),pt=0;class vt{}const Ct=(0,M.pj)((0,M.Kr)(class{constructor(Ae){this._elementRef=Ae}}),"primary");let At=(()=>{class Ae extends Ct{constructor(Qe,Ke,mt,$t){super(Qe),this._changeDetectorRef=Ke,this._animationMode=$t,this._tabs=new a.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=w.w0.EMPTY,this._tabLabelSubscription=w.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new a.vpe,this.focusChange=new a.vpe,this.animationDone=new a.vpe,this.selectedTabChange=new a.vpe(!0),this._groupId=pt++,this.animationDuration=mt&&mt.animationDuration?mt.animationDuration:"500ms",this.disablePagination=!(!mt||null==mt.disablePagination)&&mt.disablePagination,this.dynamicHeight=!(!mt||null==mt.dynamicHeight)&&mt.dynamicHeight,this.contentTabIndex=mt?.contentTabIndex??null,this.preserveContent=!!mt?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Qe){this._dynamicHeight=(0,le.Ig)(Qe)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Qe){this._indexToSelect=(0,le.su)(Qe,null)}get animationDuration(){return this._animationDuration}set animationDuration(Qe){this._animationDuration=/^\d+$/.test(Qe+"")?Qe+"ms":Qe}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Qe){this._contentTabIndex=(0,le.su)(Qe,null)}get disablePagination(){return this._disablePagination}set disablePagination(Qe){this._disablePagination=(0,le.Ig)(Qe)}get preserveContent(){return this._preserveContent}set preserveContent(Qe){this._preserveContent=(0,le.Ig)(Qe)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Qe){const Ke=this._elementRef.nativeElement;Ke.classList.remove(`mat-background-${this.backgroundColor}`),Qe&&Ke.classList.add(`mat-background-${Qe}`),this._backgroundColor=Qe}ngAfterContentChecked(){const Qe=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Qe){const Ke=null==this._selectedIndex;if(!Ke){this.selectedTabChange.emit(this._createChangeEvent(Qe));const mt=this._tabBodyWrapper.nativeElement;mt.style.minHeight=mt.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((mt,$t)=>mt.isActive=$t===Qe),Ke||(this.selectedIndexChange.emit(Qe),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Ke,mt)=>{Ke.position=mt-Qe,null!=this._selectedIndex&&0==Ke.position&&!Ke.origin&&(Ke.origin=Qe-this._selectedIndex)}),this._selectedIndex!==Qe&&(this._selectedIndex=Qe,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Qe=this._clampTabIndex(this._indexToSelect);if(Qe===this._selectedIndex){const Ke=this._tabs.toArray();let mt;for(let $t=0;$t<Ke.length;$t++)if(Ke[$t].isActive){this._indexToSelect=this._selectedIndex=$t,this._lastFocusedTabIndex=null,mt=Ke[$t];break}!mt&&Ke[Qe]&&Promise.resolve().then(()=>{Ke[Qe].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Qe))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,R.O)(this._allTabs)).subscribe(Qe=>{this._tabs.reset(Qe.filter(Ke=>Ke._closestTabGroup===this||!Ke._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Qe){const Ke=this._tabHeader;Ke&&(Ke.focusIndex=Qe)}_focusChanged(Qe){this._lastFocusedTabIndex=Qe,this.focusChange.emit(this._createChangeEvent(Qe))}_createChangeEvent(Qe){const Ke=new vt;return Ke.index=Qe,this._tabs&&this._tabs.length&&(Ke.tab=this._tabs.toArray()[Qe]),Ke}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Q.T)(...this._tabs.map(Qe=>Qe._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Qe){return Math.min(this._tabs.length-1,Math.max(Qe||0,0))}_getTabLabelId(Qe){return`mat-tab-label-${this._groupId}-${Qe}`}_getTabContentId(Qe){return`mat-tab-content-${this._groupId}-${Qe}`}_setTabBodyWrapperHeight(Qe){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Ke=this._tabBodyWrapper.nativeElement;Ke.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Ke.style.height=Qe+"px")}_removeTabBodyWrapperHeight(){const Qe=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Qe.clientHeight,Qe.style.height="",this.animationDone.emit()}_handleClick(Qe,Ke,mt){Qe.disabled||(this.selectedIndex=Ke.focusIndex=mt)}_getTabIndex(Qe,Ke){return Qe.disabled?null:Ke===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(Qe,Ke){Qe&&"mouse"!==Qe&&"touch"!==Qe&&(this._tabHeader.focusIndex=Ke)}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(X,8),a.Y36(a.QbO,8))},Ae.\u0275dir=a.lG2({type:Ae,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.qOj]}),Ae})(),dt=(()=>{class Ae extends At{constructor(Qe,Ke,mt,$t){super(Qe,Ke,mt,$t)}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(X,8),a.Y36(a.QbO,8))},Ae.\u0275cmp=a.Xpm({type:Ae,selectors:[["mat-tab-group"]],contentQueries:function(Qe,Ke,mt){if(1&Qe&&a.Suo(mt,we,5),2&Qe){let $t;a.iGM($t=a.CRH())&&(Ke._allTabs=$t)}},viewQuery:function(Qe,Ke){if(1&Qe&&(a.Gf(W,5),a.Gf(P,5)),2&Qe){let mt;a.iGM(mt=a.CRH())&&(Ke._tabBodyWrapper=mt.first),a.iGM(mt=a.CRH())&&(Ke._tabHeader=mt.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Qe,Ke){2&Qe&&a.ekj("mat-tab-group-dynamic-height",Ke.dynamicHeight)("mat-tab-group-inverted-header","below"===Ke.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:de,useExisting:Ae}]),a.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(Qe,Ke){1&Qe&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function($t){return Ke._focusChanged($t)})("selectFocusedIndex",function($t){return Ke.selectedIndex=$t}),a.YNc(2,Pe,5,15,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,Oe,1,11,"mat-tab-body",5),a.qZA()),2&Qe&&(a.Q6J("selectedIndex",Ke.selectedIndex||0)("disableRipple",Ke.disableRipple)("disablePagination",Ke.disablePagination),a.xp6(2),a.Q6J("ngForOf",Ke._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===Ke._animationMode),a.xp6(2),a.Q6J("ngForOf",Ke._tabs))},dependencies:[C.mk,C.sg,C.O5,f.Pl,M.wG,t.kH,Le,Se,Pt],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),Ae})(),ze=0,Ve=(()=>{class Ae extends hi{constructor(Qe,Ke,mt,$t,Gt,zt,Et){super(Qe,$t,Gt,Ke,mt,zt,Et),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(Qe){const Ke=this._elementRef.nativeElement.classList;Ke.remove(`mat-background-${this.backgroundColor}`),Qe&&Ke.add(`mat-background-${Qe}`),this._backgroundColor=Qe}get disableRipple(){return this._disableRipple}set disableRipple(Qe){this._disableRipple=(0,le.Ig)(Qe)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,R.O)(null),(0,I.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Qe=this._items.toArray();for(let Ke=0;Ke<Qe.length;Ke++)if(Qe[Ke].active)return this.selectedIndex=Ke,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=Qe[Ke].id));this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(a.SBq),a.Y36(ae.Is,8),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(ee.rL),a.Y36(pe.t4),a.Y36(a.QbO,8))},Ae.\u0275dir=a.lG2({type:Ae,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[a.qOj]}),Ae})(),Fe=(()=>{class Ae extends Ve{constructor(Qe,Ke,mt,$t,Gt,zt,Et){super(Qe,Ke,mt,$t,Gt,zt,Et)}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(a.SBq),a.Y36(ae.Is,8),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(ee.rL),a.Y36(pe.t4),a.Y36(a.QbO,8))},Ae.\u0275cmp=a.Xpm({type:Ae,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Qe,Ke,mt){if(1&Qe&&a.Suo(mt,ct,5),2&Qe){let $t;a.iGM($t=a.CRH())&&(Ke._items=$t)}},viewQuery:function(Qe,Ke){if(1&Qe&&(a.Gf(Ie,7),a.Gf(D,7),a.Gf(k,7),a.Gf(b,7),a.Gf(n,5),a.Gf(_,5)),2&Qe){let mt;a.iGM(mt=a.CRH())&&(Ke._inkBar=mt.first),a.iGM(mt=a.CRH())&&(Ke._tabListContainer=mt.first),a.iGM(mt=a.CRH())&&(Ke._tabList=mt.first),a.iGM(mt=a.CRH())&&(Ke._tabListInner=mt.first),a.iGM(mt=a.CRH())&&(Ke._nextPaginator=mt.first),a.iGM(mt=a.CRH())&&(Ke._previousPaginator=mt.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(Qe,Ke){2&Qe&&(a.uIk("role",Ke._getRole()),a.ekj("mat-tab-header-pagination-controls-enabled",Ke._showPaginationControls)("mat-tab-header-rtl","rtl"==Ke._getLayoutDirection())("mat-primary","warn"!==Ke.color&&"accent"!==Ke.color)("mat-accent","accent"===Ke.color)("mat-warn","warn"===Ke.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.qOj],attrs:De,ngContentSelectors:r,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Qe,Ke){1&Qe&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return Ke._handlePaginatorClick("before")})("mousedown",function($t){return Ke._handlePaginatorPress("before",$t)})("touchend",function(){return Ke._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function($t){return Ke._handleKeydown($t)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return Ke._onContentChanges()}),a.TgZ(7,"div",7,8),a.Hsn(9),a.qZA(),a._UZ(10,"mat-ink-bar"),a.qZA()(),a.TgZ(11,"button",9,10),a.NdJ("mousedown",function($t){return Ke._handlePaginatorPress("after",$t)})("click",function(){return Ke._handlePaginatorClick("after")})("touchend",function(){return Ke._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&Qe&&(a.ekj("mat-tab-header-pagination-disabled",Ke._disableScrollBefore),a.Q6J("matRippleDisabled",Ke._disableScrollBefore||Ke.disableRipple)("disabled",Ke._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===Ke._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",Ke._disableScrollAfter),a.Q6J("matRippleDisabled",Ke._disableScrollAfter||Ke.disableRipple)("disabled",Ke._disableScrollAfter||null))},dependencies:[M.wG,e.wD,Ie],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2}),Ae})();const be=(0,M.sb)((0,M.Kr)((0,M.Id)(class{})));let xt=(()=>{class Ae extends be{constructor(Qe,Ke,mt,$t,Gt,zt){super(),this._tabNavBar=Qe,this.elementRef=Ke,this._focusMonitor=Gt,this._isActive=!1,this.id="mat-tab-link-"+ze++,this.rippleConfig=mt||{},this.tabIndex=parseInt($t)||0,"NoopAnimations"===zt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(Qe){const Ke=(0,le.Ig)(Qe);Ke!==this._isActive&&(this._isActive=Ke,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(Qe){this._tabNavBar.tabPanel&&Qe.keyCode===S.L_&&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")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(Ve),a.Y36(a.SBq),a.Y36(M.Y2,8),a.$8M("tabindex"),a.Y36(t.tE),a.Y36(a.QbO,8))},Ae.\u0275dir=a.lG2({type:Ae,inputs:{active:"active",id:"id"},features:[a.qOj]}),Ae})(),ct=(()=>{class Ae extends xt{constructor(Qe,Ke,mt,$t,Gt,zt,Et,ht){super(Qe,Ke,Gt,zt,Et,ht),this._tabLinkRipple=new M.IR(this,mt,Ke,$t),this._tabLinkRipple.setupTriggerEvents(Ke.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)(a.Y36(Fe),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(pe.t4),a.Y36(M.Y2,8),a.$8M("tabindex"),a.Y36(t.tE),a.Y36(a.QbO,8))},Ae.\u0275dir=a.lG2({type:Ae,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(Qe,Ke){1&Qe&&a.NdJ("focus",function(){return Ke._handleFocus()})("keydown",function($t){return Ke._handleKeydown($t)}),2&Qe&&(a.uIk("aria-controls",Ke._getAriaControls())("aria-current",Ke._getAriaCurrent())("aria-disabled",Ke.disabled)("aria-selected",Ke._getAriaSelected())("id",Ke.id)("tabIndex",Ke._getTabIndex())("role",Ke._getRole()),a.ekj("mat-tab-disabled",Ke.disabled)("mat-tab-label-active",Ke.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.qOj]}),Ae})(),et=(()=>{class Ae{}return Ae.\u0275fac=function(Qe){return new(Qe||Ae)},Ae.\u0275mod=a.oAB({type:Ae}),Ae.\u0275inj=a.cJS({imports:[C.ez,M.BQ,f.eL,M.si,e.Q8,t.rt,M.BQ]}),Ae})()},3683:(ke,J,p)=>{"use strict";p.d(J,{Ye:()=>h,g0:()=>E});var t=p(4650),e=p(3238),f=p(3353),C=p(6895);const a=["*",[["mat-toolbar-row"]]],M=["*","mat-toolbar-row"],d=(0,e.pj)(class{constructor(L){this._elementRef=L}});let R=(()=>{class L{}return L.\u0275fac=function(N){return new(N||L)},L.\u0275dir=t.lG2({type:L,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),L})(),h=(()=>{class L extends d{constructor(N,w,G){super(N),this._platform=w,this._document=G}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return L.\u0275fac=function(N){return new(N||L)(t.Y36(t.SBq),t.Y36(f.t4),t.Y36(C.K0))},L.\u0275cmp=t.Xpm({type:L,selectors:[["mat-toolbar"]],contentQueries:function(N,w,G){if(1&N&&t.Suo(G,R,5),2&N){let K;t.iGM(K=t.CRH())&&(w._toolbarRows=K)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(N,w){2&N&&t.ekj("mat-toolbar-multiple-rows",w._toolbarRows.length>0)("mat-toolbar-single-row",0===w._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:M,decls:2,vars:0,template:function(N,w){1&N&&(t.F$t(a),t.Hsn(0),t.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),L})(),E=(()=>{class L{}return L.\u0275fac=function(N){return new(N||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({imports:[e.BQ,e.BQ]}),L})()},266:(ke,J,p)=>{"use strict";p.d(J,{AV:()=>D,gM:()=>u});var t=p(8184),e=p(4761),f=p(6895),C=p(4650),a=p(3238),M=p(531),d=p(445),R=p(1281),h=p(9521),I=p(2289),E=p(3353),L=p(4080),T=p(7579),N=p(2722),w=p(5698);p(7340);const K=["tooltip"],ie="tooltip-panel",ce=(0,E.i$)({passive:!0}),le=new C.OlP("mat-tooltip-scroll-strategy"),pe={provide:le,deps:[t.aV],useFactory:function ee(b){return()=>b.scrollStrategies.reposition({scrollThrottle:20})}},S=new C.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function i(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let r=(()=>{class b{constructor(_,W,P,U,me,nt,Pe,Oe,De,ue,ve,Ie){this._overlay=_,this._elementRef=W,this._scrollDispatcher=P,this._viewContainerRef=U,this._ngZone=me,this._platform=nt,this._ariaDescriber=Pe,this._focusMonitor=Oe,this._dir=ue,this._defaultOptions=ve,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new T.x,this._scrollStrategy=De,this._document=Ie,ve&&(ve.position&&(this.position=ve.position),ve.touchGestures&&(this.touchGestures=ve.touchGestures)),ue.change.pipe((0,N.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(_){_!==this._position&&(this._position=_,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(_){this._disabled=(0,R.Ig)(_),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(_){this._showDelay=(0,R.su)(_)}get hideDelay(){return this._hideDelay}set hideDelay(_){this._hideDelay=(0,R.su)(_),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(_){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=_?String(_).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(_){this._tooltipClass=_,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,N.R)(this._destroyed)).subscribe(_=>{_?"keyboard"===_&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const _=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([W,P])=>{_.removeEventListener(W,P,ce)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(_,this.message,"tooltip"),this._focusMonitor.stopMonitoring(_)}show(_=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const W=this._createOverlay();this._detach(),this._portal=this._portal||new L.C5(this._tooltipComponent,this._viewContainerRef);const P=this._tooltipInstance=W.attach(this._portal).instance;P._triggerElement=this._elementRef.nativeElement,P._mouseLeaveHideDelay=this._hideDelay,P.afterHidden().pipe((0,N.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),P.show(_)}hide(_=this.hideDelay){const W=this._tooltipInstance;W&&(W.isVisible()?W.hide(_):(W._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const _=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),W=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(_);return W.positionChanges.pipe((0,N.R)(this._destroyed)).subscribe(P=>{this._updateCurrentPositionClass(P.connectionPair),this._tooltipInstance&&P.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:W,panelClass:`${this._cssClassPrefix}-${ie}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,N.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,N.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,N.R)(this._destroyed)).subscribe(P=>{this._isTooltipVisible()&&P.keyCode===h.hY&&!(0,h.Vb)(P)&&(P.preventDefault(),P.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(_){const W=_.getConfig().positionStrategy,P=this._getOrigin(),U=this._getOverlayPosition();W.withPositions([this._addOffset({...P.main,...U.main}),this._addOffset({...P.fallback,...U.fallback})])}_addOffset(_){return _}_getOrigin(){const _=!this._dir||"ltr"==this._dir.value,W=this.position;let P;"above"==W||"below"==W?P={originX:"center",originY:"above"==W?"top":"bottom"}:"before"==W||"left"==W&&_||"right"==W&&!_?P={originX:"start",originY:"center"}:("after"==W||"right"==W&&_||"left"==W&&!_)&&(P={originX:"end",originY:"center"});const{x:U,y:me}=this._invertPosition(P.originX,P.originY);return{main:P,fallback:{originX:U,originY:me}}}_getOverlayPosition(){const _=!this._dir||"ltr"==this._dir.value,W=this.position;let P;"above"==W?P={overlayX:"center",overlayY:"bottom"}:"below"==W?P={overlayX:"center",overlayY:"top"}:"before"==W||"left"==W&&_||"right"==W&&!_?P={overlayX:"end",overlayY:"center"}:("after"==W||"right"==W&&_||"left"==W&&!_)&&(P={overlayX:"start",overlayY:"center"});const{x:U,y:me}=this._invertPosition(P.overlayX,P.overlayY);return{main:P,fallback:{overlayX:U,overlayY:me}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,w.q)(1),(0,N.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(_){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=_,this._tooltipInstance._markForCheck())}_invertPosition(_,W){return"above"===this.position||"below"===this.position?"top"===W?W="bottom":"bottom"===W&&(W="top"):"end"===_?_="start":"start"===_&&(_="end"),{x:_,y:W}}_updateCurrentPositionClass(_){const{overlayY:W,originX:P,originY:U}=_;let me;if(me="center"===W?this._dir&&"rtl"===this._dir.value?"end"===P?"left":"right":"start"===P?"left":"right":"bottom"===W&&"top"===U?"above":"below",me!==this._currentPosition){const nt=this._overlayRef;if(nt){const Pe=`${this._cssClassPrefix}-${ie}-`;nt.removePanelClass(Pe+this._currentPosition),nt.addPanelClass(Pe+me)}this._currentPosition=me}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const _=[];if(this._platformSupportsMouseEvents())_.push(["mouseleave",W=>{const P=W.relatedTarget;(!P||!this._overlayRef?.overlayElement.contains(P))&&this.hide()}],["wheel",W=>this._wheelListener(W)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const W=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};_.push(["touchend",W],["touchcancel",W])}this._addListeners(_),this._passiveListeners.push(..._)}_addListeners(_){_.forEach(([W,P])=>{this._elementRef.nativeElement.addEventListener(W,P,ce)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(_){if(this._isTooltipVisible()){const W=this._document.elementFromPoint(_.clientX,_.clientY),P=this._elementRef.nativeElement;W!==P&&!P.contains(W)&&this.hide()}}_disableNativeGesturesIfNecessary(){const _=this.touchGestures;if("off"!==_){const W=this._elementRef.nativeElement,P=W.style;("on"===_||"INPUT"!==W.nodeName&&"TEXTAREA"!==W.nodeName)&&(P.userSelect=P.msUserSelect=P.webkitUserSelect=P.MozUserSelect="none"),("on"===_||!W.draggable)&&(P.webkitUserDrag="none"),P.touchAction="none",P.webkitTapHighlightColor="transparent"}}}return b.\u0275fac=function(_){C.$Z()},b.\u0275dir=C.lG2({type:b,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),b})(),u=(()=>{class b extends r{constructor(_,W,P,U,me,nt,Pe,Oe,De,ue,ve,Ie){super(_,W,P,U,me,nt,Pe,Oe,De,ue,ve,Ie),this._tooltipComponent=y}}return b.\u0275fac=function(_){return new(_||b)(C.Y36(t.aV),C.Y36(C.SBq),C.Y36(M.mF),C.Y36(C.s_b),C.Y36(C.R0b),C.Y36(E.t4),C.Y36(e.$s),C.Y36(e.tE),C.Y36(le),C.Y36(d.Is,8),C.Y36(S,8),C.Y36(f.K0))},b.\u0275dir=C.lG2({type:b,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[C.qOj]}),b})(),l=(()=>{class b{constructor(_,W){this._changeDetectorRef=_,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new T.x,this._animationsDisabled="NoopAnimations"===W}show(_){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},_)}hide(_){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},_)}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:_}){(!_||!this._triggerElement.contains(_))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:_}){(_===this._showAnimation||_===this._hideAnimation)&&this._finalizeAnimation(_===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(_){_?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(_){const W=this._tooltip.nativeElement,P=this._showAnimation,U=this._hideAnimation;if(W.classList.remove(_?U:P),W.classList.add(_?P:U),this._isVisible=_,_&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const me=getComputedStyle(W);("0s"===me.getPropertyValue("animation-duration")||"none"===me.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}_&&this._onShow(),this._animationsDisabled&&(W.classList.add("_mat-animation-noopable"),this._finalizeAnimation(_))}}return b.\u0275fac=function(_){return new(_||b)(C.Y36(C.sBO),C.Y36(C.QbO,8))},b.\u0275dir=C.lG2({type:b}),b})(),y=(()=>{class b extends l{constructor(_,W,P){super(_,P),this._breakpointObserver=W,this._isHandset=this._breakpointObserver.observe(I.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return b.\u0275fac=function(_){return new(_||b)(C.Y36(C.sBO),C.Y36(I.Yg),C.Y36(C.QbO,8))},b.\u0275cmp=C.Xpm({type:b,selectors:[["mat-tooltip-component"]],viewQuery:function(_,W){if(1&_&&C.Gf(K,7),2&_){let P;C.iGM(P=C.CRH())&&(W._tooltip=P.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(_,W){1&_&&C.NdJ("mouseleave",function(U){return W._handleMouseLeave(U)}),2&_&&C.Udp("zoom",W.isVisible()?1:null)},features:[C.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(_,W){if(1&_&&(C.TgZ(0,"div",0,1),C.NdJ("animationend",function(U){return W._handleAnimationEnd(U)}),C.ALo(2,"async"),C._uU(3),C.qZA()),2&_){let P;C.ekj("mat-tooltip-handset",null==(P=C.lcZ(2,4,W._isHandset))?null:P.matches),C.Q6J("ngClass",W.tooltipClass),C.xp6(3),C.Oqu(W.message)}},dependencies:[f.mk,f.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),b})(),D=(()=>{class b{}return b.\u0275fac=function(_){return new(_||b)},b.\u0275mod=C.oAB({type:b}),b.\u0275inj=C.cJS({providers:[pe],imports:[e.rt,f.ez,t.U8,a.BQ,a.BQ,M.ZD]}),b})()},5423:(ke,J,p)=>{"use strict";p.d(J,{Ar:()=>N,GZ:()=>L,WX:()=>ce,dp:()=>Q,eu:()=>G,fQ:()=>E,gi:()=>w,uo:()=>I});var t=p(7851),e=p(4650),f=p(3238),C=p(1281),a=p(5017),M=p(1135),d=p(6451),R=p(4004);const h=(0,f.sb)((0,f.Id)(t.Hs));let I=(()=>{class ae extends h{constructor(le,ee,pe){super(le,ee),this.tabIndex=Number(pe)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return ae.\u0275fac=function(le){return new(le||ae)(e.Y36(e.SBq),e.Y36(t._0),e.$8M("tabindex"))},ae.\u0275dir=e.lG2({type:ae,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[e._Bn([{provide:t.Hs,useExisting:ae}]),e.qOj]}),ae})(),E=(()=>{class ae extends t.rO{}return ae.\u0275fac=function(){let ne;return function(ee){return(ne||(ne=e.n5z(ae)))(ee||ae)}}(),ae.\u0275dir=e.lG2({type:ae,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[e._Bn([{provide:t.rO,useExisting:ae}]),e.qOj]}),ae})(),L=(()=>{class ae extends t.Xx{constructor(le,ee,pe,S){super(le,ee,pe),this._disabled=!1,this.tabIndex=Number(S)||0}get disabled(){return this._disabled}set disabled(le){this._disabled=(0,C.Ig)(le)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(le){this._tabIndex=le??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return ae.\u0275fac=function(le){return new(le||ae)(e.Y36(e.SBq),e.Y36(t._0),e.Y36(e.ZZ4),e.$8M("tabindex"))},ae.\u0275dir=e.lG2({type:ae,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[e._Bn([{provide:t.Xx,useExisting:ae},{provide:t.Hs,useExisting:ae},{provide:t.HI,useExisting:ae}]),e.qOj]}),ae})(),N=(()=>{class ae{constructor(le,ee){this.viewContainer=le,this._node=ee}}return ae.\u0275fac=function(le){return new(le||ae)(e.Y36(e.s_b),e.Y36(t.HI,8))},ae.\u0275dir=e.lG2({type:ae,selectors:[["","matTreeNodeOutlet",""]],features:[e._Bn([{provide:t.cu,useExisting:ae}])]}),ae})(),w=(()=>{class ae extends t._0{}return ae.\u0275fac=function(){let ne;return function(ee){return(ne||(ne=e.n5z(ae)))(ee||ae)}}(),ae.\u0275cmp=e.Xpm({type:ae,selectors:[["mat-tree"]],viewQuery:function(le,ee){if(1&le&&e.Gf(N,7),2&le){let pe;e.iGM(pe=e.CRH())&&(ee._nodeOutlet=pe.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[e._Bn([{provide:t._0,useExisting:ae}]),e.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(le,ee){1&le&&e.GkF(0,0)},dependencies:[N],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),ae})(),G=(()=>{class ae extends t.Ud{}return ae.\u0275fac=function(){let ne;return function(ee){return(ne||(ne=e.n5z(ae)))(ee||ae)}}(),ae.\u0275dir=e.lG2({type:ae,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[e._Bn([{provide:t.Ud,useExisting:ae}]),e.qOj]}),ae})(),Q=(()=>{class ae{}return ae.\u0275fac=function(le){return new(le||ae)},ae.\u0275mod=e.oAB({type:ae}),ae.\u0275inj=e.cJS({imports:[t.nZ,f.BQ,f.BQ]}),ae})();class ce extends a.o2{constructor(){super(...arguments),this._data=new M.X([])}get data(){return this._data.value}set data(ne){this._data.next(ne)}connect(ne){return(0,d.T)(ne.viewChange,this._data).pipe((0,R.U)(()=>this.data))}disconnect(){}}},1481:(ke,J,p)=>{"use strict";p.d(J,{Dx:()=>X,H7:()=>mt,b2:()=>we,q6:()=>Ee,se:()=>l,t6:()=>Ke});var t=p(6895),e=p(4650);class f extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class C extends f{static makeCurrent(){(0,t.HT)(new C)}onAndCancel(ht,at,ei){return ht.addEventListener(at,ei,!1),()=>{ht.removeEventListener(at,ei,!1)}}dispatchEvent(ht,at){ht.dispatchEvent(at)}remove(ht){ht.parentNode&&ht.parentNode.removeChild(ht)}createElement(ht,at){return(at=at||this.getDefaultDocument()).createElement(ht)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ht){return ht.nodeType===Node.ELEMENT_NODE}isShadowRoot(ht){return ht instanceof DocumentFragment}getGlobalEventTarget(ht,at){return"window"===at?window:"document"===at?ht:"body"===at?ht.body:null}getBaseHref(ht){const at=function M(){return a=a||document.querySelector("base"),a?a.getAttribute("href"):null}();return null==at?null:function R(Et){d=d||document.createElement("a"),d.setAttribute("href",Et);const ht=d.pathname;return"/"===ht.charAt(0)?ht:`/${ht}`}(at)}resetBaseElement(){a=null}getUserAgent(){return window.navigator.userAgent}getCookie(ht){return(0,t.Mx)(document.cookie,ht)}}let d,a=null;const h=new e.OlP("TRANSITION_ID"),E=[{provide:e.ip1,useFactory:function I(Et,ht,at){return()=>{at.get(e.CZH).donePromise.then(()=>{const ei=(0,t.q)(),Ut=ht.querySelectorAll(`style[ng-transition="${Et}"]`);for(let qt=0;qt<Ut.length;qt++)ei.remove(Ut[qt])})}},deps:[h,t.K0,e.zs3],multi:!0}];let T=(()=>{class Et{build(){return new XMLHttpRequest}}return Et.\u0275fac=function(at){return new(at||Et)},Et.\u0275prov=e.Yz7({token:Et,factory:Et.\u0275fac}),Et})();const N=new e.OlP("EventManagerPlugins");let w=(()=>{class Et{constructor(at,ei){this._zone=ei,this._eventNameToPlugin=new Map,at.forEach(Ut=>Ut.manager=this),this._plugins=at.slice().reverse()}addEventListener(at,ei,Ut){return this._findPluginFor(ei).addEventListener(at,ei,Ut)}addGlobalEventListener(at,ei,Ut){return this._findPluginFor(ei).addGlobalEventListener(at,ei,Ut)}getZone(){return this._zone}_findPluginFor(at){const ei=this._eventNameToPlugin.get(at);if(ei)return ei;const Ut=this._plugins;for(let qt=0;qt<Ut.length;qt++){const Pi=Ut[qt];if(Pi.supports(at))return this._eventNameToPlugin.set(at,Pi),Pi}throw new Error(`No event manager plugin found for event ${at}`)}}return Et.\u0275fac=function(at){return new(at||Et)(e.LFG(N),e.LFG(e.R0b))},Et.\u0275prov=e.Yz7({token:Et,factory:Et.\u0275fac}),Et})();class G{constructor(ht){this._doc=ht}addGlobalEventListener(ht,at,ei){const Ut=(0,t.q)().getGlobalEventTarget(this._doc,ht);if(!Ut)throw new Error(`Unsupported event target ${Ut} for event ${at}`);return this.addEventListener(Ut,at,ei)}}let K=(()=>{class Et{constructor(){this._stylesSet=new Set}addStyles(at){const ei=new Set;at.forEach(Ut=>{this._stylesSet.has(Ut)||(this._stylesSet.add(Ut),ei.add(Ut))}),this.onStylesAdded(ei)}onStylesAdded(at){}getAllStyles(){return Array.from(this._stylesSet)}}return Et.\u0275fac=function(at){return new(at||Et)},Et.\u0275prov=e.Yz7({token:Et,factory:Et.\u0275fac}),Et})(),Q=(()=>{class Et extends K{constructor(at){super(),this._doc=at,this._hostNodes=new Map,this._hostNodes.set(at.head,[])}_addStylesToHost(at,ei,Ut){at.forEach(qt=>{const Pi=this._doc.createElement("style");Pi.textContent=qt,Ut.push(ei.appendChild(Pi))})}addHost(at){const ei=[];this._addStylesToHost(this._stylesSet,at,ei),this._hostNodes.set(at,ei)}removeHost(at){const ei=this._hostNodes.get(at);ei&&ei.forEach(re),this._hostNodes.delete(at)}onStylesAdded(at){this._hostNodes.forEach((ei,Ut)=>{this._addStylesToHost(at,Ut,ei)})}ngOnDestroy(){this._hostNodes.forEach(at=>at.forEach(re))}}return Et.\u0275fac=function(at){return new(at||Et)(e.LFG(t.K0))},Et.\u0275prov=e.Yz7({token:Et,factory:Et.\u0275fac}),Et})();function re(Et){(0,t.q)().remove(Et)}const ie={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ce=/%COMP%/g;function i(Et,ht,at){for(let ei=0;ei<ht.length;ei++){let Ut=ht[ei];Array.isArray(Ut)?i(Et,Ut,at):(Ut=Ut.replace(ce,Et),at.push(Ut))}return at}function r(Et){return ht=>{if("__ngUnwrap__"===ht)return Et;!1===Et(ht)&&(ht.preventDefault(),ht.returnValue=!1)}}let l=(()=>{class Et{constructor(at,ei,Ut){this.eventManager=at,this.sharedStylesHost=ei,this.appId=Ut,this.rendererByCompId=new Map,this.defaultRenderer=new y(at)}createRenderer(at,ei){if(!at||!ei)return this.defaultRenderer;switch(ei.encapsulation){case e.ifc.Emulated:{let Ut=this.rendererByCompId.get(ei.id);return Ut||(Ut=new n(this.eventManager,this.sharedStylesHost,ei,this.appId),this.rendererByCompId.set(ei.id,Ut)),Ut.applyToHost(at),Ut}case 1:case e.ifc.ShadowDom:return new _(this.eventManager,this.sharedStylesHost,at,ei);default:if(!this.rendererByCompId.has(ei.id)){const Ut=i(ei.id,ei.styles,[]);this.sharedStylesHost.addStyles(Ut),this.rendererByCompId.set(ei.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Et.\u0275fac=function(at){return new(at||Et)(e.LFG(w),e.LFG(Q),e.LFG(e.AFp))},Et.\u0275prov=e.Yz7({token:Et,factory:Et.\u0275fac}),Et})();class y{constructor(ht){this.eventManager=ht,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ht,at){return at?document.createElementNS(ie[at]||at,ht):document.createElement(ht)}createComment(ht){return document.createComment(ht)}createText(ht){return document.createTextNode(ht)}appendChild(ht,at){(b(ht)?ht.content:ht).appendChild(at)}insertBefore(ht,at,ei){ht&&(b(ht)?ht.content:ht).insertBefore(at,ei)}removeChild(ht,at){ht&&ht.removeChild(at)}selectRootElement(ht,at){let ei="string"==typeof ht?document.querySelector(ht):ht;if(!ei)throw new Error(`The selector "${ht}" did not match any elements`);return at||(ei.textContent=""),ei}parentNode(ht){return ht.parentNode}nextSibling(ht){return ht.nextSibling}setAttribute(ht,at,ei,Ut){if(Ut){at=Ut+":"+at;const qt=ie[Ut];qt?ht.setAttributeNS(qt,at,ei):ht.setAttribute(at,ei)}else ht.setAttribute(at,ei)}removeAttribute(ht,at,ei){if(ei){const Ut=ie[ei];Ut?ht.removeAttributeNS(Ut,at):ht.removeAttribute(`${ei}:${at}`)}else ht.removeAttribute(at)}addClass(ht,at){ht.classList.add(at)}removeClass(ht,at){ht.classList.remove(at)}setStyle(ht,at,ei,Ut){Ut&(e.JOm.DashCase|e.JOm.Important)?ht.style.setProperty(at,ei,Ut&e.JOm.Important?"important":""):ht.style[at]=ei}removeStyle(ht,at,ei){ei&e.JOm.DashCase?ht.style.removeProperty(at):ht.style[at]=""}setProperty(ht,at,ei){ht[at]=ei}setValue(ht,at){ht.nodeValue=at}listen(ht,at,ei){return"string"==typeof ht?this.eventManager.addGlobalEventListener(ht,at,r(ei)):this.eventManager.addEventListener(ht,at,r(ei))}}function b(Et){return"TEMPLATE"===Et.tagName&&void 0!==Et.content}class n extends y{constructor(ht,at,ei,Ut){super(ht),this.component=ei;const qt=i(Ut+"-"+ei.id,ei.styles,[]);at.addStyles(qt),this.contentAttr=function pe(Et){return"_ngcontent-%COMP%".replace(ce,Et)}(Ut+"-"+ei.id),this.hostAttr=function S(Et){return"_nghost-%COMP%".replace(ce,Et)}(Ut+"-"+ei.id)}applyToHost(ht){super.setAttribute(ht,this.hostAttr,"")}createElement(ht,at){const ei=super.createElement(ht,at);return super.setAttribute(ei,this.contentAttr,""),ei}}class _ extends y{constructor(ht,at,ei,Ut){super(ht),this.sharedStylesHost=at,this.hostEl=ei,this.shadowRoot=ei.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const qt=i(Ut.id,Ut.styles,[]);for(let Pi=0;Pi<qt.length;Pi++){const Ii=document.createElement("style");Ii.textContent=qt[Pi],this.shadowRoot.appendChild(Ii)}}nodeOrShadowRoot(ht){return ht===this.hostEl?this.shadowRoot:ht}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(ht,at){return super.appendChild(this.nodeOrShadowRoot(ht),at)}insertBefore(ht,at,ei){return super.insertBefore(this.nodeOrShadowRoot(ht),at,ei)}removeChild(ht,at){return super.removeChild(this.nodeOrShadowRoot(ht),at)}parentNode(ht){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ht)))}}let W=(()=>{class Et extends G{constructor(at){super(at)}supports(at){return!0}addEventListener(at,ei,Ut){return at.addEventListener(ei,Ut,!1),()=>this.removeEventListener(at,ei,Ut)}removeEventListener(at,ei,Ut){return at.removeEventListener(ei,Ut)}}return Et.\u0275fac=function(at){return new(at||Et)(e.LFG(t.K0))},Et.\u0275prov=e.Yz7({token:Et,factory:Et.\u0275fac}),Et})();const P=["alt","control","meta","shift"],U={"\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"},me={alt:Et=>Et.altKey,control:Et=>Et.ctrlKey,meta:Et=>Et.metaKey,shift:Et=>Et.shiftKey};let nt=(()=>{class Et extends G{constructor(at){super(at)}supports(at){return null!=Et.parseEventName(at)}addEventListener(at,ei,Ut){const qt=Et.parseEventName(ei),Pi=Et.eventCallback(qt.fullKey,Ut,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel(at,qt.domEventName,Pi))}static parseEventName(at){const ei=at.toLowerCase().split("."),Ut=ei.shift();if(0===ei.length||"keydown"!==Ut&&"keyup"!==Ut)return null;const qt=Et._normalizeKey(ei.pop());let Pi="",Ii=ei.indexOf("code");if(Ii>-1&&(ei.splice(Ii,1),Pi="code."),P.forEach(Vi=>{const Be=ei.indexOf(Vi);Be>-1&&(ei.splice(Be,1),Pi+=Vi+".")}),Pi+=qt,0!=ei.length||0===qt.length)return null;const Ei={};return Ei.domEventName=Ut,Ei.fullKey=Pi,Ei}static matchEventFullKeyCode(at,ei){let Ut=U[at.key]||at.key,qt="";return ei.indexOf("code.")>-1&&(Ut=at.code,qt="code."),!(null==Ut||!Ut)&&(Ut=Ut.toLowerCase()," "===Ut?Ut="space":"."===Ut&&(Ut="dot"),P.forEach(Pi=>{Pi!==Ut&&(0,me[Pi])(at)&&(qt+=Pi+".")}),qt+=Ut,qt===ei)}static eventCallback(at,ei,Ut){return qt=>{Et.matchEventFullKeyCode(qt,at)&&Ut.runGuarded(()=>ei(qt))}}static _normalizeKey(at){return"esc"===at?"escape":at}}return Et.\u0275fac=function(at){return new(at||Et)(e.LFG(t.K0))},Et.\u0275prov=e.Yz7({token:Et,factory:Et.\u0275fac}),Et})();const Ee=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:t.bD},{provide:e.g9A,useValue:function Ie(){C.makeCurrent()},multi:!0},{provide:t.K0,useFactory:function Ge(){return(0,e.RDi)(document),document},deps:[]}]),ye=new e.OlP(""),he=[{provide:e.rWj,useClass:class L{addToWindow(ht){e.dqk.getAngularTestability=(ei,Ut=!0)=>{const qt=ht.findTestabilityInTree(ei,Ut);if(null==qt)throw new Error("Could not find testability for element.");return qt},e.dqk.getAllAngularTestabilities=()=>ht.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>ht.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(ei=>{const Ut=e.dqk.getAllAngularTestabilities();let qt=Ut.length,Pi=!1;const Ii=function(Ei){Pi=Pi||Ei,qt--,0==qt&&ei(Pi)};Ut.forEach(function(Ei){Ei.whenStable(Ii)})})}findTestabilityInTree(ht,at,ei){return null==at?null:ht.getTestability(at)??(ei?(0,t.q)().isShadowRoot(at)?this.findTestabilityInTree(ht,at.host,!0):this.findTestabilityInTree(ht,at.parentElement,!0):null)}},deps:[]},{provide:e.lri,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]}],de=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function $(){return new e.qLn},deps:[]},{provide:N,useClass:W,multi:!0,deps:[t.K0,e.R0b,e.Lbi]},{provide:N,useClass:nt,multi:!0,deps:[t.K0]},{provide:l,useClass:l,deps:[w,Q,e.AFp]},{provide:e.FYo,useExisting:l},{provide:K,useExisting:Q},{provide:Q,useClass:Q,deps:[t.K0]},{provide:w,useClass:w,deps:[N,e.R0b]},{provide:t.JF,useClass:T,deps:[]},[]];let we=(()=>{class Et{constructor(at){}static withServerTransition(at){return{ngModule:Et,providers:[{provide:e.AFp,useValue:at.appId},{provide:h,useExisting:e.AFp},E]}}}return Et.\u0275fac=function(at){return new(at||Et)(e.LFG(ye,12))},Et.\u0275mod=e.oAB({type:Et}),Et.\u0275inj=e.cJS({providers:[...de,...he],imports:[t.ez,e.hGG]}),Et})(),X=(()=>{class Et{constructor(at){this._doc=at}getTitle(){return this._doc.title}setTitle(at){this._doc.title=at||""}}return Et.\u0275fac=function(at){return new(at||Et)(e.LFG(t.K0))},Et.\u0275prov=e.Yz7({token:Et,factory:function(at){let ei=null;return ei=at?new at:function Se(){return new X((0,e.LFG)(t.K0))}(),ei},providedIn:"root"}),Et})();typeof window<"u"&&window;const Nt={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},et=new e.OlP("HammerGestureConfig"),Ae=new e.OlP("HammerLoader");let rt=(()=>{class Et{constructor(){this.events=[],this.overrides={}}buildHammer(at){const ei=new Hammer(at,this.options);ei.get("pinch").set({enable:!0}),ei.get("rotate").set({enable:!0});for(const Ut in this.overrides)ei.get(Ut).set(this.overrides[Ut]);return ei}}return Et.\u0275fac=function(at){return new(at||Et)},Et.\u0275prov=e.Yz7({token:Et,factory:Et.\u0275fac}),Et})(),Qe=(()=>{class Et extends G{constructor(at,ei,Ut,qt){super(at),this._config=ei,this.console=Ut,this.loader=qt,this._loaderPromise=null}supports(at){return!(!Nt.hasOwnProperty(at.toLowerCase())&&!this.isCustomEvent(at)||!window.Hammer&&!this.loader)}addEventListener(at,ei,Ut){const qt=this.manager.getZone();if(ei=ei.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||qt.runOutsideAngular(()=>this.loader());let Pi=!1,Ii=()=>{Pi=!0};return qt.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Pi||(Ii=this.addEventListener(at,ei,Ut)):Ii=()=>{}}).catch(()=>{Ii=()=>{}})),()=>{Ii()}}return qt.runOutsideAngular(()=>{const Pi=this._config.buildHammer(at),Ii=function(Ei){qt.runGuarded(function(){Ut(Ei)})};return Pi.on(ei,Ii),()=>{Pi.off(ei,Ii),"function"==typeof Pi.destroy&&Pi.destroy()}})}isCustomEvent(at){return this._config.events.indexOf(at)>-1}}return Et.\u0275fac=function(at){return new(at||Et)(e.LFG(t.K0),e.LFG(et),e.LFG(e.c2e),e.LFG(Ae,8))},Et.\u0275prov=e.Yz7({token:Et,factory:Et.\u0275fac}),Et})(),Ke=(()=>{class Et{}return Et.\u0275fac=function(at){return new(at||Et)},Et.\u0275mod=e.oAB({type:Et}),Et.\u0275inj=e.cJS({providers:[{provide:N,useClass:Qe,multi:!0,deps:[t.K0,et,e.c2e,[new e.FiY,Ae]]},{provide:et,useClass:rt,deps:[]}]}),Et})(),mt=(()=>{class Et{}return Et.\u0275fac=function(at){return new(at||Et)},Et.\u0275prov=e.Yz7({token:Et,factory:function(at){let ei=null;return ei=at?new(at||Et):e.LFG(Gt),ei},providedIn:"root"}),Et})(),Gt=(()=>{class Et extends mt{constructor(at){super(),this._doc=at}sanitize(at,ei){if(null==ei)return null;switch(at){case e.q3G.NONE:return ei;case e.q3G.HTML:return(0,e.qzn)(ei,"HTML")?(0,e.z3N)(ei):(0,e.EiD)(this._doc,String(ei)).toString();case e.q3G.STYLE:return(0,e.qzn)(ei,"Style")?(0,e.z3N)(ei):ei;case e.q3G.SCRIPT:if((0,e.qzn)(ei,"Script"))return(0,e.z3N)(ei);throw new Error("unsafe value used in a script context");case e.q3G.URL:return(0,e.qzn)(ei,"URL")?(0,e.z3N)(ei):(0,e.mCW)(String(ei));case e.q3G.RESOURCE_URL:if((0,e.qzn)(ei,"ResourceURL"))return(0,e.z3N)(ei);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${at} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(at){return(0,e.JVY)(at)}bypassSecurityTrustStyle(at){return(0,e.L6k)(at)}bypassSecurityTrustScript(at){return(0,e.eBb)(at)}bypassSecurityTrustUrl(at){return(0,e.LAX)(at)}bypassSecurityTrustResourceUrl(at){return(0,e.pB0)(at)}}return Et.\u0275fac=function(at){return new(at||Et)(e.LFG(t.K0))},Et.\u0275prov=e.Yz7({token:Et,factory:function(at){let ei=null;return ei=at?new at:function $t(Et){return new Gt(Et.get(t.K0))}(e.LFG(e.zs3)),ei},providedIn:"root"}),Et})()},9116:(ke,J,p)=>{"use strict";p.d(J,{gz:()=>dr,gk:()=>Xt,m2:()=>Bt,Q3:()=>fi,OD:()=>ot,Av:()=>Nn,F0:()=>$n,rH:()=>ao,Od:()=>sc,yS:()=>Mo,Bz:()=>O1,lC:()=>Ea});var t=p(4650),e=p(457),f=p(9646),C=p(1135),a=p(6805),M=p(9841),d=p(7272),R=p(9770),h=p(9635),I=p(2843),E=p(9751),L=p(515),T=p(4033),N=p(7579),w=p(6895),G=p(4004),K=p(3900),Q=p(5698),re=p(8675),ie=p(9300),ce=p(5577),ae=p(590),ne=p(4351),le=p(8505),ee=p(262),pe=p(5026),S=p(4482),i=p(5403);function r(ge){return ge<=0?()=>L.E:(0,S.e)((xe,fe)=>{let Ue=[];xe.subscribe((0,i.x)(fe,tt=>{Ue.push(tt),ge<Ue.length&&Ue.shift()},()=>{for(const tt of Ue)fe.next(tt);fe.complete()},void 0,()=>{Ue=null}))})}var u=p(8068),l=p(6590),y=p(4671);function D(ge,xe){const fe=arguments.length>=2;return Ue=>Ue.pipe(ge?(0,ie.h)((tt,It)=>ge(tt,It,Ue)):y.y,r(1),fe?(0,l.d)(xe):(0,u.T)(()=>new a.K))}var k=p(2529),b=p(9718),n=p(8746),_=p(8343),W=p(8189),P=p(1481);const U="primary",me=Symbol("RouteTitle");class nt{constructor(xe){this.params=xe||{}}has(xe){return Object.prototype.hasOwnProperty.call(this.params,xe)}get(xe){if(this.has(xe)){const fe=this.params[xe];return Array.isArray(fe)?fe[0]:fe}return null}getAll(xe){if(this.has(xe)){const fe=this.params[xe];return Array.isArray(fe)?fe:[fe]}return[]}get keys(){return Object.keys(this.params)}}function Pe(ge){return new nt(ge)}function Oe(ge,xe,fe){const Ue=fe.path.split("/");if(Ue.length>ge.length||"full"===fe.pathMatch&&(xe.hasChildren()||Ue.length<ge.length))return null;const tt={};for(let It=0;It<Ue.length;It++){const Jt=Ue[It],ni=ge[It];if(Jt.startsWith(":"))tt[Jt.substring(1)]=ni;else if(Jt!==ni.path)return null}return{consumed:ge.slice(0,Ue.length),posParams:tt}}function ue(ge,xe){const fe=ge?Object.keys(ge):void 0,Ue=xe?Object.keys(xe):void 0;if(!fe||!Ue||fe.length!=Ue.length)return!1;let tt;for(let It=0;It<fe.length;It++)if(tt=fe[It],!ve(ge[tt],xe[tt]))return!1;return!0}function ve(ge,xe){if(Array.isArray(ge)&&Array.isArray(xe)){if(ge.length!==xe.length)return!1;const fe=[...ge].sort(),Ue=[...xe].sort();return fe.every((tt,It)=>Ue[It]===tt)}return ge===xe}function Ie(ge){return Array.prototype.concat.apply([],ge)}function $(ge){return ge.length>0?ge[ge.length-1]:null}function ut(ge,xe){for(const fe in ge)ge.hasOwnProperty(fe)&&xe(ge[fe],fe)}function Ee(ge){return(0,t.CqO)(ge)?ge:(0,t.QGY)(ge)?(0,e.D)(Promise.resolve(ge)):(0,f.of)(ge)}const de={exact:function Ce(ge,xe,fe){if(!hi(ge.segments,xe.segments)||!Le(ge.segments,xe.segments,fe)||ge.numberOfChildren!==xe.numberOfChildren)return!1;for(const Ue in xe.children)if(!ge.children[Ue]||!Ce(ge.children[Ue],xe.children[Ue],fe))return!1;return!0},subset:X},we={exact:function j(ge,xe){return ue(ge,xe)},subset:function Se(ge,xe){return Object.keys(xe).length<=Object.keys(ge).length&&Object.keys(xe).every(fe=>ve(ge[fe],xe[fe]))},ignored:()=>!0};function Y(ge,xe,fe){return de[fe.paths](ge.root,xe.root,fe.matrixParams)&&we[fe.queryParams](ge.queryParams,xe.queryParams)&&!("exact"===fe.fragment&&ge.fragment!==xe.fragment)}function X(ge,xe,fe){return Ye(ge,xe,xe.segments,fe)}function Ye(ge,xe,fe,Ue){if(ge.segments.length>fe.length){const tt=ge.segments.slice(0,fe.length);return!(!hi(tt,fe)||xe.hasChildren()||!Le(tt,fe,Ue))}if(ge.segments.length===fe.length){if(!hi(ge.segments,fe)||!Le(ge.segments,fe,Ue))return!1;for(const tt in xe.children)if(!ge.children[tt]||!X(ge.children[tt],xe.children[tt],Ue))return!1;return!0}{const tt=fe.slice(0,ge.segments.length),It=fe.slice(ge.segments.length);return!!(hi(ge.segments,tt)&&Le(ge.segments,tt,Ue)&&ge.children[U])&&Ye(ge.children[U],xe,It,Ue)}}function Le(ge,xe,fe){return xe.every((Ue,tt)=>we[fe](ge[tt].parameters,Ue.parameters))}class gt{constructor(xe,fe,Ue){this.root=xe,this.queryParams=fe,this.fragment=Ue}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pe(this.queryParams)),this._queryParamMap}toString(){return vt.serialize(this)}}class Wt{constructor(xe,fe){this.segments=xe,this.children=fe,this.parent=null,ut(fe,(Ue,tt)=>Ue.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ct(this)}}class Rt{constructor(xe,fe){this.path=xe,this.parameters=fe}get parameterMap(){return this._parameterMap||(this._parameterMap=Pe(this.parameters)),this._parameterMap}toString(){return ct(this)}}function hi(ge,xe){return ge.length===xe.length&&ge.every((fe,Ue)=>fe.path===xe[Ue].path)}let Pt=(()=>{class ge{}return ge.\u0275fac=function(fe){return new(fe||ge)},ge.\u0275prov=t.Yz7({token:ge,factory:function(){return new pt},providedIn:"root"}),ge})();class pt{parse(xe){const fe=new Gt(xe);return new gt(fe.parseRootSegment(),fe.parseQueryParams(),fe.parseFragment())}serialize(xe){const fe=`/${At(xe.root,!0)}`,Ue=function et(ge){const xe=Object.keys(ge).map(fe=>{const Ue=ge[fe];return Array.isArray(Ue)?Ue.map(tt=>`${ze(fe)}=${ze(tt)}`).join("&"):`${ze(fe)}=${ze(Ue)}`}).filter(fe=>!!fe);return xe.length?`?${xe.join("&")}`:""}(xe.queryParams);return`${fe}${Ue}${"string"==typeof xe.fragment?`#${function Ve(ge){return encodeURI(ge)}(xe.fragment)}`:""}`}}const vt=new pt;function Ct(ge){return ge.segments.map(xe=>ct(xe)).join("/")}function At(ge,xe){if(!ge.hasChildren())return Ct(ge);if(xe){const fe=ge.children[U]?At(ge.children[U],!1):"",Ue=[];return ut(ge.children,(tt,It)=>{It!==U&&Ue.push(`${It}:${At(tt,!1)}`)}),Ue.length>0?`${fe}(${Ue.join("//")})`:fe}{const fe=function yt(ge,xe){let fe=[];return ut(ge.children,(Ue,tt)=>{tt===U&&(fe=fe.concat(xe(Ue,tt)))}),ut(ge.children,(Ue,tt)=>{tt!==U&&(fe=fe.concat(xe(Ue,tt)))}),fe}(ge,(Ue,tt)=>tt===U?[At(ge.children[U],!1)]:[`${tt}:${At(Ue,!1)}`]);return 1===Object.keys(ge.children).length&&null!=ge.children[U]?`${Ct(ge)}/${fe[0]}`:`${Ct(ge)}/(${fe.join("//")})`}}function dt(ge){return encodeURIComponent(ge).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ze(ge){return dt(ge).replace(/%3B/gi,";")}function Fe(ge){return dt(ge).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function be(ge){return decodeURIComponent(ge)}function xt(ge){return be(ge.replace(/\+/g,"%20"))}function ct(ge){return`${Fe(ge.path)}${function Nt(ge){return Object.keys(ge).map(xe=>`;${Fe(xe)}=${Fe(ge[xe])}`).join("")}(ge.parameters)}`}const Ae=/^[^\/()?;=#]+/;function rt(ge){const xe=ge.match(Ae);return xe?xe[0]:""}const Qe=/^[^=?&#]+/,mt=/^[^&#]+/;class Gt{constructor(xe){this.url=xe,this.remaining=xe}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Wt([],{}):new Wt([],this.parseChildren())}parseQueryParams(){const xe={};if(this.consumeOptional("?"))do{this.parseQueryParam(xe)}while(this.consumeOptional("&"));return xe}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const xe=[];for(this.peekStartsWith("(")||xe.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),xe.push(this.parseSegment());let fe={};this.peekStartsWith("/(")&&(this.capture("/"),fe=this.parseParens(!0));let Ue={};return this.peekStartsWith("(")&&(Ue=this.parseParens(!1)),(xe.length>0||Object.keys(fe).length>0)&&(Ue[U]=new Wt(xe,fe)),Ue}parseSegment(){const xe=rt(this.remaining);if(""===xe&&this.peekStartsWith(";"))throw new t.vHH(4009,!1);return this.capture(xe),new Rt(be(xe),this.parseMatrixParams())}parseMatrixParams(){const xe={};for(;this.consumeOptional(";");)this.parseParam(xe);return xe}parseParam(xe){const fe=rt(this.remaining);if(!fe)return;this.capture(fe);let Ue="";if(this.consumeOptional("=")){const tt=rt(this.remaining);tt&&(Ue=tt,this.capture(Ue))}xe[be(fe)]=be(Ue)}parseQueryParam(xe){const fe=function Ke(ge){const xe=ge.match(Qe);return xe?xe[0]:""}(this.remaining);if(!fe)return;this.capture(fe);let Ue="";if(this.consumeOptional("=")){const Jt=function $t(ge){const xe=ge.match(mt);return xe?xe[0]:""}(this.remaining);Jt&&(Ue=Jt,this.capture(Ue))}const tt=xt(fe),It=xt(Ue);if(xe.hasOwnProperty(tt)){let Jt=xe[tt];Array.isArray(Jt)||(Jt=[Jt],xe[tt]=Jt),Jt.push(It)}else xe[tt]=It}parseParens(xe){const fe={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ue=rt(this.remaining),tt=this.remaining[Ue.length];if("/"!==tt&&")"!==tt&&";"!==tt)throw new t.vHH(4010,!1);let It;Ue.indexOf(":")>-1?(It=Ue.slice(0,Ue.indexOf(":")),this.capture(It),this.capture(":")):xe&&(It=U);const Jt=this.parseChildren();fe[It]=1===Object.keys(Jt).length?Jt[U]:new Wt([],Jt),this.consumeOptional("//")}return fe}peekStartsWith(xe){return this.remaining.startsWith(xe)}consumeOptional(xe){return!!this.peekStartsWith(xe)&&(this.remaining=this.remaining.substring(xe.length),!0)}capture(xe){if(!this.consumeOptional(xe))throw new t.vHH(4011,!1)}}function zt(ge){return ge.segments.length>0?new Wt([],{[U]:ge}):ge}function Et(ge){const xe={};for(const Ue of Object.keys(ge.children)){const It=Et(ge.children[Ue]);(It.segments.length>0||It.hasChildren())&&(xe[Ue]=It)}return function ht(ge){if(1===ge.numberOfChildren&&ge.children[U]){const xe=ge.children[U];return new Wt(ge.segments.concat(xe.segments),xe.children)}return ge}(new Wt(ge.segments,xe))}function at(ge){return ge instanceof gt}function Ii(ge,xe,fe,Ue,tt){if(0===fe.length)return Be(xe.root,xe.root,xe.root,Ue,tt);const It=function Je(ge){if("string"==typeof ge[0]&&1===ge.length&&"/"===ge[0])return new _e(!0,0,ge);let xe=0,fe=!1;const Ue=ge.reduce((tt,It,Jt)=>{if("object"==typeof It&&null!=It){if(It.outlets){const ni={};return ut(It.outlets,(bi,Xi)=>{ni[Xi]="string"==typeof bi?bi.split("/"):bi}),[...tt,{outlets:ni}]}if(It.segmentPath)return[...tt,It.segmentPath]}return"string"!=typeof It?[...tt,It]:0===Jt?(It.split("/").forEach((ni,bi)=>{0==bi&&"."===ni||(0==bi&&""===ni?fe=!0:".."===ni?xe++:""!=ni&&tt.push(ni))}),tt):[...tt,It]},[]);return new _e(fe,xe,Ue)}(fe);return It.toRoot()?Be(xe.root,xe.root,new Wt([],{}),Ue,tt):function Jt(bi){const Xi=function Xe(ge,xe,fe,Ue){if(ge.isAbsolute)return new _t(xe.root,!0,0);if(-1===Ue)return new _t(fe,fe===xe.root,0);return function bt(ge,xe,fe){let Ue=ge,tt=xe,It=fe;for(;It>tt;){if(It-=tt,Ue=Ue.parent,!Ue)throw new t.vHH(4005,!1);tt=Ue.segments.length}return new _t(Ue,!1,tt-It)}(fe,Ue+(Ei(ge.commands[0])?0:1),ge.numberOfDoubleDots)}(It,xe,ge.snapshot?._urlSegment,bi),Rn=Xi.processChildren?Hi(Xi.segmentGroup,Xi.index,It.commands):mi(Xi.segmentGroup,Xi.index,It.commands);return Be(xe.root,Xi.segmentGroup,Rn,Ue,tt)}(ge.snapshot?._lastPathIndex)}function Ei(ge){return"object"==typeof ge&&null!=ge&&!ge.outlets&&!ge.segmentPath}function Vi(ge){return"object"==typeof ge&&null!=ge&&ge.outlets}function Be(ge,xe,fe,Ue,tt){let Jt,It={};Ue&&ut(Ue,(bi,Xi)=>{It[Xi]=Array.isArray(bi)?bi.map(Rn=>`${Rn}`):`${bi}`}),Jt=ge===xe?fe:kt(ge,xe,fe);const ni=zt(Et(Jt));return new gt(ni,It,tt)}function kt(ge,xe,fe){const Ue={};return ut(ge.children,(tt,It)=>{Ue[It]=tt===xe?fe:kt(tt,xe,fe)}),new Wt(ge.segments,Ue)}class _e{constructor(xe,fe,Ue){if(this.isAbsolute=xe,this.numberOfDoubleDots=fe,this.commands=Ue,xe&&Ue.length>0&&Ei(Ue[0]))throw new t.vHH(4003,!1);const tt=Ue.find(Vi);if(tt&&tt!==$(Ue))throw new t.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class _t{constructor(xe,fe,Ue){this.segmentGroup=xe,this.processChildren=fe,this.index=Ue}}function mi(ge,xe,fe){if(ge||(ge=new Wt([],{})),0===ge.segments.length&&ge.hasChildren())return Hi(ge,xe,fe);const Ue=function Ui(ge,xe,fe){let Ue=0,tt=xe;const It={match:!1,pathIndex:0,commandIndex:0};for(;tt<ge.segments.length;){if(Ue>=fe.length)return It;const Jt=ge.segments[tt],ni=fe[Ue];if(Vi(ni))break;const bi=`${ni}`,Xi=Ue<fe.length-1?fe[Ue+1]:null;if(tt>0&&void 0===bi)break;if(bi&&Xi&&"object"==typeof Xi&&void 0===Xi.outlets){if(!si(bi,Xi,Jt))return It;Ue+=2}else{if(!si(bi,{},Jt))return It;Ue++}tt++}return{match:!0,pathIndex:tt,commandIndex:Ue}}(ge,xe,fe),tt=fe.slice(Ue.commandIndex);if(Ue.match&&Ue.pathIndex<ge.segments.length){const It=new Wt(ge.segments.slice(0,Ue.pathIndex),{});return It.children[U]=new Wt(ge.segments.slice(Ue.pathIndex),ge.children),Hi(It,0,tt)}return Ue.match&&0===tt.length?new Wt(ge.segments,{}):Ue.match&&!ge.hasChildren()?Ji(ge,xe,fe):Ue.match?Hi(ge,0,tt):Ji(ge,xe,fe)}function Hi(ge,xe,fe){if(0===fe.length)return new Wt(ge.segments,{});{const Ue=function Vt(ge){return Vi(ge[0])?ge[0].outlets:{[U]:ge}}(fe),tt={};return ut(Ue,(It,Jt)=>{"string"==typeof It&&(It=[It]),null!==It&&(tt[Jt]=mi(ge.children[Jt],xe,It))}),ut(ge.children,(It,Jt)=>{void 0===Ue[Jt]&&(tt[Jt]=It)}),new Wt(ge.segments,tt)}}function Ji(ge,xe,fe){const Ue=ge.segments.slice(0,xe);let tt=0;for(;tt<fe.length;){const It=fe[tt];if(Vi(It)){const bi=an(It.outlets);return new Wt(Ue,bi)}if(0===tt&&Ei(fe[0])){Ue.push(new Rt(ge.segments[xe].path,_n(fe[0]))),tt++;continue}const Jt=Vi(It)?It.outlets[U]:`${It}`,ni=tt<fe.length-1?fe[tt+1]:null;Jt&&ni&&Ei(ni)?(Ue.push(new Rt(Jt,_n(ni))),tt+=2):(Ue.push(new Rt(Jt,{})),tt++)}return new Wt(Ue,{})}function an(ge){const xe={};return ut(ge,(fe,Ue)=>{"string"==typeof fe&&(fe=[fe]),null!==fe&&(xe[Ue]=Ji(new Wt([],{}),0,fe))}),xe}function _n(ge){const xe={};return ut(ge,(fe,Ue)=>xe[Ue]=`${fe}`),xe}function si(ge,xe,fe){return ge==fe.path&&ue(xe,fe.parameters)}class Ti{constructor(xe,fe){this.id=xe,this.url=fe}}class ot extends Ti{constructor(xe,fe,Ue="imperative",tt=null){super(xe,fe),this.type=0,this.navigationTrigger=Ue,this.restoredState=tt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Bt extends Ti{constructor(xe,fe,Ue){super(xe,fe),this.urlAfterRedirects=Ue,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Xt extends Ti{constructor(xe,fe,Ue,tt){super(xe,fe),this.reason=Ue,this.code=tt,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class fi extends Ti{constructor(xe,fe,Ue,tt){super(xe,fe),this.error=Ue,this.target=tt,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Li extends Ti{constructor(xe,fe,Ue,tt){super(xe,fe),this.urlAfterRedirects=Ue,this.state=tt,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ri extends Ti{constructor(xe,fe,Ue,tt){super(xe,fe),this.urlAfterRedirects=Ue,this.state=tt,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dn extends Ti{constructor(xe,fe,Ue,tt,It){super(xe,fe),this.urlAfterRedirects=Ue,this.state=tt,this.shouldActivate=It,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Zn extends Ti{constructor(xe,fe,Ue,tt){super(xe,fe),this.urlAfterRedirects=Ue,this.state=tt,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nn extends Ti{constructor(xe,fe,Ue,tt){super(xe,fe),this.urlAfterRedirects=Ue,this.state=tt,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qn{constructor(xe){this.route=xe,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class An{constructor(xe){this.route=xe,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Si{constructor(xe){this.snapshot=xe,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yi{constructor(xe){this.snapshot=xe,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mn{constructor(xe){this.snapshot=xe,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ha{constructor(xe){this.snapshot=xe,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qn{constructor(xe,fe,Ue){this.routerEvent=xe,this.position=fe,this.anchor=Ue,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Fs{constructor(xe){this._root=xe}get root(){return this._root.value}parent(xe){const fe=this.pathFromRoot(xe);return fe.length>1?fe[fe.length-2]:null}children(xe){const fe=Kr(xe,this._root);return fe?fe.children.map(Ue=>Ue.value):[]}firstChild(xe){const fe=Kr(xe,this._root);return fe&&fe.children.length>0?fe.children[0].value:null}siblings(xe){const fe=Wa(xe,this._root);return fe.length<2?[]:fe[fe.length-2].children.map(tt=>tt.value).filter(tt=>tt!==xe)}pathFromRoot(xe){return Wa(xe,this._root).map(fe=>fe.value)}}function Kr(ge,xe){if(ge===xe.value)return xe;for(const fe of xe.children){const Ue=Kr(ge,fe);if(Ue)return Ue}return null}function Wa(ge,xe){if(ge===xe.value)return[xe];for(const fe of xe.children){const Ue=Wa(ge,fe);if(Ue.length)return Ue.unshift(xe),Ue}return[]}class Er{constructor(xe,fe){this.value=xe,this.children=fe}toString(){return`TreeNode(${this.value})`}}function Pa(ge){const xe={};return ge&&ge.children.forEach(fe=>xe[fe.value.outlet]=fe),xe}class Ya extends Fs{constructor(xe,fe){super(xe),this.snapshot=fe,la(this,xe)}toString(){return this.snapshot.toString()}}function ns(ge,xe){const fe=function js(ge,xe){const Jt=new rs([],{},{},"",{},U,xe,null,ge.root,-1,{});return new fr("",new Er(Jt,[]))}(ge,xe),Ue=new C.X([new Rt("",{})]),tt=new C.X({}),It=new C.X({}),Jt=new C.X({}),ni=new C.X(""),bi=new dr(Ue,tt,Jt,ni,It,U,xe,fe.root);return bi.snapshot=fe.root,new Ya(new Er(bi,[]),fe)}class dr{constructor(xe,fe,Ue,tt,It,Jt,ni,bi){this.url=xe,this.params=fe,this.queryParams=Ue,this.fragment=tt,this.data=It,this.outlet=Jt,this.component=ni,this.title=this.data?.pipe((0,G.U)(Xi=>Xi[me]))??(0,f.of)(void 0),this._futureSnapshot=bi}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,G.U)(xe=>Pe(xe)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,G.U)(xe=>Pe(xe)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ka(ge,xe="emptyOnly"){const fe=ge.pathFromRoot;let Ue=0;if("always"!==xe)for(Ue=fe.length-1;Ue>=1;){const tt=fe[Ue],It=fe[Ue-1];if(tt.routeConfig&&""===tt.routeConfig.path)Ue--;else{if(It.component)break;Ue--}}return function Ma(ge){return ge.reduce((xe,fe)=>({params:{...xe.params,...fe.params},data:{...xe.data,...fe.data},resolve:{...fe.data,...xe.resolve,...fe.routeConfig?.data,...fe._resolvedData}}),{params:{},data:{},resolve:{}})}(fe.slice(Ue))}class rs{constructor(xe,fe,Ue,tt,It,Jt,ni,bi,Xi,Rn,cn,mn){this.url=xe,this.params=fe,this.queryParams=Ue,this.fragment=tt,this.data=It,this.outlet=Jt,this.component=ni,this.title=this.data?.[me],this.routeConfig=bi,this._urlSegment=Xi,this._lastPathIndex=Rn,this._correctedLastPathIndex=mn??Rn,this._resolve=cn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Pe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ue=>Ue.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class fr extends Fs{constructor(xe,fe){super(fe),this.url=xe,la(this,fe)}toString(){return Gr(this._root)}}function la(ge,xe){xe.value._routerState=ge,xe.children.forEach(fe=>la(ge,fe))}function Gr(ge){const xe=ge.children.length>0?` { ${ge.children.map(Gr).join(", ")} } `:"";return`${ge.value}${xe}`}function Lr(ge){if(ge.snapshot){const xe=ge.snapshot,fe=ge._futureSnapshot;ge.snapshot=fe,ue(xe.queryParams,fe.queryParams)||ge.queryParams.next(fe.queryParams),xe.fragment!==fe.fragment&&ge.fragment.next(fe.fragment),ue(xe.params,fe.params)||ge.params.next(fe.params),function De(ge,xe){if(ge.length!==xe.length)return!1;for(let fe=0;fe<ge.length;++fe)if(!ue(ge[fe],xe[fe]))return!1;return!0}(xe.url,fe.url)||ge.url.next(fe.url),ue(xe.data,fe.data)||ge.data.next(fe.data)}else ge.snapshot=ge._futureSnapshot,ge.data.next(ge._futureSnapshot.data)}function ta(ge,xe){const fe=ue(ge.params,xe.params)&&function jt(ge,xe){return hi(ge,xe)&&ge.every((fe,Ue)=>ue(fe.parameters,xe[Ue].parameters))}(ge.url,xe.url);return fe&&!(!ge.parent!=!xe.parent)&&(!ge.parent||ta(ge.parent,xe.parent))}function wa(ge,xe,fe){if(fe&&ge.shouldReuseRoute(xe.value,fe.value.snapshot)){const Ue=fe.value;Ue._futureSnapshot=xe.value;const tt=function As(ge,xe,fe){return xe.children.map(Ue=>{for(const tt of fe.children)if(ge.shouldReuseRoute(Ue.value,tt.value.snapshot))return wa(ge,Ue,tt);return wa(ge,Ue)})}(ge,xe,fe);return new Er(Ue,tt)}{if(ge.shouldAttach(xe.value)){const It=ge.retrieve(xe.value);if(null!==It){const Jt=It.route;return Jt.value._futureSnapshot=xe.value,Jt.children=xe.children.map(ni=>wa(ge,ni)),Jt}}const Ue=function Rr(ge){return new dr(new C.X(ge.url),new C.X(ge.params),new C.X(ge.queryParams),new C.X(ge.fragment),new C.X(ge.data),ge.outlet,ge.component,ge)}(xe.value),tt=xe.children.map(It=>wa(ge,It));return new Er(Ue,tt)}}const Sa="ngNavigationCancelingError";function yr(ge,xe){const{redirectTo:fe,navigationBehaviorOptions:Ue}=at(xe)?{redirectTo:xe,navigationBehaviorOptions:void 0}:xe,tt=_s(!1,0,xe);return tt.url=fe,tt.navigationBehaviorOptions=Ue,tt}function _s(ge,xe,fe){const Ue=new Error("NavigationCancelingError: "+(ge||""));return Ue[Sa]=!0,Ue.cancellationCode=xe,fe&&(Ue.url=fe),Ue}function ss(ge){return ka(ge)&&at(ge.url)}function ka(ge){return ge&&ge[Sa]}class Qs{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ur,this.attachRef=null}}let ur=(()=>{class ge{constructor(){this.contexts=new Map}onChildOutletCreated(fe,Ue){const tt=this.getOrCreateContext(fe);tt.outlet=Ue,this.contexts.set(fe,tt)}onChildOutletDestroyed(fe){const Ue=this.getContext(fe);Ue&&(Ue.outlet=null,Ue.attachRef=null)}onOutletDeactivated(){const fe=this.contexts;return this.contexts=new Map,fe}onOutletReAttached(fe){this.contexts=fe}getOrCreateContext(fe){let Ue=this.getContext(fe);return Ue||(Ue=new Qs,this.contexts.set(fe,Ue)),Ue}getContext(fe){return this.contexts.get(fe)||null}}return ge.\u0275fac=function(fe){return new(fe||ge)},ge.\u0275prov=t.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})();const fa=!1;let Ea=(()=>{class ge{constructor(fe,Ue,tt,It,Jt){this.parentContexts=fe,this.location=Ue,this.changeDetector=It,this.environmentInjector=Jt,this.activated=null,this._activatedRoute=null,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.name=tt||U,fe.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const fe=this.parentContexts.getContext(this.name);fe&&fe.route&&(fe.attachRef?this.attach(fe.attachRef,fe.route):this.activateWith(fe.route,fe.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.vHH(4012,fa);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.vHH(4012,fa);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.vHH(4012,fa);this.location.detach();const fe=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(fe.instance),fe}attach(fe,Ue){this.activated=fe,this._activatedRoute=Ue,this.location.insert(fe.hostView),this.attachEvents.emit(fe.instance)}deactivate(){if(this.activated){const fe=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(fe)}}activateWith(fe,Ue){if(this.isActivated)throw new t.vHH(4013,fa);this._activatedRoute=fe;const tt=this.location,Jt=fe._futureSnapshot.component,ni=this.parentContexts.getOrCreateContext(this.name).children,bi=new Ls(fe,ni,tt.injector);if(Ue&&function Na(ge){return!!ge.resolveComponentFactory}(Ue)){const Xi=Ue.resolveComponentFactory(Jt);this.activated=tt.createComponent(Xi,tt.length,bi)}else this.activated=tt.createComponent(Jt,{index:tt.length,injector:bi,environmentInjector:Ue??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ge.\u0275fac=function(fe){return new(fe||ge)(t.Y36(ur),t.Y36(t.s_b),t.$8M("name"),t.Y36(t.sBO),t.Y36(t.lqb))},ge.\u0275dir=t.lG2({type:ge,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),ge})();class Ls{constructor(xe,fe,Ue){this.route=xe,this.childContexts=fe,this.parent=Ue}get(xe,fe){return xe===dr?this.route:xe===ur?this.childContexts:this.parent.get(xe,fe)}}let os=(()=>{class ge{}return ge.\u0275fac=function(fe){return new(fe||ge)},ge.\u0275cmp=t.Xpm({type:ge,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(fe,Ue){1&fe&&t._UZ(0,"router-outlet")},dependencies:[Ea],encapsulation:2}),ge})();function nr(ge,xe){return ge.providers&&!ge._injector&&(ge._injector=(0,t.MMx)(ge.providers,xe,`Route: ${ge.path}`)),ge._injector??xe}function vs(ge){const xe=ge.children&&ge.children.map(vs),fe=xe?{...ge,children:xe}:{...ge};return!fe.component&&!fe.loadComponent&&(xe||fe.loadChildren)&&fe.outlet&&fe.outlet!==U&&(fe.component=os),fe}function rr(ge){return ge.outlet||U}function io(ge,xe){const fe=ge.filter(Ue=>rr(Ue)===xe);return fe.push(...ge.filter(Ue=>rr(Ue)!==xe)),fe}function jr(ge){if(!ge)return null;if(ge.routeConfig?._injector)return ge.routeConfig._injector;for(let xe=ge.parent;xe;xe=xe.parent){const fe=xe.routeConfig;if(fe?._loadedInjector)return fe._loadedInjector;if(fe?._injector)return fe._injector}return null}class ls{constructor(xe,fe,Ue,tt){this.routeReuseStrategy=xe,this.futureState=fe,this.currState=Ue,this.forwardEvent=tt}activate(xe){const fe=this.futureState._root,Ue=this.currState?this.currState._root:null;this.deactivateChildRoutes(fe,Ue,xe),Lr(this.futureState.root),this.activateChildRoutes(fe,Ue,xe)}deactivateChildRoutes(xe,fe,Ue){const tt=Pa(fe);xe.children.forEach(It=>{const Jt=It.value.outlet;this.deactivateRoutes(It,tt[Jt],Ue),delete tt[Jt]}),ut(tt,(It,Jt)=>{this.deactivateRouteAndItsChildren(It,Ue)})}deactivateRoutes(xe,fe,Ue){const tt=xe.value,It=fe?fe.value:null;if(tt===It)if(tt.component){const Jt=Ue.getContext(tt.outlet);Jt&&this.deactivateChildRoutes(xe,fe,Jt.children)}else this.deactivateChildRoutes(xe,fe,Ue);else It&&this.deactivateRouteAndItsChildren(fe,Ue)}deactivateRouteAndItsChildren(xe,fe){xe.value.component&&this.routeReuseStrategy.shouldDetach(xe.value.snapshot)?this.detachAndStoreRouteSubtree(xe,fe):this.deactivateRouteAndOutlet(xe,fe)}detachAndStoreRouteSubtree(xe,fe){const Ue=fe.getContext(xe.value.outlet),tt=Ue&&xe.value.component?Ue.children:fe,It=Pa(xe);for(const Jt of Object.keys(It))this.deactivateRouteAndItsChildren(It[Jt],tt);if(Ue&&Ue.outlet){const Jt=Ue.outlet.detach(),ni=Ue.children.onOutletDeactivated();this.routeReuseStrategy.store(xe.value.snapshot,{componentRef:Jt,route:xe,contexts:ni})}}deactivateRouteAndOutlet(xe,fe){const Ue=fe.getContext(xe.value.outlet),tt=Ue&&xe.value.component?Ue.children:fe,It=Pa(xe);for(const Jt of Object.keys(It))this.deactivateRouteAndItsChildren(It[Jt],tt);Ue&&Ue.outlet&&(Ue.outlet.deactivate(),Ue.children.onOutletDeactivated(),Ue.attachRef=null,Ue.resolver=null,Ue.route=null)}activateChildRoutes(xe,fe,Ue){const tt=Pa(fe);xe.children.forEach(It=>{this.activateRoutes(It,tt[It.value.outlet],Ue),this.forwardEvent(new ha(It.value.snapshot))}),xe.children.length&&this.forwardEvent(new Yi(xe.value.snapshot))}activateRoutes(xe,fe,Ue){const tt=xe.value,It=fe?fe.value:null;if(Lr(tt),tt===It)if(tt.component){const Jt=Ue.getOrCreateContext(tt.outlet);this.activateChildRoutes(xe,fe,Jt.children)}else this.activateChildRoutes(xe,fe,Ue);else if(tt.component){const Jt=Ue.getOrCreateContext(tt.outlet);if(this.routeReuseStrategy.shouldAttach(tt.snapshot)){const ni=this.routeReuseStrategy.retrieve(tt.snapshot);this.routeReuseStrategy.store(tt.snapshot,null),Jt.children.onOutletReAttached(ni.contexts),Jt.attachRef=ni.componentRef,Jt.route=ni.route.value,Jt.outlet&&Jt.outlet.attach(ni.componentRef,ni.route.value),Lr(ni.route.value),this.activateChildRoutes(xe,null,Jt.children)}else{const ni=jr(tt.snapshot),bi=ni?.get(t._Vd)??null;Jt.attachRef=null,Jt.route=tt,Jt.resolver=bi,Jt.injector=ni,Jt.outlet&&Jt.outlet.activateWith(tt,Jt.injector),this.activateChildRoutes(xe,null,Jt.children)}}else this.activateChildRoutes(xe,null,Ue)}}class St{constructor(xe){this.path=xe,this.route=this.path[this.path.length-1]}}class di{constructor(xe,fe){this.component=xe,this.route=fe}}function Mt(ge,xe,fe){const Ue=ge._root;return $i(Ue,xe?xe._root:null,fe,[Ue.value])}function ki(ge,xe){const fe=Symbol(),Ue=xe.get(ge,fe);return Ue===fe?"function"!=typeof ge||(0,t.Z0I)(ge)?xe.get(ge):ge:Ue}function $i(ge,xe,fe,Ue,tt={canDeactivateChecks:[],canActivateChecks:[]}){const It=Pa(xe);return ge.children.forEach(Jt=>{(function Kn(ge,xe,fe,Ue,tt={canDeactivateChecks:[],canActivateChecks:[]}){const It=ge.value,Jt=xe?xe.value:null,ni=fe?fe.getContext(ge.value.outlet):null;if(Jt&&It.routeConfig===Jt.routeConfig){const bi=function Cr(ge,xe,fe){if("function"==typeof fe)return fe(ge,xe);switch(fe){case"pathParamsChange":return!hi(ge.url,xe.url);case"pathParamsOrQueryParamsChange":return!hi(ge.url,xe.url)||!ue(ge.queryParams,xe.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ta(ge,xe)||!ue(ge.queryParams,xe.queryParams);default:return!ta(ge,xe)}}(Jt,It,It.routeConfig.runGuardsAndResolvers);bi?tt.canActivateChecks.push(new St(Ue)):(It.data=Jt.data,It._resolvedData=Jt._resolvedData),$i(ge,xe,It.component?ni?ni.children:null:fe,Ue,tt),bi&&ni&&ni.outlet&&ni.outlet.isActivated&&tt.canDeactivateChecks.push(new di(ni.outlet.component,Jt))}else Jt&&Fr(xe,ni,tt),tt.canActivateChecks.push(new St(Ue)),$i(ge,null,It.component?ni?ni.children:null:fe,Ue,tt)})(Jt,It[Jt.value.outlet],fe,Ue.concat([Jt.value]),tt),delete It[Jt.value.outlet]}),ut(It,(Jt,ni)=>Fr(Jt,fe.getContext(ni),tt)),tt}function Fr(ge,xe,fe){const Ue=Pa(ge),tt=ge.value;ut(Ue,(It,Jt)=>{Fr(It,tt.component?xe?xe.children.getContext(Jt):null:xe,fe)}),fe.canDeactivateChecks.push(new di(tt.component&&xe&&xe.outlet&&xe.outlet.isActivated?xe.outlet.component:null,tt))}function Di(ge){return"function"==typeof ge}function vi(ge){return ge instanceof a.K||"EmptyError"===ge?.name}const nn=Symbol("INITIAL_VALUE");function _r(){return(0,K.w)(ge=>(0,M.a)(ge.map(xe=>xe.pipe((0,Q.q)(1),(0,re.O)(nn)))).pipe((0,G.U)(xe=>{for(const fe of xe)if(!0!==fe){if(fe===nn)return nn;if(!1===fe||fe instanceof gt)return fe}return!0}),(0,ie.h)(xe=>xe!==nn),(0,Q.q)(1)))}function Js(ge){return(0,h.z)((0,le.b)(xe=>{if(at(xe))throw yr(0,xe)}),(0,G.U)(xe=>!0===xe))}const Vs={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zs(ge,xe,fe,Ue,tt){const It=Xs(ge,xe,fe);return It.matched?function No(ge,xe,fe,Ue){const tt=xe.canMatch;if(!tt||0===tt.length)return(0,f.of)(!0);const It=tt.map(Jt=>{const ni=ki(Jt,ge);return Ee(function qe(ge){return ge&&Di(ge.canMatch)}(ni)?ni.canMatch(xe,fe):ge.runInContext(()=>ni(xe,fe)))});return(0,f.of)(It).pipe(_r(),Js())}(Ue=nr(xe,Ue),xe,fe).pipe((0,G.U)(Jt=>!0===Jt?It:{...Vs})):(0,f.of)(It)}function Xs(ge,xe,fe){if(""===xe.path)return"full"===xe.pathMatch&&(ge.hasChildren()||fe.length>0)?{...Vs}:{matched:!0,consumedSegments:[],remainingSegments:fe,parameters:{},positionalParamSegments:{}};const tt=(xe.matcher||Oe)(fe,ge,xe);if(!tt)return{...Vs};const It={};ut(tt.posParams,(ni,bi)=>{It[bi]=ni.path});const Jt=tt.consumed.length>0?{...It,...tt.consumed[tt.consumed.length-1].parameters}:It;return{matched:!0,consumedSegments:tt.consumed,remainingSegments:fe.slice(tt.consumed.length),parameters:Jt,positionalParamSegments:tt.posParams??{}}}function Is(ge,xe,fe,Ue,tt="corrected"){if(fe.length>0&&function Ni(ge,xe,fe){return fe.some(Ue=>xo(ge,xe,Ue)&&rr(Ue)!==U)}(ge,fe,Ue)){const Jt=new Wt(xe,function vr(ge,xe,fe,Ue){const tt={};tt[U]=Ue,Ue._sourceSegment=ge,Ue._segmentIndexShift=xe.length;for(const It of fe)if(""===It.path&&rr(It)!==U){const Jt=new Wt([],{});Jt._sourceSegment=ge,Jt._segmentIndexShift=xe.length,tt[rr(It)]=Jt}return tt}(ge,xe,Ue,new Wt(fe,ge.children)));return Jt._sourceSegment=ge,Jt._segmentIndexShift=xe.length,{segmentGroup:Jt,slicedSegments:[]}}if(0===fe.length&&function xs(ge,xe,fe){return fe.some(Ue=>xo(ge,xe,Ue))}(ge,fe,Ue)){const Jt=new Wt(ge.segments,function Ra(ge,xe,fe,Ue,tt,It){const Jt={};for(const ni of Ue)if(xo(ge,fe,ni)&&!tt[rr(ni)]){const bi=new Wt([],{});bi._sourceSegment=ge,bi._segmentIndexShift="legacy"===It?ge.segments.length:xe.length,Jt[rr(ni)]=bi}return{...tt,...Jt}}(ge,xe,fe,Ue,ge.children,tt));return Jt._sourceSegment=ge,Jt._segmentIndexShift=xe.length,{segmentGroup:Jt,slicedSegments:fe}}const It=new Wt(ge.segments,ge.children);return It._sourceSegment=ge,It._segmentIndexShift=xe.length,{segmentGroup:It,slicedSegments:fe}}function xo(ge,xe,fe){return(!(ge.hasChildren()||xe.length>0)||"full"!==fe.pathMatch)&&""===fe.path}function Bi(ge,xe,fe,Ue){return!!(rr(ge)===Ue||Ue!==U&&xo(xe,fe,ge))&&("**"===ge.path||Xs(xe,ge,fe).matched)}function Ne(ge,xe,fe){return 0===xe.length&&!ge.children[fe]}const ft=!1;class We{constructor(xe){this.segmentGroup=xe||null}}class Dt{constructor(xe){this.urlTree=xe}}function ii(ge){return(0,I._)(new We(ge))}function yi(ge){return(0,I._)(new Dt(ge))}class ar{constructor(xe,fe,Ue,tt,It){this.injector=xe,this.configLoader=fe,this.urlSerializer=Ue,this.urlTree=tt,this.config=It,this.allowRedirects=!0}apply(){const xe=Is(this.urlTree.root,[],[],this.config).segmentGroup,fe=new Wt(xe.segments,xe.children);return this.expandSegmentGroup(this.injector,this.config,fe,U).pipe((0,G.U)(It=>this.createUrlTree(Et(It),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,ee.K)(It=>{if(It instanceof Dt)return this.allowRedirects=!1,this.match(It.urlTree);throw It instanceof We?this.noMatchError(It):It}))}match(xe){return this.expandSegmentGroup(this.injector,this.config,xe.root,U).pipe((0,G.U)(tt=>this.createUrlTree(Et(tt),xe.queryParams,xe.fragment))).pipe((0,ee.K)(tt=>{throw tt instanceof We?this.noMatchError(tt):tt}))}noMatchError(xe){return new t.vHH(4002,ft)}createUrlTree(xe,fe,Ue){const tt=zt(xe);return new gt(tt,fe,Ue)}expandSegmentGroup(xe,fe,Ue,tt){return 0===Ue.segments.length&&Ue.hasChildren()?this.expandChildren(xe,fe,Ue).pipe((0,G.U)(It=>new Wt([],It))):this.expandSegment(xe,Ue,fe,Ue.segments,tt,!0)}expandChildren(xe,fe,Ue){const tt=[];for(const It of Object.keys(Ue.children))"primary"===It?tt.unshift(It):tt.push(It);return(0,e.D)(tt).pipe((0,ne.b)(It=>{const Jt=Ue.children[It],ni=io(fe,It);return this.expandSegmentGroup(xe,ni,Jt,It).pipe((0,G.U)(bi=>({segment:bi,outlet:It})))}),(0,pe.R)((It,Jt)=>(It[Jt.outlet]=Jt.segment,It),{}),D())}expandSegment(xe,fe,Ue,tt,It,Jt){return(0,e.D)(Ue).pipe((0,ne.b)(ni=>this.expandSegmentAgainstRoute(xe,fe,Ue,ni,tt,It,Jt).pipe((0,ee.K)(Xi=>{if(Xi instanceof We)return(0,f.of)(null);throw Xi}))),(0,ae.P)(ni=>!!ni),(0,ee.K)((ni,bi)=>{if(vi(ni))return Ne(fe,tt,It)?(0,f.of)(new Wt([],{})):ii(fe);throw ni}))}expandSegmentAgainstRoute(xe,fe,Ue,tt,It,Jt,ni){return Bi(tt,fe,It,Jt)?void 0===tt.redirectTo?this.matchSegmentAgainstRoute(xe,fe,tt,It,Jt):ni&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(xe,fe,Ue,tt,It,Jt):ii(fe):ii(fe)}expandSegmentAgainstRouteUsingRedirect(xe,fe,Ue,tt,It,Jt){return"**"===tt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(xe,Ue,tt,Jt):this.expandRegularSegmentAgainstRouteUsingRedirect(xe,fe,Ue,tt,It,Jt)}expandWildCardWithParamsAgainstRouteUsingRedirect(xe,fe,Ue,tt){const It=this.applyRedirectCommands([],Ue.redirectTo,{});return Ue.redirectTo.startsWith("/")?yi(It):this.lineralizeSegments(Ue,It).pipe((0,ce.z)(Jt=>{const ni=new Wt(Jt,{});return this.expandSegment(xe,ni,fe,Jt,tt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(xe,fe,Ue,tt,It,Jt){const{matched:ni,consumedSegments:bi,remainingSegments:Xi,positionalParamSegments:Rn}=Xs(fe,tt,It);if(!ni)return ii(fe);const cn=this.applyRedirectCommands(bi,tt.redirectTo,Rn);return tt.redirectTo.startsWith("/")?yi(cn):this.lineralizeSegments(tt,cn).pipe((0,ce.z)(mn=>this.expandSegment(xe,fe,Ue,mn.concat(Xi),Jt,!1)))}matchSegmentAgainstRoute(xe,fe,Ue,tt,It){return"**"===Ue.path?(xe=nr(Ue,xe),Ue.loadChildren?(Ue._loadedRoutes?(0,f.of)({routes:Ue._loadedRoutes,injector:Ue._loadedInjector}):this.configLoader.loadChildren(xe,Ue)).pipe((0,G.U)(ni=>(Ue._loadedRoutes=ni.routes,Ue._loadedInjector=ni.injector,new Wt(tt,{})))):(0,f.of)(new Wt(tt,{}))):zs(fe,Ue,tt,xe).pipe((0,K.w)(({matched:Jt,consumedSegments:ni,remainingSegments:bi})=>Jt?this.getChildConfig(xe=Ue._injector??xe,Ue,tt).pipe((0,ce.z)(Rn=>{const cn=Rn.injector??xe,mn=Rn.routes,{segmentGroup:In,slicedSegments:er}=Is(fe,ni,bi,mn),$r=new Wt(In.segments,In.children);if(0===er.length&&$r.hasChildren())return this.expandChildren(cn,mn,$r).pipe((0,G.U)(Vo=>new Wt(ni,Vo)));if(0===mn.length&&0===er.length)return(0,f.of)(new Wt(ni,{}));const Sr=rr(Ue)===It;return this.expandSegment(cn,$r,mn,er,Sr?U:It,!0).pipe((0,G.U)(wo=>new Wt(ni.concat(wo.segments),wo.children)))})):ii(fe)))}getChildConfig(xe,fe,Ue){return fe.children?(0,f.of)({routes:fe.children,injector:xe}):fe.loadChildren?void 0!==fe._loadedRoutes?(0,f.of)({routes:fe._loadedRoutes,injector:fe._loadedInjector}):function no(ge,xe,fe,Ue){const tt=xe.canLoad;if(void 0===tt||0===tt.length)return(0,f.of)(!0);const It=tt.map(Jt=>{const ni=ki(Jt,ge);return Ee(function ma(ge){return ge&&Di(ge.canLoad)}(ni)?ni.canLoad(xe,fe):ge.runInContext(()=>ni(xe,fe)))});return(0,f.of)(It).pipe(_r(),Js())}(xe,fe,Ue).pipe((0,ce.z)(tt=>tt?this.configLoader.loadChildren(xe,fe).pipe((0,le.b)(It=>{fe._loadedRoutes=It.routes,fe._loadedInjector=It.injector})):function sn(ge){return(0,I._)(_s(ft,3))}())):(0,f.of)({routes:[],injector:xe})}lineralizeSegments(xe,fe){let Ue=[],tt=fe.root;for(;;){if(Ue=Ue.concat(tt.segments),0===tt.numberOfChildren)return(0,f.of)(Ue);if(tt.numberOfChildren>1||!tt.children[U])return(0,I._)(new t.vHH(4e3,ft));tt=tt.children[U]}}applyRedirectCommands(xe,fe,Ue){return this.applyRedirectCreateUrlTree(fe,this.urlSerializer.parse(fe),xe,Ue)}applyRedirectCreateUrlTree(xe,fe,Ue,tt){const It=this.createSegmentGroup(xe,fe.root,Ue,tt);return new gt(It,this.createQueryParams(fe.queryParams,this.urlTree.queryParams),fe.fragment)}createQueryParams(xe,fe){const Ue={};return ut(xe,(tt,It)=>{if("string"==typeof tt&&tt.startsWith(":")){const ni=tt.substring(1);Ue[It]=fe[ni]}else Ue[It]=tt}),Ue}createSegmentGroup(xe,fe,Ue,tt){const It=this.createSegments(xe,fe.segments,Ue,tt);let Jt={};return ut(fe.children,(ni,bi)=>{Jt[bi]=this.createSegmentGroup(xe,ni,Ue,tt)}),new Wt(It,Jt)}createSegments(xe,fe,Ue,tt){return fe.map(It=>It.path.startsWith(":")?this.findPosParam(xe,It,tt):this.findOrReturn(It,Ue))}findPosParam(xe,fe,Ue){const tt=Ue[fe.path.substring(1)];if(!tt)throw new t.vHH(4001,ft);return tt}findOrReturn(xe,fe){let Ue=0;for(const tt of fe){if(tt.path===xe.path)return fe.splice(Ue),tt;Ue++}return xe}}class Vr{}class Da{constructor(xe,fe,Ue,tt,It,Jt,ni,bi){this.injector=xe,this.rootComponentType=fe,this.config=Ue,this.urlTree=tt,this.url=It,this.paramsInheritanceStrategy=Jt,this.relativeLinkResolution=ni,this.urlSerializer=bi}recognize(){const xe=Is(this.urlTree.root,[],[],this.config.filter(fe=>void 0===fe.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,xe,U).pipe((0,G.U)(fe=>{if(null===fe)return null;const Ue=new rs([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},U,this.rootComponentType,null,this.urlTree.root,-1,{}),tt=new Er(Ue,fe),It=new fr(this.url,tt);return this.inheritParamsAndData(It._root),It}))}inheritParamsAndData(xe){const fe=xe.value,Ue=Ka(fe,this.paramsInheritanceStrategy);fe.params=Object.freeze(Ue.params),fe.data=Object.freeze(Ue.data),xe.children.forEach(tt=>this.inheritParamsAndData(tt))}processSegmentGroup(xe,fe,Ue,tt){return 0===Ue.segments.length&&Ue.hasChildren()?this.processChildren(xe,fe,Ue):this.processSegment(xe,fe,Ue,Ue.segments,tt)}processChildren(xe,fe,Ue){return(0,e.D)(Object.keys(Ue.children)).pipe((0,ne.b)(tt=>{const It=Ue.children[tt],Jt=io(fe,tt);return this.processSegmentGroup(xe,Jt,It,tt)}),(0,pe.R)((tt,It)=>tt&&It?(tt.push(...It),tt):null),(0,k.o)(tt=>null!==tt),(0,l.d)(null),D(),(0,G.U)(tt=>{if(null===tt)return null;const It=Ha(tt);return function ga(ge){ge.sort((xe,fe)=>xe.value.outlet===U?-1:fe.value.outlet===U?1:xe.value.outlet.localeCompare(fe.value.outlet))}(It),It}))}processSegment(xe,fe,Ue,tt,It){return(0,e.D)(fe).pipe((0,ne.b)(Jt=>this.processSegmentAgainstRoute(Jt._injector??xe,Jt,Ue,tt,It)),(0,ae.P)(Jt=>!!Jt),(0,ee.K)(Jt=>{if(vi(Jt))return Ne(Ue,tt,It)?(0,f.of)([]):(0,f.of)(null);throw Jt}))}processSegmentAgainstRoute(xe,fe,Ue,tt,It){if(fe.redirectTo||!Bi(fe,Ue,tt,It))return(0,f.of)(null);let Jt;if("**"===fe.path){const ni=tt.length>0?$(tt).parameters:{},bi=Fl(Ue)+tt.length,Xi=new rs(tt,ni,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Bn(fe),rr(fe),fe.component??fe._loadedComponent??null,fe,ro(Ue),bi,ji(fe),bi);Jt=(0,f.of)({snapshot:Xi,consumedSegments:[],remainingSegments:[]})}else Jt=zs(Ue,fe,tt,xe).pipe((0,G.U)(({matched:ni,consumedSegments:bi,remainingSegments:Xi,parameters:Rn})=>{if(!ni)return null;const cn=Fl(Ue)+bi.length;return{snapshot:new rs(bi,Rn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Bn(fe),rr(fe),fe.component??fe._loadedComponent??null,fe,ro(Ue),cn,ji(fe),cn),consumedSegments:bi,remainingSegments:Xi}}));return Jt.pipe((0,K.w)(ni=>{if(null===ni)return(0,f.of)(null);const{snapshot:bi,consumedSegments:Xi,remainingSegments:Rn}=ni;xe=fe._injector??xe;const cn=fe._loadedInjector??xe,mn=function en(ge){return ge.children?ge.children:ge.loadChildren?ge._loadedRoutes:[]}(fe),{segmentGroup:In,slicedSegments:er}=Is(Ue,Xi,Rn,mn.filter(Sr=>void 0===Sr.redirectTo),this.relativeLinkResolution);if(0===er.length&&In.hasChildren())return this.processChildren(cn,mn,In).pipe((0,G.U)(Sr=>null===Sr?null:[new Er(bi,Sr)]));if(0===mn.length&&0===er.length)return(0,f.of)([new Er(bi,[])]);const $r=rr(fe)===It;return this.processSegment(cn,mn,In,er,$r?U:It).pipe((0,G.U)(Sr=>null===Sr?null:[new Er(bi,Sr)]))}))}}function Cs(ge){const xe=ge.value.routeConfig;return xe&&""===xe.path&&void 0===xe.redirectTo}function Ha(ge){const xe=[],fe=new Set;for(const Ue of ge){if(!Cs(Ue)){xe.push(Ue);continue}const tt=xe.find(It=>Ue.value.routeConfig===It.value.routeConfig);void 0!==tt?(tt.children.push(...Ue.children),fe.add(tt)):xe.push(Ue)}for(const Ue of fe){const tt=Ha(Ue.children);xe.push(new Er(Ue.value,tt))}return xe.filter(Ue=>!fe.has(Ue))}function ro(ge){let xe=ge;for(;xe._sourceSegment;)xe=xe._sourceSegment;return xe}function Fl(ge){let xe=ge,fe=xe._segmentIndexShift??0;for(;xe._sourceSegment;)xe=xe._sourceSegment,fe+=xe._segmentIndexShift??0;return fe-1}function Bn(ge){return ge.data||{}}function ji(ge){return ge.resolve||{}}function wt(ge){return"string"==typeof ge.title||null===ge.title}function Tt(ge){return(0,K.w)(xe=>{const fe=ge(xe);return fe?(0,e.D)(fe).pipe((0,G.U)(()=>xe)):(0,f.of)(xe)})}let Ht=(()=>{class ge{buildTitle(fe){let Ue,tt=fe.root;for(;void 0!==tt;)Ue=this.getResolvedTitleForRoute(tt)??Ue,tt=tt.children.find(It=>It.outlet===U);return Ue}getResolvedTitleForRoute(fe){return fe.data[me]}}return ge.\u0275fac=function(fe){return new(fe||ge)},ge.\u0275prov=t.Yz7({token:ge,factory:function(){return(0,t.f3M)($e)},providedIn:"root"}),ge})(),$e=(()=>{class ge extends Ht{constructor(fe){super(),this.title=fe}updateTitle(fe){const Ue=this.buildTitle(fe);void 0!==Ue&&this.title.setTitle(Ue)}}return ge.\u0275fac=function(fe){return new(fe||ge)(t.LFG(P.Dx))},ge.\u0275prov=t.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})();class ui{}class Ai extends class ri{shouldDetach(xe){return!1}store(xe,fe){}shouldAttach(xe){return!1}retrieve(xe){return null}shouldReuseRoute(xe,fe){return xe.routeConfig===fe.routeConfig}}{}const Qi=new t.OlP("",{providedIn:"root",factory:()=>({})}),Tn=new t.OlP("ROUTES");let wn=(()=>{class ge{constructor(fe,Ue){this.injector=fe,this.compiler=Ue,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(fe){if(this.componentLoaders.get(fe))return this.componentLoaders.get(fe);if(fe._loadedComponent)return(0,f.of)(fe._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(fe);const Ue=Ee(fe.loadComponent()).pipe((0,le.b)(It=>{this.onLoadEndListener&&this.onLoadEndListener(fe),fe._loadedComponent=It}),(0,n.x)(()=>{this.componentLoaders.delete(fe)})),tt=new T.c(Ue,()=>new N.x).pipe((0,_.x)());return this.componentLoaders.set(fe,tt),tt}loadChildren(fe,Ue){if(this.childrenLoaders.get(Ue))return this.childrenLoaders.get(Ue);if(Ue._loadedRoutes)return(0,f.of)({routes:Ue._loadedRoutes,injector:Ue._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Ue);const It=this.loadModuleFactoryOrRoutes(Ue.loadChildren).pipe((0,G.U)(ni=>{this.onLoadEndListener&&this.onLoadEndListener(Ue);let bi,Xi,Rn=!1;Array.isArray(ni)?Xi=ni:(bi=ni.create(fe).injector,Xi=Ie(bi.get(Tn,[],t.XFs.Self|t.XFs.Optional)));return{routes:Xi.map(vs),injector:bi}}),(0,n.x)(()=>{this.childrenLoaders.delete(Ue)})),Jt=new T.c(It,()=>new N.x).pipe((0,_.x)());return this.childrenLoaders.set(Ue,Jt),Jt}loadModuleFactoryOrRoutes(fe){return Ee(fe()).pipe((0,ce.z)(Ue=>Ue instanceof t.YKP||Array.isArray(Ue)?(0,f.of)(Ue):(0,e.D)(this.compiler.compileModuleAsync(Ue))))}}return ge.\u0275fac=function(fe){return new(fe||ge)(t.LFG(t.zs3),t.LFG(t.Sil))},ge.\u0275prov=t.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})();class va{}class ya{shouldProcessUrl(xe){return!0}extract(xe){return xe}merge(xe,fe){return xe}}function na(ge){throw ge}function Wr(ge,xe,fe){return xe.parse("/")}const wr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},us={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Os(){const ge=(0,t.f3M)(Pt),xe=(0,t.f3M)(ur),fe=(0,t.f3M)(w.Ye),Ue=(0,t.f3M)(t.zs3),tt=(0,t.f3M)(t.Sil),It=(0,t.f3M)(Tn,{optional:!0})??[],Jt=(0,t.f3M)(Qi,{optional:!0})??{},ni=(0,t.f3M)($e),bi=(0,t.f3M)(Ht,{optional:!0}),Xi=(0,t.f3M)(va,{optional:!0}),Rn=(0,t.f3M)(ui,{optional:!0}),cn=new $n(null,ge,xe,fe,Ue,tt,Ie(It));return Xi&&(cn.urlHandlingStrategy=Xi),Rn&&(cn.routeReuseStrategy=Rn),cn.titleStrategy=bi??ni,function Br(ge,xe){ge.errorHandler&&(xe.errorHandler=ge.errorHandler),ge.malformedUriErrorHandler&&(xe.malformedUriErrorHandler=ge.malformedUriErrorHandler),ge.onSameUrlNavigation&&(xe.onSameUrlNavigation=ge.onSameUrlNavigation),ge.paramsInheritanceStrategy&&(xe.paramsInheritanceStrategy=ge.paramsInheritanceStrategy),ge.relativeLinkResolution&&(xe.relativeLinkResolution=ge.relativeLinkResolution),ge.urlUpdateStrategy&&(xe.urlUpdateStrategy=ge.urlUpdateStrategy),ge.canceledNavigationResolution&&(xe.canceledNavigationResolution=ge.canceledNavigationResolution)}(Jt,cn),cn}let $n=(()=>{class ge{constructor(fe,Ue,tt,It,Jt,ni,bi){this.rootComponentType=fe,this.urlSerializer=Ue,this.rootContexts=tt,this.location=It,this.config=bi,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new N.x,this.errorHandler=na,this.malformedUriErrorHandler=Wr,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,f.of)(void 0),this.urlHandlingStrategy=new ya,this.routeReuseStrategy=new Ai,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=Jt.get(wn),this.configLoader.onLoadEndListener=mn=>this.triggerEvent(new An(mn)),this.configLoader.onLoadStartListener=mn=>this.triggerEvent(new Qn(mn)),this.ngModule=Jt.get(t.h0i),this.console=Jt.get(t.c2e);const cn=Jt.get(t.R0b);this.isNgZoneEnabled=cn instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(bi),this.currentUrlTree=function he(){return new gt(new Wt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ns(this.currentUrlTree,this.rootComponentType),this.transitions=new C.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(fe){const Ue=this.events;return fe.pipe((0,ie.h)(tt=>0!==tt.id),(0,G.U)(tt=>({...tt,extractedUrl:this.urlHandlingStrategy.extract(tt.rawUrl)})),(0,K.w)(tt=>{let It=!1,Jt=!1;return(0,f.of)(tt).pipe((0,le.b)(ni=>{this.currentNavigation={id:ni.id,initialUrl:ni.rawUrl,extractedUrl:ni.extractedUrl,trigger:ni.source,extras:ni.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,K.w)(ni=>{const bi=this.browserUrlTree.toString(),Xi=!this.navigated||ni.extractedUrl.toString()!==bi||bi!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Xi)&&this.urlHandlingStrategy.shouldProcessUrl(ni.rawUrl))return Ps(ni.source)&&(this.browserUrlTree=ni.extractedUrl),(0,f.of)(ni).pipe((0,K.w)(cn=>{const mn=this.transitions.getValue();return Ue.next(new ot(cn.id,this.serializeUrl(cn.extractedUrl),cn.source,cn.restoredState)),mn!==this.transitions.getValue()?L.E:Promise.resolve(cn)}),function pr(ge,xe,fe,Ue){return(0,K.w)(tt=>function or(ge,xe,fe,Ue,tt){return new ar(ge,xe,fe,Ue,tt).apply()}(ge,xe,fe,tt.extractedUrl,Ue).pipe((0,G.U)(It=>({...tt,urlAfterRedirects:It}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,le.b)(cn=>{this.currentNavigation={...this.currentNavigation,finalUrl:cn.urlAfterRedirects},tt.urlAfterRedirects=cn.urlAfterRedirects}),function zr(ge,xe,fe,Ue,tt,It){return(0,ce.z)(Jt=>function Xn(ge,xe,fe,Ue,tt,It,Jt="emptyOnly",ni="legacy"){return new Da(ge,xe,fe,Ue,tt,Jt,ni,It).recognize().pipe((0,K.w)(bi=>null===bi?function lr(ge){return new E.y(xe=>xe.error(ge))}(new Vr):(0,f.of)(bi)))}(ge,xe,fe,Jt.urlAfterRedirects,Ue.serialize(Jt.urlAfterRedirects),Ue,tt,It).pipe((0,G.U)(ni=>({...Jt,targetSnapshot:ni}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,le.b)(cn=>{if(tt.targetSnapshot=cn.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!cn.extras.skipLocationChange){const In=this.urlHandlingStrategy.merge(cn.urlAfterRedirects,cn.rawUrl);this.setBrowserUrl(In,cn)}this.browserUrlTree=cn.urlAfterRedirects}const mn=new Li(cn.id,this.serializeUrl(cn.extractedUrl),this.serializeUrl(cn.urlAfterRedirects),cn.targetSnapshot);Ue.next(mn)}));if(Xi&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:mn,extractedUrl:In,source:er,restoredState:$r,extras:Sr}=ni,Dr=new ot(mn,this.serializeUrl(In),er,$r);Ue.next(Dr);const wo=ns(In,this.rootComponentType).snapshot;return tt={...ni,targetSnapshot:wo,urlAfterRedirects:In,extras:{...Sr,skipLocationChange:!1,replaceUrl:!1}},(0,f.of)(tt)}return this.rawUrlTree=ni.rawUrl,ni.resolve(null),L.E}),(0,le.b)(ni=>{const bi=new Ri(ni.id,this.serializeUrl(ni.extractedUrl),this.serializeUrl(ni.urlAfterRedirects),ni.targetSnapshot);this.triggerEvent(bi)}),(0,G.U)(ni=>tt={...ni,guards:Mt(ni.targetSnapshot,ni.currentSnapshot,this.rootContexts)}),function Ds(ge,xe){return(0,ce.z)(fe=>{const{targetSnapshot:Ue,currentSnapshot:tt,guards:{canActivateChecks:It,canDeactivateChecks:Jt}}=fe;return 0===Jt.length&&0===It.length?(0,f.of)({...fe,guardsResult:!0}):function Qa(ge,xe,fe,Ue){return(0,e.D)(ge).pipe((0,ce.z)(tt=>function Xo(ge,xe,fe,Ue,tt){const It=xe&&xe.routeConfig?xe.routeConfig.canDeactivate:null;if(!It||0===It.length)return(0,f.of)(!0);const Jt=It.map(ni=>{const bi=jr(xe)??tt,Xi=ki(ni,bi);return Ee(function Ze(ge){return ge&&Di(ge.canDeactivate)}(Xi)?Xi.canDeactivate(ge,xe,fe,Ue):bi.runInContext(()=>Xi(ge,xe,fe,Ue))).pipe((0,ae.P)())});return(0,f.of)(Jt).pipe(_r())}(tt.component,tt.route,fe,xe,Ue)),(0,ae.P)(tt=>!0!==tt,!0))}(Jt,Ue,tt,ge).pipe((0,ce.z)(ni=>ni&&function on(ge){return"boolean"==typeof ge}(ni)?function xr(ge,xe,fe,Ue){return(0,e.D)(xe).pipe((0,ne.b)(tt=>(0,d.z)(function ko(ge,xe){return null!==ge&&xe&&xe(new Si(ge)),(0,f.of)(!0)}(tt.route.parent,Ue),function qa(ge,xe){return null!==ge&&xe&&xe(new Mn(ge)),(0,f.of)(!0)}(tt.route,Ue),function bs(ge,xe,fe){const Ue=xe[xe.length-1],It=xe.slice(0,xe.length-1).reverse().map(Jt=>function ti(ge){const xe=ge.routeConfig?ge.routeConfig.canActivateChild:null;return xe&&0!==xe.length?{node:ge,guards:xe}:null}(Jt)).filter(Jt=>null!==Jt).map(Jt=>(0,R.P)(()=>{const ni=Jt.guards.map(bi=>{const Xi=jr(Jt.node)??fe,Rn=ki(bi,Xi);return Ee(function br(ge){return ge&&Di(ge.canActivateChild)}(Rn)?Rn.canActivateChild(Ue,ge):Xi.runInContext(()=>Rn(Ue,ge))).pipe((0,ae.P)())});return(0,f.of)(ni).pipe(_r())}));return(0,f.of)(It).pipe(_r())}(ge,tt.path,fe),function qs(ge,xe,fe){const Ue=xe.routeConfig?xe.routeConfig.canActivate:null;if(!Ue||0===Ue.length)return(0,f.of)(!0);const tt=Ue.map(It=>(0,R.P)(()=>{const Jt=jr(xe)??fe,ni=ki(It,Jt);return Ee(function La(ge){return ge&&Di(ge.canActivate)}(ni)?ni.canActivate(xe,ge):Jt.runInContext(()=>ni(xe,ge))).pipe((0,ae.P)())}));return(0,f.of)(tt).pipe(_r())}(ge,tt.route,fe))),(0,ae.P)(tt=>!0!==tt,!0))}(Ue,It,ge,xe):(0,f.of)(ni)),(0,G.U)(ni=>({...fe,guardsResult:ni})))})}(this.ngModule.injector,ni=>this.triggerEvent(ni)),(0,le.b)(ni=>{if(tt.guardsResult=ni.guardsResult,at(ni.guardsResult))throw yr(0,ni.guardsResult);const bi=new Dn(ni.id,this.serializeUrl(ni.extractedUrl),this.serializeUrl(ni.urlAfterRedirects),ni.targetSnapshot,!!ni.guardsResult);this.triggerEvent(bi)}),(0,ie.h)(ni=>!!ni.guardsResult||(this.restoreHistory(ni),this.cancelNavigationTransition(ni,"",3),!1)),Tt(ni=>{if(ni.guards.canActivateChecks.length)return(0,f.of)(ni).pipe((0,le.b)(bi=>{const Xi=new Zn(bi.id,this.serializeUrl(bi.extractedUrl),this.serializeUrl(bi.urlAfterRedirects),bi.targetSnapshot);this.triggerEvent(Xi)}),(0,K.w)(bi=>{let Xi=!1;return(0,f.of)(bi).pipe(function _a(ge,xe){return(0,ce.z)(fe=>{const{targetSnapshot:Ue,guards:{canActivateChecks:tt}}=fe;if(!tt.length)return(0,f.of)(fe);let It=0;return(0,e.D)(tt).pipe((0,ne.b)(Jt=>function Ki(ge,xe,fe,Ue){const tt=ge.routeConfig,It=ge._resolve;return void 0!==tt?.title&&!wt(tt)&&(It[me]=tt.title),function tr(ge,xe,fe,Ue){const tt=function ds(ge){return[...Object.keys(ge),...Object.getOwnPropertySymbols(ge)]}(ge);if(0===tt.length)return(0,f.of)({});const It={};return(0,e.D)(tt).pipe((0,ce.z)(Jt=>function st(ge,xe,fe,Ue){const tt=jr(xe)??Ue,It=ki(ge,tt);return Ee(It.resolve?It.resolve(xe,fe):tt.runInContext(()=>It(xe,fe)))}(ge[Jt],xe,fe,Ue).pipe((0,ae.P)(),(0,le.b)(ni=>{It[Jt]=ni}))),r(1),(0,b.h)(It),(0,ee.K)(Jt=>vi(Jt)?L.E:(0,I._)(Jt)))}(It,ge,xe,Ue).pipe((0,G.U)(Jt=>(ge._resolvedData=Jt,ge.data=Ka(ge,fe).resolve,tt&&wt(tt)&&(ge.data[me]=tt.title),null)))}(Jt.route,Ue,ge,xe)),(0,le.b)(()=>It++),r(1),(0,ce.z)(Jt=>It===tt.length?(0,f.of)(fe):L.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,le.b)({next:()=>Xi=!0,complete:()=>{Xi||(this.restoreHistory(bi),this.cancelNavigationTransition(bi,"",2))}}))}),(0,le.b)(bi=>{const Xi=new Nn(bi.id,this.serializeUrl(bi.extractedUrl),this.serializeUrl(bi.urlAfterRedirects),bi.targetSnapshot);this.triggerEvent(Xi)}))}),Tt(ni=>{const bi=Xi=>{const Rn=[];Xi.routeConfig?.loadComponent&&!Xi.routeConfig._loadedComponent&&Rn.push(this.configLoader.loadComponent(Xi.routeConfig).pipe((0,le.b)(cn=>{Xi.component=cn}),(0,G.U)(()=>{})));for(const cn of Xi.children)Rn.push(...bi(cn));return Rn};return(0,M.a)(bi(ni.targetSnapshot.root)).pipe((0,l.d)(),(0,Q.q)(1))}),Tt(()=>this.afterPreactivation()),(0,G.U)(ni=>{const bi=function as(ge,xe,fe){const Ue=wa(ge,xe._root,fe?fe._root:void 0);return new Ya(Ue,xe)}(this.routeReuseStrategy,ni.targetSnapshot,ni.currentRouterState);return tt={...ni,targetRouterState:bi}}),(0,le.b)(ni=>{this.currentUrlTree=ni.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ni.urlAfterRedirects,ni.rawUrl),this.routerState=ni.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ni.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ni),this.browserUrlTree=ni.urlAfterRedirects)}),((ge,xe,fe)=>(0,G.U)(Ue=>(new ls(xe,Ue.targetRouterState,Ue.currentRouterState,fe).activate(ge),Ue)))(this.rootContexts,this.routeReuseStrategy,ni=>this.triggerEvent(ni)),(0,le.b)({next(){It=!0},complete(){It=!0}}),(0,n.x)(()=>{It||Jt||this.cancelNavigationTransition(tt,"",1),this.currentNavigation?.id===tt.id&&(this.currentNavigation=null)}),(0,ee.K)(ni=>{if(Jt=!0,ka(ni)){ss(ni)||(this.navigated=!0,this.restoreHistory(tt,!0));const bi=new Xt(tt.id,this.serializeUrl(tt.extractedUrl),ni.message,ni.cancellationCode);if(Ue.next(bi),ss(ni)){const Xi=this.urlHandlingStrategy.merge(ni.url,this.rawUrlTree),Rn={skipLocationChange:tt.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ps(tt.source)};this.scheduleNavigation(Xi,"imperative",null,Rn,{resolve:tt.resolve,reject:tt.reject,promise:tt.promise})}else tt.resolve(!1)}else{this.restoreHistory(tt,!0);const bi=new fi(tt.id,this.serializeUrl(tt.extractedUrl),ni,tt.targetSnapshot??void 0);Ue.next(bi);try{tt.resolve(this.errorHandler(ni))}catch(Xi){tt.reject(Xi)}}return L.E}))}))}resetRootComponentType(fe){this.rootComponentType=fe,this.routerState.root.component=this.rootComponentType}setTransition(fe){this.transitions.next({...this.transitions.value,...fe})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(fe=>{const Ue="popstate"===fe.type?"popstate":"hashchange";"popstate"===Ue&&setTimeout(()=>{const tt={replaceUrl:!0},It=fe.state?.navigationId?fe.state:null;if(It){const ni={...It};delete ni.navigationId,delete ni.\u0275routerPageId,0!==Object.keys(ni).length&&(tt.state=ni)}const Jt=this.parseUrl(fe.url);this.scheduleNavigation(Jt,Ue,It,tt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(fe){this.events.next(fe)}resetConfig(fe){this.config=fe.map(vs),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(fe,Ue={}){const{relativeTo:tt,queryParams:It,fragment:Jt,queryParamsHandling:ni,preserveFragment:bi}=Ue,Xi=tt||this.routerState.root,Rn=bi?this.currentUrlTree.fragment:Jt;let cn=null;switch(ni){case"merge":cn={...this.currentUrlTree.queryParams,...It};break;case"preserve":cn=this.currentUrlTree.queryParams;break;default:cn=It||null}return null!==cn&&(cn=this.removeEmptyProps(cn)),Ii(Xi,this.currentUrlTree,fe,cn,Rn??null)}navigateByUrl(fe,Ue={skipLocationChange:!1}){const tt=at(fe)?fe:this.parseUrl(fe),It=this.urlHandlingStrategy.merge(tt,this.rawUrlTree);return this.scheduleNavigation(It,"imperative",null,Ue)}navigate(fe,Ue={skipLocationChange:!1}){return function Ms(ge){for(let xe=0;xe<ge.length;xe++){if(null==ge[xe])throw new t.vHH(4008,false)}}(fe),this.navigateByUrl(this.createUrlTree(fe,Ue),Ue)}serializeUrl(fe){return this.urlSerializer.serialize(fe)}parseUrl(fe){let Ue;try{Ue=this.urlSerializer.parse(fe)}catch(tt){Ue=this.malformedUriErrorHandler(tt,this.urlSerializer,fe)}return Ue}isActive(fe,Ue){let tt;if(tt=!0===Ue?{...wr}:!1===Ue?{...us}:Ue,at(fe))return Y(this.currentUrlTree,fe,tt);const It=this.parseUrl(fe);return Y(this.currentUrlTree,It,tt)}removeEmptyProps(fe){return Object.keys(fe).reduce((Ue,tt)=>{const It=fe[tt];return null!=It&&(Ue[tt]=It),Ue},{})}processNavigations(){this.navigations.subscribe(fe=>{this.navigated=!0,this.lastSuccessfulId=fe.id,this.currentPageId=fe.targetPageId,this.events.next(new Bt(fe.id,this.serializeUrl(fe.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),fe.resolve(!0)},fe=>{this.console.warn(`Unhandled Navigation Error: ${fe}`)})}scheduleNavigation(fe,Ue,tt,It,Jt){if(this.disposed)return Promise.resolve(!1);let ni,bi,Xi;Jt?(ni=Jt.resolve,bi=Jt.reject,Xi=Jt.promise):Xi=new Promise((mn,In)=>{ni=mn,bi=In});const Rn=++this.navigationId;let cn;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(tt=this.location.getState()),cn=tt&&tt.\u0275routerPageId?tt.\u0275routerPageId:It.replaceUrl||It.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):cn=0,this.setTransition({id:Rn,targetPageId:cn,source:Ue,restoredState:tt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:fe,extras:It,resolve:ni,reject:bi,promise:Xi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Xi.catch(mn=>Promise.reject(mn))}setBrowserUrl(fe,Ue){const tt=this.urlSerializer.serialize(fe),It={...Ue.extras.state,...this.generateNgRouterState(Ue.id,Ue.targetPageId)};this.location.isCurrentPathEqualTo(tt)||Ue.extras.replaceUrl?this.location.replaceState(tt,"",It):this.location.go(tt,"",It)}restoreHistory(fe,Ue=!1){if("computed"===this.canceledNavigationResolution){const tt=this.currentPageId-fe.targetPageId;"popstate"!==fe.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===tt?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===tt&&(this.resetState(fe),this.browserUrlTree=fe.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(tt)}else"replace"===this.canceledNavigationResolution&&(Ue&&this.resetState(fe),this.resetUrlToCurrentUrlTree())}resetState(fe){this.routerState=fe.currentRouterState,this.currentUrlTree=fe.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,fe.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(fe,Ue,tt){const It=new Xt(fe.id,this.serializeUrl(fe.extractedUrl),Ue,tt);this.triggerEvent(It),fe.resolve(!1)}generateNgRouterState(fe,Ue){return"computed"===this.canceledNavigationResolution?{navigationId:fe,\u0275routerPageId:Ue}:{navigationId:fe}}}return ge.\u0275fac=function(fe){t.$Z()},ge.\u0275prov=t.Yz7({token:ge,factory:function(){return Os()},providedIn:"root"}),ge})();function Ps(ge){return"imperative"!==ge}let ao=(()=>{class ge{constructor(fe,Ue,tt,It,Jt){this.router=fe,this.route=Ue,this.tabIndexAttribute=tt,this.renderer=It,this.el=Jt,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new N.x,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(fe){this._preserveFragment=(0,t.D6c)(fe)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(fe){this._skipLocationChange=(0,t.D6c)(fe)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(fe){this._replaceUrl=(0,t.D6c)(fe)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(fe){if(null!=this.tabIndexAttribute)return;const Ue=this.renderer,tt=this.el.nativeElement;null!==fe?Ue.setAttribute(tt,"tabindex",fe):Ue.removeAttribute(tt,"tabindex")}ngOnChanges(fe){this.onChanges.next(this)}set routerLink(fe){null!=fe?(this.commands=Array.isArray(fe)?fe:[fe],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return ge.\u0275fac=function(fe){return new(fe||ge)(t.Y36($n),t.Y36(dr),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq))},ge.\u0275dir=t.lG2({type:ge,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(fe,Ue){1&fe&&t.NdJ("click",function(){return Ue.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]}),ge})(),Mo=(()=>{class ge{constructor(fe,Ue,tt){this.router=fe,this.route=Ue,this.locationStrategy=tt,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new N.x,this.subscription=fe.events.subscribe(It=>{It instanceof Bt&&this.updateTargetUrlAndHref()})}set preserveFragment(fe){this._preserveFragment=(0,t.D6c)(fe)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(fe){this._skipLocationChange=(0,t.D6c)(fe)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(fe){this._replaceUrl=(0,t.D6c)(fe)}get replaceUrl(){return this._replaceUrl}set routerLink(fe){this.commands=null!=fe?Array.isArray(fe)?fe:[fe]:null}ngOnChanges(fe){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(fe,Ue,tt,It,Jt){return!!(0!==fe||Ue||tt||It||Jt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return ge.\u0275fac=function(fe){return new(fe||ge)(t.Y36($n),t.Y36(dr),t.Y36(w.S$))},ge.\u0275dir=t.lG2({type:ge,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(fe,Ue){1&fe&&t.NdJ("click",function(It){return Ue.onClick(It.button,It.ctrlKey,It.shiftKey,It.altKey,It.metaKey)}),2&fe&&t.uIk("target",Ue.target)("href",Ue.href,t.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]}),ge})(),sc=(()=>{class ge{constructor(fe,Ue,tt,It,Jt,ni){this.router=fe,this.element=Ue,this.renderer=tt,this.cdr=It,this.link=Jt,this.linkWithHref=ni,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=fe.events.subscribe(bi=>{bi instanceof Bt&&this.update()})}ngAfterContentInit(){(0,f.of)(this.links.changes,this.linksWithHrefs.changes,(0,f.of)(null)).pipe((0,W.J)()).subscribe(fe=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const fe=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Ue=>!!Ue).map(Ue=>Ue.onChanges);this.linkInputChangesSubscription=(0,e.D)(fe).pipe((0,W.J)()).subscribe(Ue=>{this.isActive!==this.isLinkActive(this.router)(Ue)&&this.update()})}set routerLinkActive(fe){const Ue=Array.isArray(fe)?fe:fe.split(" ");this.classes=Ue.filter(tt=>!!tt)}ngOnChanges(fe){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const fe=this.hasActiveLinks();this.isActive!==fe&&(this.isActive=fe,this.cdr.markForCheck(),this.classes.forEach(Ue=>{fe?this.renderer.addClass(this.element.nativeElement,Ue):this.renderer.removeClass(this.element.nativeElement,Ue)}),fe&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(fe))})}isLinkActive(fe){const Ue=function jc(ge){return!!ge.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return tt=>!!tt.urlTree&&fe.isActive(tt.urlTree,Ue)}hasActiveLinks(){const fe=this.isLinkActive(this.router);return this.link&&fe(this.link)||this.linkWithHref&&fe(this.linkWithHref)||this.links.some(fe)||this.linksWithHrefs.some(fe)}}return ge.\u0275fac=function(fe){return new(fe||ge)(t.Y36($n),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(ao,8),t.Y36(Mo,8))},ge.\u0275dir=t.lG2({type:ge,selectors:[["","routerLinkActive",""]],contentQueries:function(fe,Ue,tt){if(1&fe&&(t.Suo(tt,ao,5),t.Suo(tt,Mo,5)),2&fe){let It;t.iGM(It=t.CRH())&&(Ue.links=It),t.iGM(It=t.CRH())&&(Ue.linksWithHrefs=It)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]}),ge})();class oc{}let $s=(()=>{class ge{constructor(fe,Ue,tt,It,Jt){this.router=fe,this.injector=tt,this.preloadingStrategy=It,this.loader=Jt}setUpPreloading(){this.subscription=this.router.events.pipe((0,ie.h)(fe=>fe instanceof Bt),(0,ne.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(fe,Ue){const tt=[];for(const It of Ue){It.providers&&!It._injector&&(It._injector=(0,t.MMx)(It.providers,fe,`Route: ${It.path}`));const Jt=It._injector??fe,ni=It._loadedInjector??Jt;It.loadChildren&&!It._loadedRoutes&&void 0===It.canLoad||It.loadComponent&&!It._loadedComponent?tt.push(this.preloadConfig(Jt,It)):(It.children||It._loadedRoutes)&&tt.push(this.processRoutes(ni,It.children??It._loadedRoutes))}return(0,e.D)(tt).pipe((0,W.J)())}preloadConfig(fe,Ue){return this.preloadingStrategy.preload(Ue,()=>{let tt;tt=Ue.loadChildren&&void 0===Ue.canLoad?this.loader.loadChildren(fe,Ue):(0,f.of)(null);const It=tt.pipe((0,ce.z)(Jt=>null===Jt?(0,f.of)(void 0):(Ue._loadedRoutes=Jt.routes,Ue._loadedInjector=Jt.injector,this.processRoutes(Jt.injector??fe,Jt.routes))));if(Ue.loadComponent&&!Ue._loadedComponent){const Jt=this.loader.loadComponent(Ue);return(0,e.D)([It,Jt]).pipe((0,W.J)())}return It})}}return ge.\u0275fac=function(fe){return new(fe||ge)(t.LFG($n),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(oc),t.LFG(wn))},ge.\u0275prov=t.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})();const Ro=new t.OlP("");let lc=(()=>{class ge{constructor(fe,Ue,tt={}){this.router=fe,this.viewportScroller=Ue,this.options=tt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},tt.scrollPositionRestoration=tt.scrollPositionRestoration||"disabled",tt.anchorScrolling=tt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(fe=>{fe instanceof ot?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=fe.navigationTrigger,this.restoredId=fe.restoredState?fe.restoredState.navigationId:0):fe instanceof Bt&&(this.lastId=fe.id,this.scheduleScrollEvent(fe,this.router.parseUrl(fe.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(fe=>{fe instanceof qn&&(fe.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(fe.position):fe.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(fe.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(fe,Ue){this.router.triggerEvent(new qn(fe,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ue))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return ge.\u0275fac=function(fe){t.$Z()},ge.\u0275prov=t.Yz7({token:ge,factory:ge.\u0275fac}),ge})();function ks(ge,xe){return{\u0275kind:ge,\u0275providers:xe}}function so(ge){return[{provide:Tn,multi:!0,useValue:ge}]}function gl(){const ge=(0,t.f3M)(t.zs3);return xe=>{const fe=ge.get(t.z2F);if(xe!==fe.components[0])return;const Ue=ge.get($n),tt=ge.get(Ho);1===ge.get(L1)&&Ue.initialNavigation(),ge.get(cc,null,t.XFs.Optional)?.setUpPreloading(),ge.get(Ro,null,t.XFs.Optional)?.init(),Ue.resetRootComponentType(fe.componentTypes[0]),tt.closed||(tt.next(),tt.unsubscribe())}}const Ho=new t.OlP("",{factory:()=>new N.x}),L1=new t.OlP("",{providedIn:"root",factory:()=>1});const cc=new t.OlP("");function D1(ge){return ks(0,[{provide:cc,useExisting:$s},{provide:oc,useExisting:ge}])}const Fo=new t.OlP("ROUTER_FORROOT_GUARD"),Xr=[w.Ye,{provide:Pt,useClass:pt},{provide:$n,useFactory:Os},ur,{provide:dr,useFactory:function $o(ge){return ge.routerState.root},deps:[$n]},wn];function Ja(){return new t.PXZ("Router",$n)}let O1=(()=>{class ge{constructor(fe){}static forRoot(fe,Ue){return{ngModule:ge,providers:[Xr,[],so(fe),{provide:Fo,useFactory:t0,deps:[[$n,new t.FiY,new t.tp0]]},{provide:Qi,useValue:Ue||{}},Ue?.useHash?{provide:w.S$,useClass:w.Do}:{provide:w.S$,useClass:w.b0},{provide:Ro,useFactory:()=>{const ge=(0,t.f3M)($n),xe=(0,t.f3M)(w.EM),fe=(0,t.f3M)(Qi);return fe.scrollOffset&&xe.setOffset(fe.scrollOffset),new lc(ge,xe,fe)}},Ue?.preloadingStrategy?D1(Ue.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:Ja},Ue?.initialNavigation?co(Ue):[],[{provide:Xa,useFactory:gl},{provide:t.tb,multi:!0,useExisting:Xa}]]}}static forChild(fe){return{ngModule:ge,providers:[so(fe)]}}}return ge.\u0275fac=function(fe){return new(fe||ge)(t.LFG(Fo,8))},ge.\u0275mod=t.oAB({type:ge}),ge.\u0275inj=t.cJS({imports:[os]}),ge})();function t0(ge){return"guarded"}function co(ge){return["disabled"===ge.initialNavigation?ks(3,[{provide:t.ip1,multi:!0,useFactory:()=>{const xe=(0,t.f3M)($n);return()=>{xe.setUpLocationChangeListener()}}},{provide:L1,useValue:2}]).\u0275providers:[],"enabledBlocking"===ge.initialNavigation?ks(2,[{provide:L1,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:xe=>{const fe=xe.get(w.V_,Promise.resolve());let Ue=!1;return()=>fe.then(()=>new Promise(It=>{const Jt=xe.get($n),ni=xe.get(Ho);(function tt(It){xe.get($n).events.pipe((0,ie.h)(ni=>ni instanceof Bt||ni instanceof Xt||ni instanceof fi),(0,G.U)(ni=>ni instanceof Bt||ni instanceof Xt&&(0===ni.code||1===ni.code)&&null),(0,ie.h)(ni=>null!==ni),(0,Q.q)(1)).subscribe(()=>{It()})})(()=>{It(!0),Ue=!0}),Jt.afterPreactivation=()=>(It(!0),Ue||ni.closed?(0,f.of)(void 0):ni),Jt.initialNavigation()}))}}]).\u0275providers:[]]}const Xa=new t.OlP("")},2216:(ke,J,p)=>{"use strict";p.d(J,{BN:()=>Bn,uH:()=>ds});var t=p(4650);function e(st,wt){var Tt=Object.keys(st);if(Object.getOwnPropertySymbols){var Ht=Object.getOwnPropertySymbols(st);wt&&(Ht=Ht.filter(function($e){return Object.getOwnPropertyDescriptor(st,$e).enumerable})),Tt.push.apply(Tt,Ht)}return Tt}function f(st){for(var wt=1;wt<arguments.length;wt++){var Tt=null!=arguments[wt]?arguments[wt]:{};wt%2?e(Object(Tt),!0).forEach(function(Ht){h(st,Ht,Tt[Ht])}):Object.getOwnPropertyDescriptors?Object.defineProperties(st,Object.getOwnPropertyDescriptors(Tt)):e(Object(Tt)).forEach(function(Ht){Object.defineProperty(st,Ht,Object.getOwnPropertyDescriptor(Tt,Ht))})}return st}function C(st){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(wt){return typeof wt}:function(wt){return wt&&"function"==typeof Symbol&&wt.constructor===Symbol&&wt!==Symbol.prototype?"symbol":typeof wt})(st)}function d(st,wt){for(var Tt=0;Tt<wt.length;Tt++){var Ht=wt[Tt];Ht.enumerable=Ht.enumerable||!1,Ht.configurable=!0,"value"in Ht&&(Ht.writable=!0),Object.defineProperty(st,Ht.key,Ht)}}function h(st,wt,Tt){return wt in st?Object.defineProperty(st,wt,{value:Tt,enumerable:!0,configurable:!0,writable:!0}):st[wt]=Tt,st}function L(st,wt){return function w(st){if(Array.isArray(st))return st}(st)||function K(st,wt){var Tt=null==st?null:typeof Symbol<"u"&&st[Symbol.iterator]||st["@@iterator"];if(null!=Tt){var ui,ri,Ht=[],$e=!0,ai=!1;try{for(Tt=Tt.call(st);!($e=(ui=Tt.next()).done)&&(Ht.push(ui.value),!wt||Ht.length!==wt);$e=!0);}catch(Ai){ai=!0,ri=Ai}finally{try{!$e&&null!=Tt.return&&Tt.return()}finally{if(ai)throw ri}}return Ht}}(st,wt)||Q(st,wt)||function ce(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(st){return function N(st){if(Array.isArray(st))return re(st)}(st)||function G(st){if(typeof Symbol<"u"&&null!=st[Symbol.iterator]||null!=st["@@iterator"])return Array.from(st)}(st)||Q(st)||function ie(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(st,wt){if(st){if("string"==typeof st)return re(st,wt);var Tt=Object.prototype.toString.call(st).slice(8,-1);if("Object"===Tt&&st.constructor&&(Tt=st.constructor.name),"Map"===Tt||"Set"===Tt)return Array.from(st);if("Arguments"===Tt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Tt))return re(st,wt)}}function re(st,wt){(null==wt||wt>st.length)&&(wt=st.length);for(var Tt=0,Ht=new Array(wt);Tt<wt;Tt++)Ht[Tt]=st[Tt];return Ht}var ae=function(){},ne={},le={},ee=null,pe={mark:ae,measure:ae};try{typeof window<"u"&&(ne=window),typeof document<"u"&&(le=document),typeof MutationObserver<"u"&&(ee=MutationObserver),typeof performance<"u"&&(pe=performance)}catch{}var _,W,P,U,me,i=(ne.navigator||{}).userAgent,r=void 0===i?"":i,u=ne,l=le,y=ee,D=pe,b=!!l.documentElement&&!!l.head&&"function"==typeof l.addEventListener&&"function"==typeof l.createElement,n=~r.indexOf("MSIE")||~r.indexOf("Trident/"),nt="___FONT_AWESOME___",De="svg-inline--fa",ue="data-fa-i2svg",ve="data-fa-pseudo-element",$="data-prefix",Ge="data-icon",ut="fontawesome-i2svg",ye=["HTML","HEAD","STYLE","SCRIPT"],he=function(){try{return!0}catch{return!1}}(),de="classic",we="sharp",Y=[de,we];function j(st){return new Proxy(st,{get:function(Tt,Ht){return Ht in Tt?Tt[Ht]:Tt[de]}})}var Ce=j((h(_={},de,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),h(_,we,{fa:"solid",fass:"solid","fa-solid":"solid"}),_)),Se=j((h(W={},de,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),h(W,we,{solid:"fass"}),W)),X=j((h(P={},de,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),h(P,we,{fass:"fa-solid"}),P)),Ye=j((h(U={},de,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),h(U,we,{"fa-solid":"fass"}),U)),Le=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,gt="fa-layers-text",Wt=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Rt=j((h(me={},de,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),h(me,we,{900:"fass"}),me)),jt=[1,2,3,4,5,6,7,8,9,10],hi=jt.concat([11,12,13,14,15,16,17,18,19,20]),yt=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],pt=new Set;Object.keys(Se[de]).map(pt.add.bind(pt)),Object.keys(Se[we]).map(pt.add.bind(pt));var vt=[].concat(Y,T(pt),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","duotone-group","swap-opacity","primary","secondary"]).concat(jt.map(function(st){return"".concat(st,"x")})).concat(hi.map(function(st){return"w-".concat(st)})),Ct=u.FontAwesomeConfig||{};l&&"function"==typeof l.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(st){var wt=L(st,2),Ht=wt[1],$e=function dt(st){return""===st||"false"!==st&&("true"===st||st)}(function At(st){var wt=l.querySelector("script["+st+"]");if(wt)return wt.getAttribute(st)}(wt[0]));null!=$e&&(Ct[Ht]=$e)});var Ve={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:De,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ct.familyPrefix&&(Ct.cssPrefix=Ct.familyPrefix);var Fe=f(f({},Ve),Ct);Fe.autoReplaceSvg||(Fe.observeMutations=!1);var be={};Object.keys(Ve).forEach(function(st){Object.defineProperty(be,st,{enumerable:!0,set:function(Tt){Fe[st]=Tt,xt.forEach(function(Ht){return Ht(be)})},get:function(){return Fe[st]}})}),Object.defineProperty(be,"familyPrefix",{enumerable:!0,set:function(wt){Fe.cssPrefix=wt,xt.forEach(function(Tt){return Tt(be)})},get:function(){return Fe.cssPrefix}}),u.FontAwesomeConfig=be;var xt=[],et={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Qe(){for(var st=12,wt="";st-- >0;)wt+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return wt}function Ke(st){for(var wt=[],Tt=(st||[]).length>>>0;Tt--;)wt[Tt]=st[Tt];return wt}function mt(st){return st.classList?Ke(st.classList):(st.getAttribute("class")||"").split(" ").filter(function(wt){return wt})}function $t(st){return"".concat(st).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function zt(st){return Object.keys(st||{}).reduce(function(wt,Tt){return wt+"".concat(Tt,": ").concat(st[Tt].trim(),";")},"")}function Et(st){return st.size!==et.size||st.x!==et.x||st.y!==et.y||st.rotate!==et.rotate||st.flipX||st.flipY}function Ut(){var wt=De,Tt=be.cssPrefix,Ht=be.replacementClass,$e=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==Tt||Ht!==wt){var ai=new RegExp("\\.".concat("fa","\\-"),"g"),ui=new RegExp("\\--".concat("fa","\\-"),"g"),ri=new RegExp("\\.".concat(wt),"g");$e=$e.replace(ai,".".concat(Tt,"-")).replace(ui,"--".concat(Tt,"-")).replace(ri,".".concat(Ht))}return $e}var qt=!1;function Pi(){be.autoAddCss&&!qt&&(function Ae(st){if(st&&b){var wt=l.createElement("style");wt.setAttribute("type","text/css"),wt.innerHTML=st;for(var Tt=l.head.childNodes,Ht=null,$e=Tt.length-1;$e>-1;$e--){var ai=Tt[$e],ui=(ai.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(ui)>-1&&(Ht=ai)}l.head.insertBefore(wt,Ht)}}(Ut()),qt=!0)}var Ii={mixout:function(){return{dom:{css:Ut,insertCss:Pi}}},hooks:function(){return{beforeDOMElementCreation:function(){Pi()},beforeI2svg:function(){Pi()}}}},Ei=u||{};Ei[nt]||(Ei[nt]={}),Ei[nt].styles||(Ei[nt].styles={}),Ei[nt].hooks||(Ei[nt].hooks={}),Ei[nt].shims||(Ei[nt].shims=[]);var Vi=Ei[nt],Be=[],_e=!1;function Je(st){!b||(_e?setTimeout(st,0):Be.push(st))}function _t(st){var wt=st.tag,Tt=st.attributes,Ht=void 0===Tt?{}:Tt,$e=st.children,ai=void 0===$e?[]:$e;return"string"==typeof st?$t(st):"<".concat(wt," ").concat(function Gt(st){return Object.keys(st||{}).reduce(function(wt,Tt){return wt+"".concat(Tt,'="').concat($t(st[Tt]),'" ')},"").trim()}(Ht),">").concat(ai.map(_t).join(""),"</").concat(wt,">")}function se(st,wt,Tt){if(st&&st[wt]&&st[wt][Tt])return{prefix:wt,iconName:Tt,icon:st[wt][Tt]}}b&&((_e=(l.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(l.readyState))||l.addEventListener("DOMContentLoaded",function st(){l.removeEventListener("DOMContentLoaded",st),_e=1,Be.map(function(wt){return wt()})}));var bt=function(wt,Tt,Ht,$e){var Ai,zi,Qi,ai=Object.keys(wt),ui=ai.length,ri=void 0!==$e?function(wt,Tt){return function(Ht,$e,ai,ui){return wt.call(Tt,Ht,$e,ai,ui)}}(Tt,$e):Tt;for(void 0===Ht?(Ai=1,Qi=wt[ai[0]]):(Ai=0,Qi=Ht);Ai<ui;Ai++)Qi=ri(Qi,wt[zi=ai[Ai]],zi,wt);return Qi};function mi(st){var wt=function Vt(st){for(var wt=[],Tt=0,Ht=st.length;Tt<Ht;){var $e=st.charCodeAt(Tt++);if($e>=55296&&$e<=56319&&Tt<Ht){var ai=st.charCodeAt(Tt++);56320==(64512&ai)?wt.push(((1023&$e)<<10)+(1023&ai)+65536):(wt.push($e),Tt--)}else wt.push($e)}return wt}(st);return 1===wt.length?wt[0].toString(16):null}function Ui(st){return Object.keys(st).reduce(function(wt,Tt){var Ht=st[Tt];return Ht.icon?wt[Ht.iconName]=Ht.icon:wt[Tt]=Ht,wt},{})}function Ji(st,wt){var Tt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ht=Tt.skipHooks,$e=void 0!==Ht&&Ht,ai=Ui(wt);"function"!=typeof Vi.hooks.addPack||$e?Vi.styles[st]=f(f({},Vi.styles[st]||{}),ai):Vi.hooks.addPack(st,Ui(wt)),"fas"===st&&Ji("fa",wt)}var _n,si,Ti,ot=Vi.styles,Bt=Vi.shims,Xt=(h(_n={},de,Object.values(X[de])),h(_n,we,Object.values(X[we])),_n),fi=null,Li={},Ri={},Dn={},Zn={},Nn={},Qn=(h(si={},de,Object.keys(Ce[de])),h(si,we,Object.keys(Ce[we])),si);function Si(st,wt){var Tt=wt.split("-"),Ht=Tt[0],$e=Tt.slice(1).join("-");return Ht!==st||""===$e||function An(st){return~vt.indexOf(st)}($e)?null:$e}var Yi=function(){var wt=function(ai){return bt(ot,function(ui,ri,Ai){return ui[Ai]=bt(ri,ai,{}),ui},{})};Li=wt(function($e,ai,ui){return ai[3]&&($e[ai[3]]=ui),ai[2]&&ai[2].filter(function(Ai){return"number"==typeof Ai}).forEach(function(Ai){$e[Ai.toString(16)]=ui}),$e}),Ri=wt(function($e,ai,ui){return $e[ui]=ui,ai[2]&&ai[2].filter(function(Ai){return"string"==typeof Ai}).forEach(function(Ai){$e[Ai]=ui}),$e}),Nn=wt(function($e,ai,ui){var ri=ai[2];return $e[ui]=ui,ri.forEach(function(Ai){$e[Ai]=ui}),$e});var Tt="far"in ot||be.autoFetchSvg,Ht=bt(Bt,function($e,ai){var ui=ai[0],ri=ai[1],Ai=ai[2];return"far"===ri&&!Tt&&(ri="fas"),"string"==typeof ui&&($e.names[ui]={prefix:ri,iconName:Ai}),"number"==typeof ui&&($e.unicodes[ui.toString(16)]={prefix:ri,iconName:Ai}),$e},{names:{},unicodes:{}});Dn=Ht.names,Zn=Ht.unicodes,fi=Er(be.styleDefault,{family:be.familyDefault})};function Mn(st,wt){return(Li[st]||{})[wt]}function qn(st,wt){return(Nn[st]||{})[wt]}function Ts(st){return Dn[st]||{prefix:null,iconName:null}}function Kr(){return fi}function Er(st){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Tt=wt.family,Ht=void 0===Tt?de:Tt,$e=Ce[Ht][st],ai=Se[Ht][st]||Se[Ht][$e],ui=st in Vi.styles?st:null;return ai||ui||null}(function ct(st){xt.push(st)})(function(st){fi=Er(st.styleDefault,{family:be.familyDefault})}),Yi();var Pa=(h(Ti={},de,Object.keys(X[de])),h(Ti,we,Object.keys(X[we])),Ti);function Ya(st){var wt,Tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ht=Tt.skipLookups,$e=void 0!==Ht&&Ht,ai=(h(wt={},de,"".concat(be.cssPrefix,"-").concat(de)),h(wt,we,"".concat(be.cssPrefix,"-").concat(we)),wt),ui=null,ri=de;(st.includes(ai[de])||st.some(function(zi){return Pa[de].includes(zi)}))&&(ri=de),(st.includes(ai[we])||st.some(function(zi){return Pa[we].includes(zi)}))&&(ri=we);var Ai=st.reduce(function(zi,Qi){var ln=Si(be.cssPrefix,Qi);if(ot[Qi]?(Qi=Xt[ri].includes(Qi)?Ye[ri][Qi]:Qi,ui=Qi,zi.prefix=Qi):Qn[ri].indexOf(Qi)>-1?(ui=Qi,zi.prefix=Er(Qi,{family:ri})):ln?zi.iconName=ln:Qi!==be.replacementClass&&Qi!==ai[de]&&Qi!==ai[we]&&zi.rest.push(Qi),!$e&&zi.prefix&&zi.iconName){var Tn="fa"===ui?Ts(zi.iconName):{},wn=qn(zi.prefix,zi.iconName);Tn.prefix&&(ui=null),zi.iconName=Tn.iconName||wn||zi.iconName,zi.prefix=Tn.prefix||zi.prefix,"far"===zi.prefix&&!ot.far&&ot.fas&&!be.autoFetchSvg&&(zi.prefix="fas")}return zi},{prefix:null,iconName:null,rest:[]});return(st.includes("fa-brands")||st.includes("fab"))&&(Ai.prefix="fab"),(st.includes("fa-duotone")||st.includes("fad"))&&(Ai.prefix="fad"),!Ai.prefix&&ri===we&&(ot.fass||be.autoFetchSvg)&&(Ai.prefix="fass",Ai.iconName=qn(Ai.prefix,Ai.iconName)||Ai.iconName),("fa"===Ai.prefix||"fa"===ui)&&(Ai.prefix=Kr()||"fas"),Ai}var ns=function(){function st(){(function M(st,wt){if(!(st instanceof wt))throw new TypeError("Cannot call a class as a function")})(this,st),this.definitions={}}return function R(st,wt,Tt){wt&&d(st.prototype,wt),Tt&&d(st,Tt),Object.defineProperty(st,"prototype",{writable:!1})}(st,[{key:"add",value:function(){for(var Tt=this,Ht=arguments.length,$e=new Array(Ht),ai=0;ai<Ht;ai++)$e[ai]=arguments[ai];var ui=$e.reduce(this._pullDefinitions,{});Object.keys(ui).forEach(function(ri){Tt.definitions[ri]=f(f({},Tt.definitions[ri]||{}),ui[ri]),Ji(ri,ui[ri]);var Ai=X[de][ri];Ai&&Ji(Ai,ui[ri]),Yi()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(Tt,Ht){var $e=Ht.prefix&&Ht.iconName&&Ht.icon?{0:Ht}:Ht;return Object.keys($e).map(function(ai){var ui=$e[ai],ri=ui.prefix,Ai=ui.iconName,zi=ui.icon,Qi=zi[2];Tt[ri]||(Tt[ri]={}),Qi.length>0&&Qi.forEach(function(ln){"string"==typeof ln&&(Tt[ri][ln]=zi)}),Tt[ri][Ai]=zi}),Tt}}]),st}(),js=[],dr={},Ka={},Ma=Object.keys(Ka);function fr(st,wt){for(var Tt=arguments.length,Ht=new Array(Tt>2?Tt-2:0),$e=2;$e<Tt;$e++)Ht[$e-2]=arguments[$e];var ai=dr[st]||[];return ai.forEach(function(ui){wt=ui.apply(null,[wt].concat(Ht))}),wt}function la(st){for(var wt=arguments.length,Tt=new Array(wt>1?wt-1:0),Ht=1;Ht<wt;Ht++)Tt[Ht-1]=arguments[Ht];var $e=dr[st]||[];$e.forEach(function(ai){ai.apply(null,Tt)})}function Gr(){var st=arguments[0],wt=Array.prototype.slice.call(arguments,1);return Ka[st]?Ka[st].apply(null,wt):void 0}function Lr(st){"fa"===st.prefix&&(st.prefix="fas");var wt=st.iconName,Tt=st.prefix||Kr();if(wt)return wt=qn(Tt,wt)||wt,se(ta.definitions,Tt,wt)||se(Vi.styles,Tt,wt)}var ta=new ns,wa={i2svg:function(){var wt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b?(la("beforeI2svg",wt),Gr("pseudoElements2svg",wt),Gr("i2svg",wt)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var wt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Tt=wt.autoReplaceSvgRoot;!1===be.autoReplaceSvg&&(be.autoReplaceSvg=!0),be.observeMutations=!0,Je(function(){Sa({autoReplaceSvgRoot:Tt}),la("watch",wt)})}},Rr={noAuto:function(){be.autoReplaceSvg=!1,be.observeMutations=!1,la("noAuto")},config:be,dom:wa,parse:{icon:function(wt){if(null===wt)return null;if("object"===C(wt)&&wt.prefix&&wt.iconName)return{prefix:wt.prefix,iconName:qn(wt.prefix,wt.iconName)||wt.iconName};if(Array.isArray(wt)&&2===wt.length){var Tt=0===wt[1].indexOf("fa-")?wt[1].slice(3):wt[1],Ht=Er(wt[0]);return{prefix:Ht,iconName:qn(Ht,Tt)||Tt}}if("string"==typeof wt&&(wt.indexOf("".concat(be.cssPrefix,"-"))>-1||wt.match(Le))){var $e=Ya(wt.split(" "),{skipLookups:!0});return{prefix:$e.prefix||Kr(),iconName:qn($e.prefix,$e.iconName)||$e.iconName}}if("string"==typeof wt){var ai=Kr();return{prefix:ai,iconName:qn(ai,wt)||wt}}}},library:ta,findIconDefinition:Lr,toHtml:_t},Sa=function(){var wt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Tt=wt.autoReplaceSvgRoot,Ht=void 0===Tt?l:Tt;(Object.keys(Vi.styles).length>0||be.autoFetchSvg)&&b&&be.autoReplaceSvg&&Rr.dom.i2svg({node:Ht})};function yr(st,wt){return Object.defineProperty(st,"abstract",{get:wt}),Object.defineProperty(st,"html",{get:function(){return st.abstract.map(function(Ht){return _t(Ht)})}}),Object.defineProperty(st,"node",{get:function(){if(b){var Ht=l.createElement("div");return Ht.innerHTML=st.html,Ht.children}}}),st}function ka(st){var wt=st.icons,Tt=wt.main,Ht=wt.mask,$e=st.prefix,ai=st.iconName,ui=st.transform,ri=st.symbol,Ai=st.title,zi=st.maskId,Qi=st.titleId,ln=st.extra,Tn=st.watchable,wn=void 0!==Tn&&Tn,va=Ht.found?Ht:Tt,ya=va.width,ia=va.height,na="fak"===$e,Wr=[be.replacementClass,ai?"".concat(be.cssPrefix,"-").concat(ai):""].filter(function(Ps){return-1===ln.classes.indexOf(Ps)}).filter(function(Ps){return""!==Ps||!!Ps}).concat(ln.classes).join(" "),wr={children:[],attributes:f(f({},ln.attributes),{},{"data-prefix":$e,"data-icon":ai,class:Wr,role:ln.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(ya," ").concat(ia)})},us=na&&!~ln.classes.indexOf("fa-fw")?{width:"".concat(ya/ia*16*.0625,"em")}:{};wn&&(wr.attributes[ue]=""),Ai&&(wr.children.push({tag:"title",attributes:{id:wr.attributes["aria-labelledby"]||"title-".concat(Qi||Qe())},children:[Ai]}),delete wr.attributes.title);var Br=f(f({},wr),{},{prefix:$e,iconName:ai,main:Tt,mask:Ht,maskId:zi,transform:ui,symbol:ri,styles:f(f({},us),ln.styles)}),Os=Ht.found&&Tt.found?Gr("generateAbstractMask",Br)||{children:[],attributes:{}}:Gr("generateAbstractIcon",Br)||{children:[],attributes:{}},Ms=Os.attributes;return Br.children=Os.children,Br.attributes=Ms,ri?function ss(st){var Tt=st.iconName,Ht=st.children,$e=st.attributes,ai=st.symbol,ui=!0===ai?"".concat(st.prefix,"-").concat(be.cssPrefix,"-").concat(Tt):ai;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:f(f({},$e),{},{id:ui}),children:Ht}]}]}(Br):function _s(st){var wt=st.children,Tt=st.main,Ht=st.mask,$e=st.attributes,ai=st.styles,ui=st.transform;if(Et(ui)&&Tt.found&&!Ht.found){var zi={x:Tt.width/Tt.height/2,y:.5};$e.style=zt(f(f({},ai),{},{"transform-origin":"".concat(zi.x+ui.x/16,"em ").concat(zi.y+ui.y/16,"em")}))}return[{tag:"svg",attributes:$e,children:wt}]}(Br)}function Qs(st){var wt=st.content,Tt=st.width,Ht=st.height,$e=st.transform,ai=st.title,ui=st.extra,ri=st.watchable,Ai=void 0!==ri&&ri,zi=f(f(f({},ui.attributes),ai?{title:ai}:{}),{},{class:ui.classes.join(" ")});Ai&&(zi[ue]="");var Qi=f({},ui.styles);Et($e)&&(Qi.transform=function at(st){var wt=st.transform,Tt=st.width,$e=st.height,ai=void 0===$e?16:$e,ui=st.startCentered,ri=void 0!==ui&&ui,Ai="";return Ai+=ri&&n?"translate(".concat(wt.x/16-(void 0===Tt?16:Tt)/2,"em, ").concat(wt.y/16-ai/2,"em) "):ri?"translate(calc(-50% + ".concat(wt.x/16,"em), calc(-50% + ").concat(wt.y/16,"em)) "):"translate(".concat(wt.x/16,"em, ").concat(wt.y/16,"em) "),(Ai+="scale(".concat(wt.size/16*(wt.flipX?-1:1),", ").concat(wt.size/16*(wt.flipY?-1:1),") "))+"rotate(".concat(wt.rotate,"deg) ")}({transform:$e,startCentered:!0,width:Tt,height:Ht}),Qi["-webkit-transform"]=Qi.transform);var ln=zt(Qi);ln.length>0&&(zi.style=ln);var Tn=[];return Tn.push({tag:"span",attributes:zi,children:[wt]}),ai&&Tn.push({tag:"span",attributes:{class:"sr-only"},children:[ai]}),Tn}function ur(st){var wt=st.content,Tt=st.title,Ht=st.extra,$e=f(f(f({},Ht.attributes),Tt?{title:Tt}:{}),{},{class:Ht.classes.join(" ")}),ai=zt(Ht.styles);ai.length>0&&($e.style=ai);var ui=[];return ui.push({tag:"span",attributes:$e,children:[wt]}),Tt&&ui.push({tag:"span",attributes:{class:"sr-only"},children:[Tt]}),ui}var fa=Vi.styles;function Ea(st){var wt=st[0],Tt=st[1],ai=L(st.slice(4),1)[0];return{found:!0,width:wt,height:Tt,icon:Array.isArray(ai)?{tag:"g",attributes:{class:"".concat(be.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(be.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:ai[0]}},{tag:"path",attributes:{class:"".concat(be.cssPrefix,"-").concat("primary"),fill:"currentColor",d:ai[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:ai}}}}var Ls={found:!1,width:512,height:512};function os(st,wt){var Tt=wt;return"fa"===wt&&null!==be.styleDefault&&(wt=Kr()),new Promise(function(Ht,$e){if(Gr("missingIconAbstract"),"fa"===Tt){var ui=Ts(st)||{};st=ui.iconName||st,wt=ui.prefix||wt}if(st&&wt&&fa[wt]&&fa[wt][st])return Ht(Ea(fa[wt][st]));(function Na(st,wt){!he&&!be.showMissingIcons&&st&&console.error('Icon with name "'.concat(st,'" and prefix "').concat(wt,'" is missing.'))})(st,wt),Ht(f(f({},Ls),{},{icon:be.showMissingIcons&&st&&Gr("missingIconAbstract")||{}}))})}var nr=function(){},Hr=be.measurePerformance&&D&&D.mark&&D.measure?D:{mark:nr,measure:nr},ja='FA "6.2.1"',pa_begin=function(wt){return Hr.mark("".concat(ja," ").concat(wt," begins")),function(){return function(wt){Hr.mark("".concat(ja," ").concat(wt," ends")),Hr.measure("".concat(ja," ").concat(wt),"".concat(ja," ").concat(wt," begins"),"".concat(ja," ").concat(wt," ends"))}(wt)}},Aa=function(){};function Tr(st){return"string"==typeof(st.getAttribute?st.getAttribute(ue):null)}function io(st){return l.createElementNS("http://www.w3.org/2000/svg",st)}function jr(st){return l.createElement(st)}function ys(st){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Tt=wt.ceFn,Ht=void 0===Tt?"svg"===st.tag?io:jr:Tt;if("string"==typeof st)return l.createTextNode(st);var $e=Ht(st.tag);Object.keys(st.attributes||[]).forEach(function(ui){$e.setAttribute(ui,st.attributes[ui])});var ai=st.children||[];return ai.forEach(function(ui){$e.appendChild(ys(ui,{ceFn:Ht}))}),$e}var St={replace:function(wt){var Tt=wt[0];if(Tt.parentNode)if(wt[1].forEach(function($e){Tt.parentNode.insertBefore(ys($e),Tt)}),null===Tt.getAttribute(ue)&&be.keepOriginalSource){var Ht=l.createComment(function ls(st){var wt=" ".concat(st.outerHTML," ");return"".concat(wt,"Font Awesome fontawesome.com ")}(Tt));Tt.parentNode.replaceChild(Ht,Tt)}else Tt.remove()},nest:function(wt){var Tt=wt[0],Ht=wt[1];if(~mt(Tt).indexOf(be.replacementClass))return St.replace(wt);var $e=new RegExp("".concat(be.cssPrefix,"-.*"));if(delete Ht[0].attributes.id,Ht[0].attributes.class){var ai=Ht[0].attributes.class.split(" ").reduce(function(ri,Ai){return Ai===be.replacementClass||Ai.match($e)?ri.toSvg.push(Ai):ri.toNode.push(Ai),ri},{toNode:[],toSvg:[]});Ht[0].attributes.class=ai.toSvg.join(" "),0===ai.toNode.length?Tt.removeAttribute("class"):Tt.setAttribute("class",ai.toNode.join(" "))}var ui=Ht.map(function(ri){return _t(ri)}).join("\n");Tt.setAttribute(ue,""),Tt.innerHTML=ui}};function di(st){st()}function Mt(st,wt){var Tt="function"==typeof wt?wt:Aa;if(0===st.length)Tt();else{var Ht=di;"async"===be.mutateApproach&&(Ht=u.requestAnimationFrame||di),Ht(function(){var $e=function rr(){return!0===be.autoReplaceSvg?St.replace:St[be.autoReplaceSvg]||St.replace}(),ai=pa_begin("mutate");st.map($e),ai(),Tt()})}}var ti=!1;function ki(){ti=!0}function $i(){ti=!1}var Kn=null;function Cr(st){if(y&&be.observeMutations){var wt=st.treeCallback,Tt=void 0===wt?Aa:wt,Ht=st.nodeCallback,$e=void 0===Ht?Aa:Ht,ai=st.pseudoElementsCallback,ui=void 0===ai?Aa:ai,ri=st.observeMutationsRoot,Ai=void 0===ri?l:ri;Kn=new y(function(zi){if(!ti){var Qi=Kr();Ke(zi).forEach(function(ln){if("childList"===ln.type&&ln.addedNodes.length>0&&!Tr(ln.addedNodes[0])&&(be.searchPseudoElements&&ui(ln.target),Tt(ln.target)),"attributes"===ln.type&&ln.target.parentNode&&be.searchPseudoElements&&ui(ln.target.parentNode),"attributes"===ln.type&&Tr(ln.target)&&~yt.indexOf(ln.attributeName))if("class"===ln.attributeName&&function Jn(st){var wt=st.getAttribute?st.getAttribute($):null,Tt=st.getAttribute?st.getAttribute(Ge):null;return wt&&Tt}(ln.target)){var Tn=Ya(mt(ln.target)),va=Tn.iconName;ln.target.setAttribute($,Tn.prefix||Qi),va&&ln.target.setAttribute(Ge,va)}else(function vs(st){return st&&st.classList&&st.classList.contains&&st.classList.contains(be.replacementClass)})(ln.target)&&$e(ln.target)})}}),b&&Kn.observe(Ai,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Di(st){var wt=st.getAttribute("style"),Tt=[];return wt&&(Tt=wt.split(";").reduce(function(Ht,$e){var ai=$e.split(":"),ui=ai[0],ri=ai.slice(1);return ui&&ri.length>0&&(Ht[ui]=ri.join(":").trim()),Ht},{})),Tt}function on(st){var wt=st.getAttribute("data-prefix"),Tt=st.getAttribute("data-icon"),Ht=void 0!==st.innerText?st.innerText.trim():"",$e=Ya(mt(st));return $e.prefix||($e.prefix=Kr()),wt&&Tt&&($e.prefix=wt,$e.iconName=Tt),$e.iconName&&$e.prefix||($e.prefix&&Ht.length>0&&($e.iconName=function ha(st,wt){return(Ri[st]||{})[wt]}($e.prefix,st.innerText)||Mn($e.prefix,mi(st.innerText))),!$e.iconName&&be.autoFetchSvg&&st.firstChild&&st.firstChild.nodeType===Node.TEXT_NODE&&($e.iconName=st.firstChild.data)),$e}function ma(st){var wt=Ke(st.attributes).reduce(function($e,ai){return"class"!==$e.name&&"style"!==$e.name&&($e[ai.name]=ai.value),$e},{}),Tt=st.getAttribute("title"),Ht=st.getAttribute("data-fa-title-id");return be.autoA11y&&(Tt?wt["aria-labelledby"]="".concat(be.replacementClass,"-title-").concat(Ht||Qe()):(wt["aria-hidden"]="true",wt.focusable="false")),wt}function br(st){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},Tt=on(st),Ht=Tt.iconName,$e=Tt.prefix,ai=Tt.rest,ui=ma(st),ri=fr("parseNodeAttributes",{},st),Ai=wt.styleParser?Di(st):[];return f({iconName:Ht,title:st.getAttribute("title"),titleId:st.getAttribute("data-fa-title-id"),prefix:$e,transform:et,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:ai,styles:Ai,attributes:ui}},ri)}var Ze=Vi.styles;function qe(st){var wt="nest"===be.autoReplaceSvg?br(st,{styleParser:!1}):br(st);return~wt.extra.classes.indexOf(gt)?Gr("generateLayersText",st,wt):Gr("generateSvgReplacementMutation",st,wt)}var He=new Set;function Lt(st){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!b)return Promise.resolve();var Tt=l.documentElement.classList,Ht=function(ln){return Tt.add("".concat(ut,"-").concat(ln))},$e=function(ln){return Tt.remove("".concat(ut,"-").concat(ln))},ai=be.autoFetchSvg?He:Y.map(function(Qi){return"fa-".concat(Qi)}).concat(Object.keys(Ze));ai.includes("fa")||ai.push("fa");var ui=[".".concat(gt,":not([").concat(ue,"])")].concat(ai.map(function(Qi){return".".concat(Qi,":not([").concat(ue,"])")})).join(", ");if(0===ui.length)return Promise.resolve();var ri=[];try{ri=Ke(st.querySelectorAll(ui))}catch{}if(!(ri.length>0))return Promise.resolve();Ht("pending"),$e("complete");var Ai=pa_begin("onTree"),zi=ri.reduce(function(Qi,ln){try{var Tn=qe(ln);Tn&&Qi.push(Tn)}catch(wn){he||"MissingIcon"===wn.name&&console.error(wn)}return Qi},[]);return new Promise(function(Qi,ln){Promise.all(zi).then(function(Tn){Mt(Tn,function(){Ht("active"),Ht("complete"),$e("pending"),"function"==typeof wt&&wt(),Ai(),Qi()})}).catch(function(Tn){Ai(),ln(Tn)})})}function vi(st){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;qe(st).then(function(Tt){Tt&&Mt([Tt],wt)})}Y.map(function(st){He.add("fa-".concat(st))}),Object.keys(Ce[de]).map(He.add.bind(He)),Object.keys(Ce[we]).map(He.add.bind(He)),He=T(He);var _r=function(wt){var Tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ht=Tt.transform,$e=void 0===Ht?et:Ht,ai=Tt.symbol,ui=void 0!==ai&&ai,ri=Tt.mask,Ai=void 0===ri?null:ri,zi=Tt.maskId,Qi=void 0===zi?null:zi,ln=Tt.title,Tn=void 0===ln?null:ln,wn=Tt.titleId,va=void 0===wn?null:wn,ya=Tt.classes,ia=void 0===ya?[]:ya,na=Tt.attributes,Wr=void 0===na?{}:na,wr=Tt.styles,us=void 0===wr?{}:wr;if(wt){var Br=wt.prefix,Os=wt.iconName,$n=wt.icon;return yr(f({type:"icon"},wt),function(){return la("beforeDOMElementCreation",{iconDefinition:wt,params:Tt}),be.autoA11y&&(Tn?Wr["aria-labelledby"]="".concat(be.replacementClass,"-title-").concat(va||Qe()):(Wr["aria-hidden"]="true",Wr.focusable="false")),ka({icons:{main:Ea($n),mask:Ai?Ea(Ai.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Br,iconName:Os,transform:f(f({},et),$e),symbol:ui,title:Tn,maskId:Qi,titleId:va,extra:{attributes:Wr,styles:us,classes:ia}})})}},Ds={mixout:function(){return{icon:(st=_r,function(wt){var Tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ht=(wt||{}).icon?wt:Lr(wt||{}),$e=Tt.mask;return $e&&($e=($e||{}).icon?$e:Lr($e||{})),st(Ht,f(f({},Tt),{},{mask:$e}))})};var st},hooks:function(){return{mutationObserverCallbacks:function(Tt){return Tt.treeCallback=Lt,Tt.nodeCallback=vi,Tt}}},provides:function(wt){wt.i2svg=function(Tt){var Ht=Tt.node,ai=Tt.callback;return Lt(void 0===Ht?l:Ht,void 0===ai?function(){}:ai)},wt.generateSvgReplacementMutation=function(Tt,Ht){var $e=Ht.iconName,ai=Ht.title,ui=Ht.titleId,ri=Ht.prefix,Ai=Ht.transform,zi=Ht.symbol,Qi=Ht.mask,ln=Ht.maskId,Tn=Ht.extra;return new Promise(function(wn,va){Promise.all([os($e,ri),Qi.iconName?os(Qi.iconName,Qi.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(ya){var ia=L(ya,2);wn([Tt,ka({icons:{main:ia[0],mask:ia[1]},prefix:ri,iconName:$e,transform:Ai,symbol:zi,maskId:ln,title:ai,titleId:ui,extra:Tn,watchable:!0})])}).catch(va)})},wt.generateAbstractIcon=function(Tt){var zi,Ht=Tt.children,$e=Tt.attributes,ai=Tt.main,ui=Tt.transform,Ai=zt(Tt.styles);return Ai.length>0&&($e.style=Ai),Et(ui)&&(zi=Gr("generateAbstractTransformGrouping",{main:ai,transform:ui,containerWidth:ai.width,iconWidth:ai.width})),Ht.push(zi||ai.icon),{children:Ht,attributes:$e}}}},Qa={mixout:function(){return{layer:function(Tt){var Ht=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},$e=Ht.classes,ai=void 0===$e?[]:$e;return yr({type:"layer"},function(){la("beforeDOMElementCreation",{assembler:Tt,params:Ht});var ui=[];return Tt(function(ri){Array.isArray(ri)?ri.map(function(Ai){ui=ui.concat(Ai.abstract)}):ui=ui.concat(ri.abstract)}),[{tag:"span",attributes:{class:["".concat(be.cssPrefix,"-layers")].concat(T(ai)).join(" ")},children:ui}]})}}}},xr={mixout:function(){return{counter:function(Tt){var Ht=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},$e=Ht.title,ai=void 0===$e?null:$e,ui=Ht.classes,ri=void 0===ui?[]:ui,Ai=Ht.attributes,zi=void 0===Ai?{}:Ai,Qi=Ht.styles,ln=void 0===Qi?{}:Qi;return yr({type:"counter",content:Tt},function(){return la("beforeDOMElementCreation",{content:Tt,params:Ht}),ur({content:Tt.toString(),title:ai,extra:{attributes:zi,styles:ln,classes:["".concat(be.cssPrefix,"-layers-counter")].concat(T(ri))}})})}}}},qa={mixout:function(){return{text:function(Tt){var Ht=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},$e=Ht.transform,ai=void 0===$e?et:$e,ui=Ht.title,ri=void 0===ui?null:ui,Ai=Ht.classes,zi=void 0===Ai?[]:Ai,Qi=Ht.attributes,ln=void 0===Qi?{}:Qi,Tn=Ht.styles,wn=void 0===Tn?{}:Tn;return yr({type:"text",content:Tt},function(){return la("beforeDOMElementCreation",{content:Tt,params:Ht}),Qs({content:Tt,transform:f(f({},et),ai),title:ri,extra:{attributes:ln,styles:wn,classes:["".concat(be.cssPrefix,"-layers-text")].concat(T(zi))}})})}}},provides:function(wt){wt.generateLayersText=function(Tt,Ht){var $e=Ht.title,ai=Ht.transform,ui=Ht.extra,ri=null,Ai=null;if(n){var zi=parseInt(getComputedStyle(Tt).fontSize,10),Qi=Tt.getBoundingClientRect();ri=Qi.width/zi,Ai=Qi.height/zi}return be.autoA11y&&!$e&&(ui.attributes["aria-hidden"]="true"),Promise.resolve([Tt,Qs({content:Tt.innerHTML,width:ri,height:Ai,transform:ai,title:$e,extra:ui,watchable:!0})])}}},ko=new RegExp('"',"ug"),qs=[1105920,1112319];function Xo(st,wt){var Tt="".concat("data-fa-pseudo-element-pending").concat(wt.replace(":","-"));return new Promise(function(Ht,$e){if(null!==st.getAttribute(Tt))return Ht();var ui=Ke(st.children).filter(function($n){return $n.getAttribute(ve)===wt})[0],ri=u.getComputedStyle(st,wt),Ai=ri.getPropertyValue("font-family").match(Wt),zi=ri.getPropertyValue("font-weight"),Qi=ri.getPropertyValue("content");if(ui&&!Ai)return st.removeChild(ui),Ht();if(Ai&&"none"!==Qi&&""!==Qi){var ln=ri.getPropertyValue("content"),Tn=~["Sharp"].indexOf(Ai[2])?we:de,wn=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(Ai[2])?Se[Tn][Ai[2].toLowerCase()]:Rt[Tn][zi],va=function bs(st){var wt=st.replace(ko,""),Tt=function Hi(st,wt){var $e,Tt=st.length,Ht=st.charCodeAt(wt);return Ht>=55296&&Ht<=56319&&Tt>wt+1&&($e=st.charCodeAt(wt+1))>=56320&&$e<=57343?1024*(Ht-55296)+$e-56320+65536:Ht}(wt,0),Ht=Tt>=qs[0]&&Tt<=qs[1],$e=2===wt.length&&wt[0]===wt[1];return{value:mi($e?wt[0]:wt),isSecondary:Ht||$e}}(ln),ya=va.value,ia=va.isSecondary,na=Ai[0].startsWith("FontAwesome"),Wr=Mn(wn,ya),wr=Wr;if(na){var us=function Fs(st){var wt=Zn[st],Tt=Mn("fas",st);return wt||(Tt?{prefix:"fas",iconName:Tt}:null)||{prefix:null,iconName:null}}(ya);us.iconName&&us.prefix&&(Wr=us.iconName,wn=us.prefix)}if(!Wr||ia||ui&&ui.getAttribute($)===wn&&ui.getAttribute(Ge)===wr)Ht();else{st.setAttribute(Tt,wr),ui&&st.removeChild(ui);var Br=function La(){return{iconName:null,title:null,titleId:null,prefix:null,transform:et,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Os=Br.extra;Os.attributes[ve]=wt,os(Wr,wn).then(function($n){var Ms=ka(f(f({},Br),{},{icons:{main:$n,mask:{prefix:null,iconName:null,rest:[]}},prefix:wn,iconName:wr,extra:Os,watchable:!0})),Ps=l.createElement("svg");"::before"===wt?st.insertBefore(Ps,st.firstChild):st.appendChild(Ps),Ps.outerHTML=Ms.map(function(ao){return _t(ao)}).join("\n"),st.removeAttribute(Tt),Ht()}).catch($e)}}else Ht()})}function no(st){return Promise.all([Xo(st,"::before"),Xo(st,"::after")])}function Js(st){return!(st.parentNode===document.head||~ye.indexOf(st.tagName.toUpperCase())||st.getAttribute(ve)||st.parentNode&&"svg"===st.parentNode.tagName)}function No(st){if(b)return new Promise(function(wt,Tt){var Ht=Ke(st.querySelectorAll("*")).filter(Js).map(no),$e=pa_begin("searchPseudoElements");ki(),Promise.all(Ht).then(function(){$e(),$i(),wt()}).catch(function(){$e(),$i(),Tt()})})}var zs=!1,Is=function(wt){return wt.toLowerCase().split(" ").reduce(function(Ht,$e){var ai=$e.toLowerCase().split("-"),ui=ai[0],ri=ai.slice(1).join("-");if(ui&&"h"===ri)return Ht.flipX=!0,Ht;if(ui&&"v"===ri)return Ht.flipY=!0,Ht;if(ri=parseFloat(ri),isNaN(ri))return Ht;switch(ui){case"grow":Ht.size=Ht.size+ri;break;case"shrink":Ht.size=Ht.size-ri;break;case"left":Ht.x=Ht.x-ri;break;case"right":Ht.x=Ht.x+ri;break;case"up":Ht.y=Ht.y-ri;break;case"down":Ht.y=Ht.y+ri;break;case"rotate":Ht.rotate=Ht.rotate+ri}return Ht},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},vr={x:0,y:0,width:"100%",height:"100%"};function Ni(st){var wt=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return st.attributes&&(st.attributes.fill||wt)&&(st.attributes.fill="black"),st}!function rs(st,wt){var Tt=wt.mixoutsTo;js=st,dr={},Object.keys(Ka).forEach(function(Ht){-1===Ma.indexOf(Ht)&&delete Ka[Ht]}),js.forEach(function(Ht){var $e=Ht.mixout?Ht.mixout():{};if(Object.keys($e).forEach(function(ui){"function"==typeof $e[ui]&&(Tt[ui]=$e[ui]),"object"===C($e[ui])&&Object.keys($e[ui]).forEach(function(ri){Tt[ui]||(Tt[ui]={}),Tt[ui][ri]=$e[ui][ri]})}),Ht.hooks){var ai=Ht.hooks();Object.keys(ai).forEach(function(ui){dr[ui]||(dr[ui]=[]),dr[ui].push(ai[ui])})}Ht.provides&&Ht.provides(Ka)})}([Ii,Ds,Qa,xr,qa,{hooks:function(){return{mutationObserverCallbacks:function(Tt){return Tt.pseudoElementsCallback=No,Tt}}},provides:function(wt){wt.pseudoElements2svg=function(Tt){var Ht=Tt.node;be.searchPseudoElements&&No(void 0===Ht?l:Ht)}}},{mixout:function(){return{dom:{unwatch:function(){ki(),zs=!0}}}},hooks:function(){return{bootstrap:function(){Cr(fr("mutationObserverCallbacks",{}))},noAuto:function(){!function Fr(){!Kn||Kn.disconnect()}()},watch:function(Tt){var Ht=Tt.observeMutationsRoot;zs?$i():Cr(fr("mutationObserverCallbacks",{observeMutationsRoot:Ht}))}}}},{mixout:function(){return{parse:{transform:function(Tt){return Is(Tt)}}}},hooks:function(){return{parseNodeAttributes:function(Tt,Ht){var $e=Ht.getAttribute("data-fa-transform");return $e&&(Tt.transform=Is($e)),Tt}}},provides:function(wt){wt.generateAbstractTransformGrouping=function(Tt){var Ht=Tt.main,$e=Tt.transform,ui=Tt.iconWidth,ri={transform:"translate(".concat(Tt.containerWidth/2," 256)")},Ai="translate(".concat(32*$e.x,", ").concat(32*$e.y,") "),zi="scale(".concat($e.size/16*($e.flipX?-1:1),", ").concat($e.size/16*($e.flipY?-1:1),") "),Qi="rotate(".concat($e.rotate," 0 0)"),wn={outer:ri,inner:{transform:"".concat(Ai," ").concat(zi," ").concat(Qi)},path:{transform:"translate(".concat(ui/2*-1," -256)")}};return{tag:"g",attributes:f({},wn.outer),children:[{tag:"g",attributes:f({},wn.inner),children:[{tag:Ht.icon.tag,children:Ht.icon.children,attributes:f(f({},Ht.icon.attributes),wn.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(Tt,Ht){var $e=Ht.getAttribute("data-fa-mask"),ai=$e?Ya($e.split(" ").map(function(ui){return ui.trim()})):{prefix:null,iconName:null,rest:[]};return ai.prefix||(ai.prefix=Kr()),Tt.mask=ai,Tt.maskId=Ht.getAttribute("data-fa-mask-id"),Tt}}},provides:function(wt){wt.generateAbstractMask=function(Tt){var st,Ht=Tt.children,$e=Tt.attributes,ai=Tt.main,ui=Tt.mask,ri=Tt.maskId,Qi=ai.icon,Tn=ui.icon,wn=function ht(st){var wt=st.transform,Ht=st.iconWidth,$e={transform:"translate(".concat(st.containerWidth/2," 256)")},ai="translate(".concat(32*wt.x,", ").concat(32*wt.y,") "),ui="scale(".concat(wt.size/16*(wt.flipX?-1:1),", ").concat(wt.size/16*(wt.flipY?-1:1),") "),ri="rotate(".concat(wt.rotate," 0 0)");return{outer:$e,inner:{transform:"".concat(ai," ").concat(ui," ").concat(ri)},path:{transform:"translate(".concat(Ht/2*-1," -256)")}}}({transform:Tt.transform,containerWidth:ui.width,iconWidth:ai.width}),va={tag:"rect",attributes:f(f({},vr),{},{fill:"white"})},ya=Qi.children?{children:Qi.children.map(Ni)}:{},ia={tag:"g",attributes:f({},wn.inner),children:[Ni(f({tag:Qi.tag,attributes:f(f({},Qi.attributes),wn.path)},ya))]},na={tag:"g",attributes:f({},wn.outer),children:[ia]},Wr="mask-".concat(ri||Qe()),wr="clip-".concat(ri||Qe()),us={tag:"mask",attributes:f(f({},vr),{},{id:Wr,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[va,na]},Br={tag:"defs",children:[{tag:"clipPath",attributes:{id:wr},children:(st=Tn,"g"===st.tag?st.children:[st])},us]};return Ht.push(Br,{tag:"rect",attributes:f({fill:"currentColor","clip-path":"url(#".concat(wr,")"),mask:"url(#".concat(Wr,")")},vr)}),{children:Ht,attributes:$e}}}},{provides:function(wt){var Tt=!1;u.matchMedia&&(Tt=u.matchMedia("(prefers-reduced-motion: reduce)").matches),wt.missingIconAbstract=function(){var Ht=[],$e={fill:"currentColor"},ai={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Ht.push({tag:"path",attributes:f(f({},$e),{},{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 ui=f(f({},ai),{},{attributeName:"opacity"}),ri={tag:"circle",attributes:f(f({},$e),{},{cx:"256",cy:"364",r:"28"}),children:[]};return Tt||ri.children.push({tag:"animate",attributes:f(f({},ai),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:f(f({},ui),{},{values:"1;0;1;1;0;1;"})}),Ht.push(ri),Ht.push({tag:"path",attributes:f(f({},$e),{},{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:Tt?[]:[{tag:"animate",attributes:f(f({},ui),{},{values:"1;0;0;0;0;1;"})}]}),Tt||Ht.push({tag:"path",attributes:f(f({},$e),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:f(f({},ui),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Ht}}}},{hooks:function(){return{parseNodeAttributes:function(Tt,Ht){var $e=Ht.getAttribute("data-fa-symbol");return Tt.symbol=null!==$e&&(""===$e||$e),Tt}}}}],{mixoutsTo:Rr});var Mi=Rr.parse,ar=Rr.icon,lr=p(1481);const Xn=["*"],en=st=>{const wt={"fa-spin":st.spin,"fa-pulse":st.pulse,"fa-fw":st.fixedWidth,"fa-border":st.border,"fa-inverse":st.inverse,"fa-layers-counter":st.counter,"fa-flip-horizontal":"horizontal"===st.flip||"both"===st.flip,"fa-flip-vertical":"vertical"===st.flip||"both"===st.flip,[`fa-${st.size}`]:null!==st.size,[`fa-rotate-${st.rotate}`]:null!==st.rotate,[`fa-pull-${st.pull}`]:null!==st.pull,[`fa-stack-${st.stackItemSize}`]:null!=st.stackItemSize};return Object.keys(wt).map(Tt=>wt[Tt]?Tt:null).filter(Tt=>Tt)};let cs=(()=>{class st{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return st.\u0275fac=function(Tt){return new(Tt||st)},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac,providedIn:"root"}),st})(),ro=(()=>{class st{constructor(){this.definitions={}}addIcons(...Tt){for(const Ht of Tt){Ht.prefix in this.definitions||(this.definitions[Ht.prefix]={}),this.definitions[Ht.prefix][Ht.iconName]=Ht;for(const $e of Ht.icon[2])"string"==typeof $e&&(this.definitions[Ht.prefix][$e]=Ht)}}addIconPacks(...Tt){for(const Ht of Tt){const $e=Object.keys(Ht).map(ai=>Ht[ai]);this.addIcons(...$e)}}getIconDefinition(Tt,Ht){return Tt in this.definitions&&Ht in this.definitions[Tt]?this.definitions[Tt][Ht]:null}}return st.\u0275fac=function(Tt){return new(Tt||st)},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac,providedIn:"root"}),st})(),Fl=(()=>{class st{constructor(){this.stackItemSize="1x"}ngOnChanges(Tt){if("size"in Tt)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return st.\u0275fac=function(Tt){return new(Tt||st)},st.\u0275dir=t.lG2({type:st,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[t.TTD]}),st})(),Co=(()=>{class st{constructor(Tt,Ht){this.renderer=Tt,this.elementRef=Ht}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Tt){"size"in Tt&&(null!=Tt.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Tt.size.currentValue}`),null!=Tt.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Tt.size.previousValue}`))}}return st.\u0275fac=function(Tt){return new(Tt||st)(t.Y36(t.Qsj),t.Y36(t.SBq))},st.\u0275cmp=t.Xpm({type:st,selectors:[["fa-stack"]],inputs:{size:"size"},features:[t.TTD],ngContentSelectors:Xn,decls:1,vars:0,template:function(Tt,Ht){1&Tt&&(t.F$t(),t.Hsn(0))},encapsulation:2}),st})(),Bn=(()=>{class st{constructor(Tt,Ht,$e,ai,ui){this.sanitizer=Tt,this.config=Ht,this.iconLibrary=$e,this.stackItem=ai,this.classes=[],null!=ui&&null==ai&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(Tt){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let Ht=null;if(Ht=this.icon??this.config.fallbackIcon,Tt){const $e=this.findIconDefinition(Ht);if(null!=$e){const ai=this.buildParams();this.renderIcon($e,ai)}}}render(){this.ngOnChanges({})}findIconDefinition(Tt){const Ht=((st,wt)=>(st=>void 0!==st.prefix&&void 0!==st.iconName)(st)?st:Array.isArray(st)&&2===st.length?{prefix:st[0],iconName:st[1]}:"string"==typeof st?{prefix:wt,iconName:st}:void 0)(Tt,this.config.defaultPrefix);return"icon"in Ht?Ht:this.iconLibrary.getIconDefinition(Ht.prefix,Ht.iconName)??((st=>{throw new Error(`Could not find icon with iconName=${st.iconName} and prefix=${st.prefix} in the icon library.`)})(Ht),null)}buildParams(){const Tt={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},Ht="string"==typeof this.transform?Mi.transform(this.transform):this.transform;return{title:this.title,transform:Ht,classes:[...en(Tt),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(Tt,Ht){const $e=ar(Tt,Ht);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml($e.html.join("\n"))}}return st.\u0275fac=function(Tt){return new(Tt||st)(t.Y36(lr.H7),t.Y36(cs),t.Y36(ro),t.Y36(Fl,8),t.Y36(Co,8))},st.\u0275cmp=t.Xpm({type:st,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Tt,Ht){2&Tt&&(t.Ikx("innerHTML",Ht.renderedIconHTML,t.oJD),t.uIk("title",Ht.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[t.TTD],decls:0,vars:0,template:function(Tt,Ht){},encapsulation:2}),st})(),ds=(()=>{class st{}return st.\u0275fac=function(Tt){return new(Tt||st)},st.\u0275mod=t.oAB({type:st}),st.\u0275inj=t.cJS({}),st})()},2687:(ke,J,p)=>{"use strict";p.d(J,{Acd:()=>z1,Aq:()=>so,B$L:()=>vr,BDt:()=>h6,CgH:()=>ps,CvI:()=>Uf,DL8:()=>H9,FJU:()=>C8,FVb:()=>ks,FlN:()=>dm,FpQ:()=>Uu,HLz:()=>g_,KOR:()=>Vc,Krp:()=>xh,Mdf:()=>aa,N2j:()=>qn,NBC:()=>Z_,OS1:()=>i4,Psp:()=>Fh,Pyt:()=>y8,Sbq:()=>vt,SoD:()=>Ea,Ssp:()=>Q9,SuH:()=>ic,TmZ:()=>F_,USL:()=>i9,Vei:()=>Ao,Vfw:()=>E5,X5K:()=>sf,XsY:()=>ln,aj4:()=>B1,b7W:()=>Kf,byT:()=>Tn,co4:()=>mm,d63:()=>Qo,dLy:()=>S_,dT$:()=>Bh,eHv:()=>K9,gNZ:()=>xf,hkK:()=>Xt,hnx:()=>sv,kXW:()=>gg,kZ_:()=>V_,koM:()=>Eo,mh3:()=>np,nNP:()=>i7,q7m:()=>wg,qO$:()=>p9,r8p:()=>l7,sqG:()=>qp,vqe:()=>E9,wn1:()=>x_,wyP:()=>p1,xf3:()=>q1});var vt={prefix:"fas",iconName:"angles-down",icon:[448,512,["angle-double-down"],"f103","M246.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 402.7 361.4 265.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160zm160-352l-160 160c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 210.7 361.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z"]},Xt={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M352 128c0 70.7-57.3 128-128 128s-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM625 177L497 305c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L591 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},qn={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M32 32H480c17.7 0 32 14.3 32 32V96c0 17.7-14.3 32-32 32H32C14.3 128 0 113.7 0 96V64C0 46.3 14.3 32 32 32zm0 128H480V416c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V160zm128 80c0 8.8 7.2 16 16 16H336c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z"]},Ea={prefix:"fas",iconName:"pen-ruler",icon:[512,512,["pencil-ruler"],"f5ae","M469.3 19.3l23.4 23.4c25 25 25 65.5 0 90.5l-56.4 56.4L322.3 75.7l56.4-56.4c25-25 65.5-25 90.5 0zM44.9 353.2L299.7 98.3 413.7 212.3 158.8 467.1c-6.7 6.7-15.1 11.6-24.2 14.2l-104 29.7c-8.4 2.4-17.4 .1-23.6-6.1s-8.5-15.2-6.1-23.6l29.7-104c2.6-9.2 7.5-17.5 14.2-24.2zM249.4 103.4L103.4 249.4 16 161.9c-18.7-18.7-18.7-49.1 0-67.9L94.1 16c18.7-18.7 49.1-18.7 67.9 0l19.8 19.8c-.3 .3-.7 .6-1 .9l-64 64c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l64-64c.3-.3 .6-.7 .9-1l45.1 45.1zM408.6 262.6l45.1 45.1c-.3 .3-.7 .6-1 .9l-64 64c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l64-64c.3-.3 .6-.7 .9-1L496 350.1c18.7 18.7 18.7 49.1 0 67.9L417.9 496c-18.7 18.7-49.1 18.7-67.9 0l-87.4-87.4L408.6 262.6z"]},vr={prefix:"fas",iconName:"unlock-keyhole",icon:[448,512,["unlock-alt"],"f13e","M224 64c-44.2 0-80 35.8-80 80v48H384c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80V144C80 64.5 144.5 0 224 0c57.5 0 107 33.7 130.1 82.3c7.6 16 .8 35.1-15.2 42.6s-35.1 .8-42.6-15.2C283.4 82.6 255.9 64 224 64zm32 320c17.7 0 32-14.3 32-32s-14.3-32-32-32H192c-17.7 0-32 14.3-32 32s14.3 32 32 32h64z"]},ln={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M371.3 367.1c27.3-3.9 51.9-19.4 67.2-42.9L600.2 74.1c12.6-19.5 9.4-45.3-7.6-61.2S549.7-4.4 531.1 9.6L294.4 187.2c-24 18-38.2 46.1-38.4 76.1L371.3 367.1zm-19.6 25.4l-116-104.4C175.9 290.3 128 339.6 128 400c0 3.9 .2 7.8 .6 11.6c1.8 17.5-10.2 36.4-27.8 36.4H96c-17.7 0-32 14.3-32 32s14.3 32 32 32H240c61.9 0 112-50.1 112-112c0-2.5-.1-5-.2-7.5z"]},Tn={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"]},ks={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 160c-44.2 0-80-35.8-80-80S99.8 0 144 0s80 35.8 80 80s-35.8 80-80 80zm368 0c-44.2 0-80-35.8-80-80s35.8-80 80-80s80 35.8 80 80s-35.8 80-80 80zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM416 224c0 53-43 96-96 96s-96-43-96-96s43-96 96-96s96 43 96 96zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z"]},so={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c5.2-11.8 8-24.8 8-38.5c0-53-43-96-96-96c-2.8 0-5.6 .1-8.4 .4c5.3 9.3 8.4 20.1 8.4 31.6c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zm223.1 298L373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5z"]},z1={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M480 32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9L381.7 53c-48 48-113.1 75-181 75H192 160 64c-35.3 0-64 28.7-64 64v96c0 35.3 28.7 64 64 64l0 128c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V352l8.7 0c67.9 0 133 27 181 75l43.6 43.6c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V300.4c18.6-8.8 32-32.5 32-60.4s-13.4-51.6-32-60.4V32zm-64 76.7V240 371.3C357.2 317.8 280.5 288 200.7 288H192V192h8.7c79.8 0 156.5-29.8 215.3-83.3z"]},B1={prefix:"fas",iconName:"money-bill-wave",icon:[576,512,[],"f53a","M0 112.5V422.3c0 18 10.1 35 27 41.3c87 32.5 174 10.3 261-11.9c79.8-20.3 159.6-40.7 239.3-18.9c23 6.3 48.7-9.5 48.7-33.4V89.7c0-18-10.1-35-27-41.3C462 15.9 375 38.1 288 60.3C208.2 80.6 128.4 100.9 48.7 79.1C25.6 72.8 0 88.6 0 112.5zM288 352c-44.2 0-80-43-80-96s35.8-96 80-96s80 43 80 96s-35.8 96-80 96zM64 352c35.3 0 64 28.7 64 64H64V352zm64-208c0 35.3-28.7 64-64 64V144h64zM512 304v64H448c0-35.3 28.7-64 64-64zM448 96h64v64c-35.3 0-64-28.7-64-64z"]},q1={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM344 152c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm96-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zM344 408c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm104-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24z"]},Eo={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32V400c0 8.8 7.2 16 16 16H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H80c-44.2 0-80-35.8-80-80V64C0 46.3 14.3 32 32 32zm96 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 64H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 96H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},p1={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 64H208c-8.8 0-16 7.2-16 16V96H128V80c0-44.2 35.8-80 80-80H432c44.2 0 80 35.8 80 80V304c0 44.2-35.8 80-80 80H416V320h16c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16zM0 192c0-35.3 28.7-64 64-64H320c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192zm64 32c0 17.7 14.3 32 32 32H288c17.7 0 32-14.3 32-32s-14.3-32-32-32H96c-17.7 0-32 14.3-32 32z"]},Ao={prefix:"fas",iconName:"burst",icon:[512,512,[],"e4dc","M37.6 4.2C28-2.3 15.2-1.1 7 7s-9.4 21-2.8 30.5l112 163.3L16.6 233.2C6.7 236.4 0 245.6 0 256s6.7 19.6 16.6 22.8l103.1 33.4L66.8 412.8c-4.9 9.3-3.2 20.7 4.3 28.1s18.8 9.2 28.1 4.3l100.6-52.9 33.4 103.1c3.2 9.9 12.4 16.6 22.8 16.6s19.6-6.7 22.8-16.6l33.4-103.1 100.6 52.9c9.3 4.9 20.7 3.2 28.1-4.3s9.2-18.8 4.3-28.1L392.3 312.2l103.1-33.4c9.9-3.2 16.6-12.4 16.6-22.8s-6.7-19.6-16.6-22.8L388.9 198.7l25.7-70.4c3.2-8.8 1-18.6-5.6-25.2s-16.4-8.8-25.2-5.6l-70.4 25.7L278.8 16.6C275.6 6.7 266.4 0 256 0s-19.6 6.7-22.8 16.6l-32.3 99.6L37.6 4.2z"]},Qo={prefix:"fas",iconName:"arrows-turn-right",icon:[512,512,[],"e4c0","M329.4 9.4c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L370.7 160H160c-35.3 0-64 28.7-64 64v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V224C32 153.3 89.3 96 160 96H370.7L329.4 54.6c-12.5-12.5-12.5-32.8 0-45.3zm-96 256c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 416H128c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96H274.7l-41.4-41.4c-12.5-12.5-12.5-32.8 0-45.3z"]},xh={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},Fh={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M96 96c-17.7 0-32 14.3-32 32s-14.3 32-32 32s-32-14.3-32-32C0 75 43 32 96 32h97c70.1 0 127 56.9 127 127c0 52.4-32.2 99.4-81 118.4l-63 24.5 0 18.1c0 17.7-14.3 32-32 32s-32-14.3-32-32V301.9c0-26.4 16.2-50.1 40.8-59.6l63-24.5C240 208.3 256 185 256 159c0-34.8-28.2-63-63-63H96zm48 384c-22.1 0-40-17.9-40-40s17.9-40 40-40s40 17.9 40 40s-17.9 40-40 40z"]},Bh={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},i4={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},Vc={prefix:"fas",iconName:"eject",icon:[448,512,[9167],"f052","M224 32c13.5 0 26.3 5.6 35.4 15.6l176 192c12.9 14 16.2 34.3 8.6 51.8S419 320 400 320H48c-19 0-36.3-11.2-43.9-28.7s-4.3-37.7 8.6-51.8l176-192C197.7 37.6 210.5 32 224 32zM0 432c0-26.5 21.5-48 48-48H400c26.5 0 48 21.5 48 48s-21.5 48-48 48H48c-26.5 0-48-21.5-48-48z"]},ic={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M224 32H64C46.3 32 32 46.3 32 64v64c0 17.7 14.3 32 32 32H441.4c4.2 0 8.3-1.7 11.3-4.7l48-48c6.2-6.2 6.2-16.4 0-22.6l-48-48c-3-3-7.1-4.7-11.3-4.7H288c0-17.7-14.3-32-32-32s-32 14.3-32 32zM480 256c0-17.7-14.3-32-32-32H288V192H224v32H70.6c-4.2 0-8.3 1.7-11.3 4.7l-48 48c-6.2 6.2-6.2 16.4 0 22.6l48 48c3 3 7.1 4.7 11.3 4.7H448c17.7 0 32-14.3 32-32V256zM288 480V384H224v96c0 17.7 14.3 32 32 32s32-14.3 32-32z"]},ps={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM104 432c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24z"]},sf={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64H80c-8.8 0-16-7.2-16-16s7.2-16 16-16H448c17.7 0 32-14.3 32-32s-14.3-32-32-32H64zM416 336c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},np={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M80 104c13.3 0 24-10.7 24-24s-10.7-24-24-24S56 66.7 56 80s10.7 24 24 24zm80-24c0 32.8-19.7 61-48 73.3v87.8c18.8-10.9 40.7-17.1 64-17.1h96c35.3 0 64-28.7 64-64v-6.7C307.7 141 288 112.8 288 80c0-44.2 35.8-80 80-80s80 35.8 80 80c0 32.8-19.7 61-48 73.3V160c0 70.7-57.3 128-128 128H176c-35.3 0-64 28.7-64 64v6.7c28.3 12.3 48 40.5 48 73.3c0 44.2-35.8 80-80 80s-80-35.8-80-80c0-32.8 19.7-61 48-73.3V352 153.3C19.7 141 0 112.8 0 80C0 35.8 35.8 0 80 0s80 35.8 80 80zm232 0c0-13.3-10.7-24-24-24s-24 10.7-24 24s10.7 24 24 24s24-10.7 24-24zM80 456c13.3 0 24-10.7 24-24s-10.7-24-24-24s-24 10.7-24 24s10.7 24 24 24z"]},Uu={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 256s96-96 96-160c0-53-43-96-96-96s-96 43-96 96c0 29.4 20.2 65.5 42.1 96H320c-53 0-96 43-96 96s43 96 96 96h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H188.6c-6.2 9.6-12.6 18.8-19 27.2c-10.7 14.2-21.3 26.9-30 36.8H416c53 0 96-43 96-96s-43-96-96-96H320c-17.7 0-32-14.3-32-32s14.3-32 32-32h96zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32zM149.9 448c21.9-30.5 42.1-66.6 42.1-96c0-53-43-96-96-96s-96 43-96 96c0 64 96 160 96 160s3.5-3.5 9.2-9.6c.4-.4 .7-.8 1.1-1.2c3.3-3.5 7.1-7.8 11.4-12.8c.2-.2 .4-.4 .6-.6c9.4-10.8 20.7-24.6 31.6-39.8zM96 384c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},aa={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM432 256c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM288 192c0 35.3-28.7 64-64 64c-11.5 0-22.3-3-31.6-8.4c-.2 2.8-.4 5.5-.4 8.4c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-2.8 0-5.6 .1-8.4 .4c5.3 9.3 8.4 20.1 8.4 31.6z"]},xf={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M224 256c-70.7 0-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128s-57.3 128-128 128zm-45.7 48h91.4c11.8 0 23.4 1.2 34.5 3.3c-2.1 18.5 7.4 35.6 21.8 44.8c-16.6 10.6-26.7 31.6-20 53.3c4 12.9 9.4 25.5 16.4 37.6s15.2 23.1 24.4 33c15.7 16.9 39.6 18.4 57.2 8.7v.9c0 9.2 2.7 18.5 7.9 26.3H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM436 218.2c0-7 4.5-13.3 11.3-14.8c10.5-2.4 21.5-3.7 32.7-3.7s22.2 1.3 32.7 3.7c6.8 1.5 11.3 7.8 11.3 14.8v30.6c7.9 3.4 15.4 7.7 22.3 12.8l24.9-14.3c6.1-3.5 13.7-2.7 18.5 2.4c7.6 8.1 14.3 17.2 20.1 27.2s10.3 20.4 13.5 31c2.1 6.7-1.1 13.7-7.2 17.2l-25 14.4c.4 4 .7 8.1 .7 12.3s-.2 8.2-.7 12.3l25 14.4c6.1 3.5 9.2 10.5 7.2 17.2c-3.3 10.6-7.8 21-13.5 31s-12.5 19.1-20.1 27.2c-4.8 5.1-12.5 5.9-18.5 2.4l-24.9-14.3c-6.9 5.1-14.3 9.4-22.3 12.8l0 30.6c0 7-4.5 13.3-11.3 14.8c-10.5 2.4-21.5 3.7-32.7 3.7s-22.2-1.3-32.7-3.7c-6.8-1.5-11.3-7.8-11.3-14.8V454.8c-8-3.4-15.6-7.7-22.5-12.9l-24.7 14.3c-6.1 3.5-13.7 2.7-18.5-2.4c-7.6-8.1-14.3-17.2-20.1-27.2s-10.3-20.4-13.5-31c-2.1-6.7 1.1-13.7 7.2-17.2l24.8-14.3c-.4-4.1-.7-8.2-.7-12.4s.2-8.3 .7-12.4L343.8 325c-6.1-3.5-9.2-10.5-7.2-17.2c3.3-10.6 7.7-21 13.5-31s12.5-19.1 20.1-27.2c4.8-5.1 12.4-5.9 18.5-2.4l24.8 14.3c6.9-5.1 14.5-9.4 22.5-12.9V218.2zm92.1 133.5c0-26.5-21.5-48-48.1-48s-48.1 21.5-48.1 48s21.5 48 48.1 48s48.1-21.5 48.1-48z"]},E5={prefix:"fas",iconName:"angles-up",icon:[448,512,["angle-double-up"],"f102","M246.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 109.3 361.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160zm160 352l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 301.3 361.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"]},qp={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},dm={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M112 96c0-17.7 14.3-32 32-32h16c17.7 0 32 14.3 32 32V224v64V416c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V384H64c-17.7 0-32-14.3-32-32V288c-17.7 0-32-14.3-32-32s14.3-32 32-32V160c0-17.7 14.3-32 32-32h48V96zm416 0v32h48c17.7 0 32 14.3 32 32v64c17.7 0 32 14.3 32 32s-14.3 32-32 32v64c0 17.7-14.3 32-32 32H528v32c0 17.7-14.3 32-32 32H480c-17.7 0-32-14.3-32-32V288 224 96c0-17.7 14.3-32 32-32h16c17.7 0 32 14.3 32 32zM416 224v64H224V224H416z"]},Uf={prefix:"fas",iconName:"money-bill-1",icon:[576,512,["money-bill-alt"],"f3d1","M64 64C28.7 64 0 92.7 0 128V384c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H64zm64 320H64V320c35.3 0 64 28.7 64 64zM64 192V128h64c0 35.3-28.7 64-64 64zM448 384c0-35.3 28.7-64 64-64v64H448zm64-192c-35.3 0-64-28.7-64-64h64v64zM400 256c0 61.9-50.1 112-112 112s-112-50.1-112-112s50.1-112 112-112s112 50.1 112 112zM252 208c0 9.7 6.9 17.7 16 19.6V276h-4c-11 0-20 9-20 20s9 20 20 20h24 24c11 0 20-9 20-20s-9-20-20-20h-4V208c0-11-9-20-20-20H272c-11 0-20 9-20 20z"]},mm=Uf,Kf={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336c44.2 0 80-35.8 80-80s-35.8-80-80-80s-80 35.8-80 80s35.8 80 80 80z"]},gg={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64H384v64H256V64zM240 0c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48h48v32H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96v32H80c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H240c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H192V288H448v32H400c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H560c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H512V288h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H352V192h48c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48H240zM96 448V384H224v64H96zm320-64H544v64H416V384z"]},wg={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zM432 456c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24z"]},h6={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288H175.5L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7H272.5L349.4 44.6z"]},y8={prefix:"fas",iconName:"arrows-turn-to-dots",icon:[512,512,[],"e4c1","M249.4 25.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L269.3 96 416 96c53 0 96 43 96 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V192c0-17.7-14.3-32-32-32l-146.7 0 25.4 25.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-80-80c-12.5-12.5-12.5-32.8 0-45.3l80-80zm13.3 256l80 80c12.5 12.5 12.5 32.8 0 45.3l-80 80c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 416 96 416c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96l146.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0zM512 384c0 35.3-28.7 64-64 64s-64-28.7-64-64s28.7-64 64-64s64 28.7 64 64zM64 64c35.3 0 64 28.7 64 64s-28.7 64-64 64s-64-28.7-64-64S28.7 64 64 64z"]},C8={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0S96 57.3 96 128s57.3 128 128 128zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H392.6c-5.4-9.4-8.6-20.3-8.6-32V352c0-2.1 .1-4.2 .3-6.3c-31-26-71-41.7-114.6-41.7H178.3zM528 240c17.7 0 32 14.3 32 32v48H496V272c0-17.7 14.3-32 32-32zm-80 32v48c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32V352c0-17.7-14.3-32-32-32V272c0-44.2-35.8-80-80-80s-80 35.8-80 80z"]},g_={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM288 96c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zM96 288c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32zm352-32c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},i7={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},x_={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352c79.5 0 144-64.5 144-144s-64.5-144-144-144S64 128.5 64 208s64.5 144 144 144z"]},S_={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.2-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6s14 12.4 14 21.8V488c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6L304 471.6l-40.4 34.6c-9 7.7-22.2 7.7-31.2 0L192 471.6l-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488V24C0 14.6 5.5 6.1 14 2.2zM96 144c-8.8 0-16 7.2-16 16s7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96zM80 352c0 8.8 7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96c-8.8 0-16 7.2-16 16zM96 240c-8.8 0-16 7.2-16 16s7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96z"]},F_={prefix:"fas",iconName:"diagram-project",icon:[576,512,["project-diagram"],"f542","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48V96H384V80c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H432c-26.5 0-48-21.5-48-48V160H192v16c0 1.7-.1 3.4-.3 5L272 288h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H272c-26.5 0-48-21.5-48-48V336c0-1.7 .1-3.4 .3-5L144 224H48c-26.5 0-48-21.5-48-48V80z"]},V_={prefix:"fas",iconName:"copy",icon:[512,512,[],"f0c5","M224 0c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224zM64 160c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64H64V224h64V160H64z"]},l7={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},Z_={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},i9={prefix:"fas",iconName:"percent",icon:[384,512,[62101,62785,"percentage"],"25","M374.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-320 320c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l320-320zM128 128c0-35.3-28.7-64-64-64S0 92.7 0 128s28.7 64 64 64s64-28.7 64-64zM384 384c0-35.3-28.7-64-64-64s-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64z"]},p9={prefix:"fas",iconName:"clock-rotate-left",icon:[512,512,["history"],"f1da","M75 75L41 41C25.9 25.9 0 36.6 0 57.9V168c0 13.3 10.7 24 24 24H134.1c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24V256c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65V152c0-13.3-10.7-24-24-24z"]},E9={prefix:"fas",iconName:"infinity",icon:[640,512,[8734,9854],"f534","M0 241.1C0 161 65 96 145.1 96c38.5 0 75.4 15.3 102.6 42.5L320 210.7l72.2-72.2C419.5 111.3 456.4 96 494.9 96C575 96 640 161 640 241.1v29.7C640 351 575 416 494.9 416c-38.5 0-75.4-15.3-102.6-42.5L320 301.3l-72.2 72.2C220.5 400.7 183.6 416 145.1 416C65 416 0 351 0 270.9V241.1zM274.7 256l-72.2-72.2c-15.2-15.2-35.9-23.8-57.4-23.8C100.3 160 64 196.3 64 241.1v29.7c0 44.8 36.3 81.1 81.1 81.1c21.5 0 42.2-8.5 57.4-23.8L274.7 256zm90.5 0l72.2 72.2c15.2 15.2 35.9 23.8 57.4 23.8c44.8 0 81.1-36.3 81.1-81.1V241.1c0-44.8-36.3-81.1-81.1-81.1c-21.5 0-42.2 8.5-57.4 23.8L365.3 256z"]},H9={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H398.4c-5.2 25.8-22.9 47.1-46.4 57.3V448H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H320 128c-17.7 0-32-14.3-32-32s14.3-32 32-32H288V153.3c-23.5-10.3-41.2-31.6-46.4-57.3H128c-17.7 0-32-14.3-32-32s14.3-32 32-32H256c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zM125.8 177.3L51.1 320H204.9L130.2 177.3c-.4-.8-1.3-1.3-2.2-1.3s-1.7 .5-2.2 1.3zM128 128c18.8 0 36 10.4 44.7 27l77.8 148.5c3.1 5.8 6.1 14 5.5 23.8c-.7 12.1-4.8 35.2-24.8 55.1C210.9 402.6 178.2 416 128 416s-82.9-13.4-103.2-33.5c-20-20-24.2-43-24.8-55.1c-.6-9.8 2.5-18 5.5-23.8L83.3 155c8.7-16.6 25.9-27 44.7-27zm384 48c-.9 0-1.7 .5-2.2 1.3L435.1 320H588.9L514.2 177.3c-.4-.8-1.3-1.3-2.2-1.3zm-44.7-21c8.7-16.6 25.9-27 44.7-27s36 10.4 44.7 27l77.8 148.5c3.1 5.8 6.1 14 5.5 23.8c-.7 12.1-4.8 35.2-24.8 55.1C594.9 402.6 562.2 416 512 416s-82.9-13.4-103.2-33.5c-20-20-24.2-43-24.8-55.1c-.6-9.8 2.5-18 5.5-23.8L467.3 155z"]},K9={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},Q9={prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M32 96l320 0V32c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l96 96c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-96 96c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6V160L32 160c-17.7 0-32-14.3-32-32s14.3-32 32-32zM480 352c17.7 0 32 14.3 32 32s-14.3 32-32 32H160v64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-96-96c-6-6-9.4-14.1-9.4-22.6s3.4-16.6 9.4-22.6l96-96c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 64H480z"]},sv={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M224 256c-70.7 0-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128s-57.3 128-128 128zm-45.7 48h91.4c20.6 0 40.4 3.5 58.8 9.9C323 331 320 349.1 320 368c0 59.5 29.5 112.1 74.8 144H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM640 368c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM496 288c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H512V304c0-8.8-7.2-16-16-16z"]}},493:(ke,J,p)=>{"use strict";p.d(J,{eX:()=>nt,sQ:()=>Pt,GW:()=>i,l4:()=>Pe});var t=p(9653),e=p(6451),f=p(9751),C=p(7579),a=p(8502),M=p(515),d=p(9646),R=p(2843),h=p(576);class E{constructor(Ve,Fe,be){this.kind=Ve,this.value=Fe,this.error=be,this.hasValue="N"===Ve}observe(Ve){return L(this,Ve)}do(Ve,Fe,be){const{kind:xt,value:ct,error:Nt}=this;return"N"===xt?Ve?.(ct):"E"===xt?Fe?.(Nt):be?.()}accept(Ve,Fe,be){var xt;return(0,h.m)(null===(xt=Ve)||void 0===xt?void 0:xt.next)?this.observe(Ve):this.do(Ve,Fe,be)}toObservable(){const{kind:Ve,value:Fe,error:be}=this,xt="N"===Ve?(0,d.of)(Fe):"E"===Ve?(0,R._)(()=>be):"C"===Ve?M.E:0;if(!xt)throw new TypeError(`Unexpected notification kind ${Ve}`);return xt}static createNext(Ve){return new E("N",Ve)}static createError(Ve){return new E("E",void 0,Ve)}static createComplete(){return E.completeNotification}}function L(ze,Ve){var Fe,be,xt;const{kind:ct,value:Nt,error:et}=ze;if("string"!=typeof ct)throw new TypeError('Invalid notification, missing "kind"');"N"===ct?null===(Fe=Ve.next)||void 0===Fe||Fe.call(Ve,Nt):"E"===ct?null===(be=Ve.error)||void 0===be||be.call(Ve,et):null===(xt=Ve.complete)||void 0===xt||xt.call(Ve)}E.completeNotification=new E("C");var T=p(4482),N=p(5403),G=p(4004),K=p(262),Q=p(9300),re=p(8421);function ie(ze,Ve,Fe,be){return(0,T.e)((xt,ct)=>{let Nt;Ve&&"function"!=typeof Ve?({duration:Fe,element:Nt,connector:be}=Ve):Nt=Ve;const et=new Map,Ae=Gt=>{et.forEach(Gt),Gt(ct)},rt=Gt=>Ae(zt=>zt.error(Gt));let Qe=0,Ke=!1;const mt=new N.Q(ct,Gt=>{try{const zt=ze(Gt);let Et=et.get(zt);if(!Et){et.set(zt,Et=be?be():new C.x);const ht=function $t(Gt,zt){const Et=new f.y(ht=>{Qe++;const at=zt.subscribe(ht);return()=>{at.unsubscribe(),0==--Qe&&Ke&&mt.unsubscribe()}});return Et.key=Gt,Et}(zt,Et);if(ct.next(ht),Fe){const at=(0,N.x)(Et,()=>{Et.complete(),at?.unsubscribe()},void 0,void 0,()=>et.delete(zt));mt.add((0,re.Xf)(Fe(ht)).subscribe(at))}}Et.next(Nt?Nt(Gt):Gt)}catch(zt){rt(zt)}},()=>Ae(Gt=>Gt.complete()),rt,()=>et.clear(),()=>(Ke=!0,0===Qe));xt.subscribe(mt)})}var ce=p(5577);function ae(ze,Ve){return Ve?Fe=>Fe.pipe(ae((be,xt)=>(0,re.Xf)(ze(be,xt)).pipe((0,G.U)((ct,Nt)=>Ve(be,ct,xt,Nt))))):(0,T.e)((Fe,be)=>{let xt=0,ct=null,Nt=!1;Fe.subscribe((0,N.x)(be,et=>{ct||(ct=(0,N.x)(be,void 0,()=>{ct=null,Nt&&be.complete()}),(0,re.Xf)(ze(et,xt++)).subscribe(ct))},()=>{Nt=!0,!ct&&be.complete()}))})}var le=p(5698),ee=p(4650);const pe={dispatch:!0,useEffectsErrorHandler:!0},S="__@ngrx/effects_create__";function i(ze,Ve){const Fe=ze(),be={...pe,...Ve};return Object.defineProperty(Fe,S,{value:be}),Fe}function r(ze){return Object.getOwnPropertyNames(ze).filter(be=>!(!ze[be]||!ze[be].hasOwnProperty(S))&&ze[be][S].hasOwnProperty("dispatch")).map(be=>({propertyName:be,...ze[be][S]}))}function u(ze){return Object.getPrototypeOf(ze)}const l="__@ngrx/effects__";function D(ze){return(0,t.qC)(n,u)(ze)}function n(ze){return function k(ze){return ze.constructor.hasOwnProperty(l)}(ze)?ze.constructor[l]:[]}function P(ze,Ve,Fe){const be=u(ze).constructor.name,xt=function W(ze){return[D,r].reduce((Fe,be)=>Fe.concat(be(ze)),[])}(ze).map(({propertyName:ct,dispatch:Nt,useEffectsErrorHandler:et})=>{const Ae="function"==typeof ze[ct]?ze[ct]():ze[ct],rt=et?Fe(Ae,Ve):Ae;return!1===Nt?rt.pipe((0,a.l)()):rt.pipe(function w(){return(0,T.e)((ze,Ve)=>{ze.subscribe((0,N.x)(Ve,Fe=>{Ve.next(E.createNext(Fe))},()=>{Ve.next(E.createComplete()),Ve.complete()},Fe=>{Ve.next(E.createError(Fe)),Ve.complete()}))})}()).pipe((0,G.U)(Ke=>({effect:ze[ct],notification:Ke,propertyName:ct,sourceName:be,sourceInstance:ze})))});return(0,e.T)(...xt)}function me(ze,Ve,Fe=10){return ze.pipe((0,K.K)(be=>(Ve&&Ve.handleError(be),Fe<=1?ze:me(ze,Ve,Fe-1))))}let nt=(()=>{class ze extends f.y{constructor(Fe){super(),Fe&&(this.source=Fe)}lift(Fe){const be=new ze;return be.source=this,be.operator=Fe,be}}return ze.\u0275fac=function(Fe){return new(Fe||ze)(ee.LFG(t.Y$))},ze.\u0275prov=ee.Yz7({token:ze,factory:ze.\u0275fac}),ze})();function Pe(...ze){return(0,Q.h)(Ve=>ze.some(Fe=>"string"==typeof Fe?Fe===Ve.type:Fe.type===Ve.type))}function ye(ze){return he(ze,"ngrxOnInitEffects")}function he(ze,Ve){return ze&&Ve in ze&&"function"==typeof ze[Ve]}const de=new ee.OlP("@ngrx/effects Internal Root Guard"),we=new ee.OlP("@ngrx/effects User Provided Effects"),Y=new ee.OlP("@ngrx/effects Internal Root Effects"),j=new ee.OlP("@ngrx/effects Root Effects"),Ce=new ee.OlP("@ngrx/effects Internal Feature Effects"),Se=new ee.OlP("@ngrx/effects Feature Effects"),X=new ee.OlP("@ngrx/effects Effects Error Handler");let Ye=(()=>{class ze extends C.x{constructor(Fe,be){super(),this.errorHandler=Fe,this.effectsErrorHandler=be}addEffects(Fe){this.next(Fe)}toActions(){return this.pipe(ie(u),(0,ce.z)(Fe=>Fe.pipe(ie(Le))),(0,ce.z)(Fe=>{const be=Fe.pipe(ae(ct=>function gt(ze,Ve){return Fe=>{const be=P(Fe,ze,Ve);return function ut(ze){return he(ze,"ngrxOnRunEffects")}(Fe)?Fe.ngrxOnRunEffects(be):be}}(this.errorHandler,this.effectsErrorHandler)(ct)),(0,G.U)(ct=>(function Oe(ze,Ve){if("N"===ze.notification.kind){const Fe=ze.notification.value;!function De(ze){return"function"!=typeof ze&&ze&&ze.type&&"string"==typeof ze.type}(Fe)&&Ve.handleError(new Error(`Effect ${function ue({propertyName:ze,sourceInstance:Ve,sourceName:Fe}){const be="function"==typeof Ve[ze];return`"${Fe}.${String(ze)}${be?"()":""}"`}(ze)} dispatched an invalid action: ${function ve(ze){try{return JSON.stringify(ze)}catch{return ze}}(Fe)}`))}}(ct,this.errorHandler),ct.notification)),(0,Q.h)(ct=>"N"===ct.kind&&null!=ct.value),function ne(){return(0,T.e)((ze,Ve)=>{ze.subscribe((0,N.x)(Ve,Fe=>L(Fe,Ve)))})}()),xt=Fe.pipe((0,le.q)(1),(0,Q.h)(ye),(0,G.U)(ct=>ct.ngrxOnInitEffects()));return(0,e.T)(be,xt)}))}}return ze.\u0275fac=function(Fe){return new(Fe||ze)(ee.LFG(ee.qLn),ee.LFG(X))},ze.\u0275prov=ee.Yz7({token:ze,factory:ze.\u0275fac}),ze})();function Le(ze){return function $(ze){return he(ze,"ngrxOnIdentifyEffects")}(ze)?ze.ngrxOnIdentifyEffects():""}let Wt=(()=>{class ze{constructor(Fe,be){this.effectSources=Fe,this.store=be,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return ze.\u0275fac=function(Fe){return new(Fe||ze)(ee.LFG(Ye),ee.LFG(t.yh))},ze.\u0275prov=ee.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const Rt="@ngrx/effects/init";(0,t.PH)(Rt);let hi=(()=>{class ze{constructor(Fe,be,xt,ct,Nt,et,Ae){this.sources=Fe,be.start(),ct.forEach(rt=>Fe.addEffects(rt)),xt.dispatch({type:Rt})}addEffects(Fe){this.sources.addEffects(Fe)}}return ze.\u0275fac=function(Fe){return new(Fe||ze)(ee.LFG(Ye),ee.LFG(Wt),ee.LFG(t.yh),ee.LFG(j),ee.LFG(t.cr,8),ee.LFG(t.CK,8),ee.LFG(de,8))},ze.\u0275mod=ee.oAB({type:ze}),ze.\u0275inj=ee.cJS({}),ze})(),yt=(()=>{class ze{constructor(Fe,be,xt,ct){be.forEach(Nt=>Nt.forEach(et=>Fe.addEffects(et)))}}return ze.\u0275fac=function(Fe){return new(Fe||ze)(ee.LFG(hi),ee.LFG(Se),ee.LFG(t.cr,8),ee.LFG(t.CK,8))},ze.\u0275mod=ee.oAB({type:ze}),ze.\u0275inj=ee.cJS({}),ze})(),Pt=(()=>{class ze{static forFeature(Fe=[]){return{ngModule:yt,providers:[Fe,{provide:Ce,multi:!0,useValue:Fe},{provide:we,multi:!0,useValue:[]},{provide:Se,multi:!0,useFactory:pt,deps:[ee.zs3,Ce,we]}]}}static forRoot(Fe=[]){return{ngModule:hi,providers:[{provide:X,useValue:me},Wt,Ye,nt,Fe,{provide:Y,useValue:[Fe]},{provide:de,useFactory:Ct,deps:[[Wt,new ee.FiY,new ee.tp0],[Y,new ee.PiD]]},{provide:we,multi:!0,useValue:[]},{provide:j,useFactory:pt,deps:[ee.zs3,Y,we]}]}}}return ze.\u0275fac=function(Fe){return new(Fe||ze)},ze.\u0275mod=ee.oAB({type:ze}),ze.\u0275inj=ee.cJS({}),ze})();function pt(ze,Ve,Fe){const be=[];for(const xt of Ve)be.push(...xt);for(const xt of Fe)be.push(...xt);return function vt(ze,Ve){return Ve.map(Fe=>ze.get(Fe))}(ze,be)}function Ct(ze,Ve){if((1!==Ve.length||0!==Ve[0].length)&&ze)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},825:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4650),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9653),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9751),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6451),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(233),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(4707),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3099),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4351),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(2722),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(5684),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(5363),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1365),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5026);class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(ke){const J={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},p="function"==typeof ke?ke():ke,f=Object.assign({},J,{features:p.features||!!p.logOnly&&{pause:!0,export:!0,test:!0}||J.features},p);if(f.maxAge&&f.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${f.maxAge}`);return f}const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(J,p){if(this.action=J,this.timestamp=p,this.type=PERFORM_ACTION,typeof J.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(J){this.timestamp=J,this.type=RESET}}class Rollback{constructor(J){this.timestamp=J,this.type=ROLLBACK}}class Commit{constructor(J){this.timestamp=J,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(J){this.id=J,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(J,p,t=!0){this.start=J,this.end=p,this.active=t,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(J){this.index=J,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(J){this.actionId=J,this.type=JUMP_TO_ACTION}}class ImportState{constructor(J){this.nextLiftedState=J,this.type=IMPORT_STATE}}class LockChanges{constructor(J){this.status=J,this.type=LOCK_CHANGES}}class PauseRecording{constructor(J){this.status=J,this.type=PAUSE_RECORDING}}function difference(ke,J){return ke.filter(p=>J.indexOf(p)<0)}function unliftState(ke){const{computedStates:J,currentStateIndex:p}=ke;if(p>=J.length){const{state:e}=J[J.length-1];return e}const{state:t}=J[p];return t}function unliftAction(ke){return ke.actionsById[ke.nextActionId-1]}function liftAction(ke){return new PerformAction(ke,+Date.now())}function sanitizeActions(ke,J){return Object.keys(J).reduce((p,t)=>{const e=Number(t);return p[e]=sanitizeAction(ke,J[e],e),p},{})}function sanitizeAction(ke,J,p){return{...J,action:ke(J.action,p)}}function sanitizeStates(ke,J){return J.map((p,t)=>({state:sanitizeState(ke,p.state,t),error:p.error}))}function sanitizeState(ke,J,p){return ke(J,p)}function shouldFilterActions(ke){return ke.predicate||ke.actionsSafelist||ke.actionsBlocklist}function filterLiftedState(ke,J,p,t){const e=[],f={},C=[];return ke.stagedActionIds.forEach((a,M)=>{const d=ke.actionsById[a];!d||M&&isActionFiltered(ke.computedStates[M],d,J,p,t)||(f[a]=d,e.push(a),C.push(ke.computedStates[M]))}),{...ke,stagedActionIds:e,actionsById:f,computedStates:C}}function isActionFiltered(ke,J,p,t,e){const f=p&&!p(ke,J.action),C=t&&!J.action.type.match(t.map(M=>escapeRegExp(M)).join("|")),a=e&&J.action.type.match(e.map(M=>escapeRegExp(M)).join("|"));return f||C||a}function escapeRegExp(ke){return ke.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(ke,J,p,t,e){if(t)return{state:p,error:"Interrupted by an error up the chain"};let C,f=p;try{f=ke(p,J)}catch(a){C=a.toString(),e.handleError(a)}return{state:f,error:C}}function recomputeStates(ke,J,p,t,e,f,C,a,M){if(J>=ke.length&&ke.length===f.length)return ke;const d=ke.slice(0,J),R=f.length-(M?1:0);for(let h=J;h<R;h++){const I=f[h],E=e[I].action,L=d[h-1],T=L?L.state:t,N=L?L.error:void 0,G=C.indexOf(I)>-1?L:computeNextEntry(p,E,T,N,a);d.push(G)}return M&&d.push(ke[ke.length-1]),d}function liftInitialState(ke,J){return{monitorState:J(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:ke,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(ke,J,p,t,e={}){return f=>(C,a)=>{let{monitorState:M,actionsById:d,nextActionId:R,stagedActionIds:h,skippedActionIds:I,committedState:E,currentStateIndex:L,computedStates:T,isLocked:N,isPaused:w}=C||J;function G(re){let ie=re,ce=h.slice(1,ie+1);for(let ae=0;ae<ce.length;ae++){if(T[ae+1].error){ie=ae,ce=h.slice(1,ie+1);break}delete d[ce[ae]]}I=I.filter(ae=>-1===ce.indexOf(ae)),h=[0,...h.slice(ie+1)],E=T[ie].state,T=T.slice(ie),L=L>ie?L-ie:0}function K(){d={0:liftAction(INIT_ACTION)},R=1,h=[0],I=[],E=T[L].state,L=0,T=[]}C||(d=Object.create(d));let Q=0;switch(a.type){case LOCK_CHANGES:N=a.status,Q=1/0;break;case PAUSE_RECORDING:w=a.status,w?(h=[...h,R],d[R]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),R++,Q=h.length-1,T=T.concat(T[T.length-1]),L===h.length-2&&L++,Q=1/0):K();break;case RESET:d={0:liftAction(INIT_ACTION)},R=1,h=[0],I=[],E=ke,L=0,T=[];break;case COMMIT:K();break;case ROLLBACK:d={0:liftAction(INIT_ACTION)},R=1,h=[0],I=[],L=0,T=[];break;case TOGGLE_ACTION:{const{id:re}=a;I=-1===I.indexOf(re)?[re,...I]:I.filter(ce=>ce!==re),Q=h.indexOf(re);break}case SET_ACTIONS_ACTIVE:{const{start:re,end:ie,active:ce}=a,ae=[];for(let ne=re;ne<ie;ne++)ae.push(ne);I=ce?difference(I,ae):[...I,...ae],Q=h.indexOf(re);break}case JUMP_TO_STATE:L=a.index,Q=1/0;break;case JUMP_TO_ACTION:{const re=h.indexOf(a.actionId);-1!==re&&(L=re),Q=1/0;break}case SWEEP:h=difference(h,I),I=[],L=Math.min(L,h.length-1);break;case PERFORM_ACTION:{if(N)return C||J;if(w||C&&isActionFiltered(C.computedStates[L],a,e.predicate,e.actionsSafelist,e.actionsBlocklist)){const ie=T[T.length-1];T=[...T.slice(0,-1),computeNextEntry(f,a.action,ie.state,ie.error,p)],Q=1/0;break}e.maxAge&&h.length===e.maxAge&&G(1),L===h.length-1&&L++;const re=R++;d[re]=a,h=[...h,re],Q=h.length-1;break}case IMPORT_STATE:({monitorState:M,actionsById:d,nextActionId:R,stagedActionIds:h,skippedActionIds:I,committedState:E,currentStateIndex:L,computedStates:T,isLocked:N,isPaused:w}=a.nextLiftedState);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg:Q=0,e.maxAge&&h.length>e.maxAge&&(T=recomputeStates(T,Q,f,E,d,h,I,p,w),G(h.length-e.maxAge),Q=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(T.filter(ie=>ie.error).length>0)Q=0,e.maxAge&&h.length>e.maxAge&&(T=recomputeStates(T,Q,f,E,d,h,I,p,w),G(h.length-e.maxAge),Q=1/0);else{if(!w&&!N){L===h.length-1&&L++;const ie=R++;d[ie]=new PerformAction(a,+Date.now()),h=[...h,ie],Q=h.length-1,T=recomputeStates(T,Q,f,E,d,h,I,p,w)}T=T.map(ie=>({...ie,state:f(ie.state,RECOMPUTE_ACTION)})),L=h.length-1,e.maxAge&&h.length>e.maxAge&&G(h.length-e.maxAge),Q=1/0}break;default:Q=1/0}return T=recomputeStates(T,Q,f,E,d,h,I,p,w),M=t(M,a),{monitorState:M,actionsById:d,nextActionId:R,stagedActionIds:h,skippedActionIds:I,committedState:E,currentStateIndex:L,computedStates:T,isLocked:N,isPaused:w}}}let DevtoolsDispatcher=(()=>{class ke extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return ke.\u0275fac=function(){let J;return function(t){return(J||(J=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(ke)))(t||ke)}}(),ke.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Redux Devtools Extension");let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(ke,J,p){this.config=J,this.dispatcher=p,this.devtoolsExtension=ke,this.createActionStreams()}notify(ke,J){if(this.devtoolsExtension)if(ke.type===PERFORM_ACTION){if(J.isLocked||J.isPaused)return;const p=unliftState(J);if(shouldFilterActions(this.config)&&isActionFiltered(p,ke,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const t=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,p,J.currentStateIndex):p,e=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,ke,J.nextActionId):ke;this.sendToReduxDevtools(()=>this.extensionConnection.send(e,t))}else{const p={...J,stagedActionIds:J.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,J.actionsById):J.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,J.computedStates):J.computedStates};this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,p,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(ke=>{const J=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=J,J.init(),J.subscribe(p=>ke.next(p)),J.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const ke=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),J=ke.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.START)),p=ke.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.STOP)),t=ke.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(a=>this.unwrapAction(a.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(a=>a.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(M=>M.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.V)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.b)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(()=>a),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(a)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(a))),f=ke.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(a=>this.unwrapAction(a.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),C=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p));this.start$=J.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>f)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>C))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(ke){const J={name:ke.name,features:ke.features,serialize:ke.serialize,autoPause:ke.autoPause??!1};return!1!==ke.maxAge&&(J.maxAge=ke.maxAge),J}sendToReduxDevtools(ke){try{ke()}catch(J){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",J)}}}return DevtoolsExtension.\u0275fac=function ke(J){return new(J||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})(),StoreDevtools=(()=>{class ke{constructor(p,t,e,f,C,a,M,d){const R=liftInitialState(M,d.monitor),h=liftReducerWith(M,R,a,d.monitor,d),I=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(t.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),f.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),p,f.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),E=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(h)),L=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),T=I.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(E),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:K},[Q,re])=>{let ie=re(K,Q);return Q.type!==PERFORM_ACTION&&shouldFilterActions(d)&&(ie=filterLiftedState(ie,d.predicate,d.actionsSafelist,d.actionsBlocklist)),f.notify(Q,ie),{state:ie,action:Q}},{state:R,action:null})).subscribe(({state:K,action:Q})=>{L.next(K),Q.type===PERFORM_ACTION&&C.next(Q.action)}),N=f.start$.subscribe(()=>{this.refresh()}),w=L.asObservable(),G=w.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=N,this.stateSubscription=T,this.dispatcher=p,this.liftedState=w,this.state=G}dispatch(p){this.dispatcher.next(p)}next(p){this.dispatcher.next(p)}error(p){}complete(){}performAction(p){this.dispatch(new PerformAction(p,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(p){this.dispatch(new ToggleAction(p))}jumpToAction(p){this.dispatch(new JumpToAction(p))}jumpToState(p){this.dispatch(new JumpToState(p))}importState(p){this.dispatch(new ImportState(p))}lockChanges(p){this.dispatch(new LockChanges(p))}pauseRecording(p){this.dispatch(new PauseRecording(p))}}return ke.\u0275fac=function(p){return new(p||ke)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.n$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.qLn),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG))},ke.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(ke,J){return Boolean(ke)||J.monitor!==noMonitor}function createReduxDevtoolsExtension(){const ke="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&typeof window[ke]<"u"?window[ke]:null}function createStateObservable(ke){return ke.state}let StoreDevtoolsModule=(()=>{class ke{static instrument(p={}){return{ngModule:ke,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:p},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.FR,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.mK,useExisting:DevtoolsDispatcher}]}}}return ke.\u0275fac=function(p){return new(p||ke)},ke.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:ke}),ke.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),ke})()},9653:(ke,J,p)=>{"use strict";p.d(J,{UO:()=>le,qg:()=>ne,Y6:()=>i,mK:()=>ye,n$:()=>Ee,Y$:()=>Y,FR:()=>Ce,yh:()=>Le,CK:()=>bt,Aw:()=>Vt,cr:()=>Xe,wb:()=>he,qC:()=>$,PH:()=>N,ZF:()=>$t,Lq:()=>Ti,P1:()=>Qe,on:()=>si,Ky:()=>w});var t=p(4650),e=p(1135),f=p(9751),C=p(7579),a=p(233),M=p(5363),d=p(1365),R=p(5026),h=p(4004),E=p(1884);const L={};function N(ot,Bt){if(L[ot]=(L[ot]||0)+1,"function"==typeof Bt)return K(ot,(...fi)=>({...Bt(...fi),type:ot}));switch(Bt?Bt._as:"empty"){case"empty":return K(ot,()=>({type:ot}));case"props":return K(ot,fi=>({...fi,type:ot}));default:throw new Error("Unexpected config.")}}function w(){return{_as:"props",_p:void 0}}function K(ot,Bt){return Object.defineProperty(Bt,"type",{value:ot,writable:!1})}const ne="@ngrx/store/init";let le=(()=>{class ot extends e.X{constructor(){super({type:ne})}next(Xt){if("function"==typeof Xt)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 Xt>"u")throw new TypeError("Actions must be objects");if(typeof Xt.type>"u")throw new TypeError("Actions must have a type property");super.next(Xt)}complete(){}ngOnDestroy(){super.complete()}}return ot.\u0275fac=function(Xt){return new(Xt||ot)},ot.\u0275prov=t.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const ee=[le],pe=new t.OlP("@ngrx/store Internal Root Guard"),S=new t.OlP("@ngrx/store Internal Initial State"),i=new t.OlP("@ngrx/store Initial State"),r=new t.OlP("@ngrx/store Reducer Factory"),u=new t.OlP("@ngrx/store Internal Reducer Factory Provider"),l=new t.OlP("@ngrx/store Initial Reducers"),y=new t.OlP("@ngrx/store Internal Initial Reducers"),D=new t.OlP("@ngrx/store Store Features"),k=new t.OlP("@ngrx/store Internal Store Reducers"),b=new t.OlP("@ngrx/store Internal Feature Reducers"),n=new t.OlP("@ngrx/store Internal Feature Configs"),_=new t.OlP("@ngrx/store Internal Store Features"),W=new t.OlP("@ngrx/store Internal Feature Reducers Token"),P=new t.OlP("@ngrx/store Feature Reducers"),U=new t.OlP("@ngrx/store User Provided Meta Reducers"),me=new t.OlP("@ngrx/store Meta Reducers"),nt=new t.OlP("@ngrx/store Internal Resolved Meta Reducers"),Pe=new t.OlP("@ngrx/store User Runtime Checks Config"),Oe=new t.OlP("@ngrx/store Internal User Runtime Checks Config"),De=new t.OlP("@ngrx/store Internal Runtime Checks"),ue=new t.OlP("@ngrx/store Check if Action types are unique");function ve(ot,Bt={}){const Xt=Object.keys(ot),fi={};for(let Ri=0;Ri<Xt.length;Ri++){const Dn=Xt[Ri];"function"==typeof ot[Dn]&&(fi[Dn]=ot[Dn])}const Li=Object.keys(fi);return function(Dn,Zn){Dn=void 0===Dn?Bt:Dn;let Nn=!1;const Qn={};for(let An=0;An<Li.length;An++){const Si=Li[An],Mn=Dn[Si],ha=(0,fi[Si])(Mn,Zn);Qn[Si]=ha,Nn=Nn||ha!==Mn}return Nn?Qn:Dn}}function $(...ot){return function(Bt){if(0===ot.length)return Bt;const Xt=ot[ot.length-1];return ot.slice(0,-1).reduceRight((Li,Ri)=>Ri(Li),Xt(Bt))}}function Ge(ot,Bt){return Array.isArray(Bt)&&Bt.length>0&&(ot=$.apply(null,[...Bt,ot])),(Xt,fi)=>{const Li=ot(Xt);return(Ri,Dn)=>Li(Ri=void 0===Ri?fi:Ri,Dn)}}class Ee extends f.y{}class ye extends le{}const he="@ngrx/store/update-reducers";let de=(()=>{class ot extends e.X{constructor(Xt,fi,Li,Ri){super(Ri(Li,fi)),this.dispatcher=Xt,this.initialState=fi,this.reducers=Li,this.reducerFactory=Ri}get currentReducers(){return this.reducers}addFeature(Xt){this.addFeatures([Xt])}addFeatures(Xt){const fi=Xt.reduce((Li,{reducers:Ri,reducerFactory:Dn,metaReducers:Zn,initialState:Nn,key:Qn})=>{const An="function"==typeof Ri?function ut(ot){const Bt=Array.isArray(ot)&&ot.length>0?$(...ot):Xt=>Xt;return(Xt,fi)=>(Xt=Bt(Xt),(Li,Ri)=>Xt(Li=void 0===Li?fi:Li,Ri))}(Zn)(Ri,Nn):Ge(Dn,Zn)(Ri,Nn);return Li[Qn]=An,Li},{});this.addReducers(fi)}removeFeature(Xt){this.removeFeatures([Xt])}removeFeatures(Xt){this.removeReducers(Xt.map(fi=>fi.key))}addReducer(Xt,fi){this.addReducers({[Xt]:fi})}addReducers(Xt){this.reducers={...this.reducers,...Xt},this.updateReducers(Object.keys(Xt))}removeReducer(Xt){this.removeReducers([Xt])}removeReducers(Xt){Xt.forEach(fi=>{this.reducers=function Ie(ot,Bt){return Object.keys(ot).filter(Xt=>Xt!==Bt).reduce((Xt,fi)=>Object.assign(Xt,{[fi]:ot[fi]}),{})}(this.reducers,fi)}),this.updateReducers(Xt)}updateReducers(Xt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:he,features:Xt})}ngOnDestroy(){this.complete()}}return ot.\u0275fac=function(Xt){return new(Xt||ot)(t.LFG(ye),t.LFG(i),t.LFG(l),t.LFG(r))},ot.\u0275prov=t.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const we=[de,{provide:Ee,useExisting:de},{provide:ye,useExisting:le}];let Y=(()=>{class ot extends C.x{ngOnDestroy(){this.complete()}}return ot.\u0275fac=function(){let Bt;return function(fi){return(Bt||(Bt=t.n5z(ot)))(fi||ot)}}(),ot.\u0275prov=t.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const j=[Y];class Ce extends f.y{}let Se=(()=>{class ot extends e.X{constructor(Xt,fi,Li,Ri){super(Ri);const Qn=Xt.pipe((0,M.Q)(a.N)).pipe((0,d.M)(fi)).pipe((0,R.R)(X,{state:Ri}));this.stateSubscription=Qn.subscribe(({state:An,action:Si})=>{this.next(An),Li.next(Si)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return ot.INIT=ne,ot.\u0275fac=function(Xt){return new(Xt||ot)(t.LFG(le),t.LFG(Ee),t.LFG(Y),t.LFG(i))},ot.\u0275prov=t.Yz7({token:ot,factory:ot.\u0275fac}),ot})();function X(ot={state:void 0},[Bt,Xt]){const{state:fi}=ot;return{state:Xt(fi,Bt),action:Bt}}const Ye=[Se,{provide:Ce,useExisting:Se}];let Le=(()=>{class ot extends f.y{constructor(Xt,fi,Li){super(),this.actionsObserver=fi,this.reducerManager=Li,this.source=Xt}select(Xt,...fi){return Wt.call(null,Xt,...fi)(this)}lift(Xt){const fi=new ot(this,this.actionsObserver,this.reducerManager);return fi.operator=Xt,fi}dispatch(Xt){this.actionsObserver.next(Xt)}next(Xt){this.actionsObserver.next(Xt)}error(Xt){this.actionsObserver.error(Xt)}complete(){this.actionsObserver.complete()}addReducer(Xt,fi){this.reducerManager.addReducer(Xt,fi)}removeReducer(Xt){this.reducerManager.removeReducer(Xt)}}return ot.\u0275fac=function(Xt){return new(Xt||ot)(t.LFG(Ce),t.LFG(le),t.LFG(de))},ot.\u0275prov=t.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const gt=[Le];function Wt(ot,Bt,...Xt){return function(Li){let Ri;if("string"==typeof ot){const Dn=[Bt,...Xt].filter(Boolean);Ri=Li.pipe(function I(...ot){const Bt=ot.length;if(0===Bt)throw new Error("list of properties cannot be empty.");return(0,h.U)(Xt=>{let fi=Xt;for(let Li=0;Li<Bt;Li++){const Ri=fi?.[ot[Li]];if(!(typeof Ri<"u"))return;fi=Ri}return fi})}(ot,...Dn))}else{if("function"!=typeof ot)throw new TypeError(`Unexpected type '${typeof ot}' in select operator, expected 'string' or 'function'`);Ri=Li.pipe((0,h.U)(Dn=>ot(Dn,Bt)))}return Ri.pipe((0,E.x)())}}const Rt="https://ngrx.io/guide/store/configuration/runtime-checks";function jt(ot){return void 0===ot}function hi(ot){return null===ot}function yt(ot){return Array.isArray(ot)}function Ct(ot){return"object"==typeof ot&&null!==ot}function ze(ot){return"function"==typeof ot}function Nt(ot,Bt){return ot===Bt}function et(ot,Bt,Xt){for(let fi=0;fi<ot.length;fi++)if(!Xt(ot[fi],Bt[fi]))return!0;return!1}function rt(ot,Bt=Nt,Xt=Nt){let Ri,fi=null,Li=null;return{memoized:function Qn(){if(void 0!==Ri)return Ri.result;if(!fi)return Li=ot.apply(null,arguments),fi=arguments,Li;if(!et(arguments,fi,Bt))return Li;const An=ot.apply(null,arguments);return fi=arguments,Xt(Li,An)?Li:(Li=An,An)},reset:function Dn(){fi=null,Li=null},setResult:function Zn(An){Ri={result:An}},clearResult:function Nn(){Ri=void 0}}}function Qe(...ot){return function mt(ot,Bt={stateFn:Ke}){return function(...Xt){let fi=Xt;if(Array.isArray(fi[0])){const[An,...Si]=fi;fi=[...An,...Si]}const Li=fi.slice(0,fi.length-1),Ri=fi[fi.length-1],Dn=Li.filter(An=>An.release&&"function"==typeof An.release),Zn=ot(function(...An){return Ri.apply(null,An)}),Nn=rt(function(An,Si){return Bt.stateFn.apply(null,[An,Li,Si,Zn])});return Object.assign(Nn.memoized,{release:function Qn(){Nn.reset(),Zn.reset(),Dn.forEach(An=>An.release())},projector:Zn.memoized,setResult:Nn.setResult,clearResult:Nn.clearResult})}}(rt)(...ot)}function Ke(ot,Bt,Xt,fi){if(void 0===Xt){const Ri=Bt.map(Dn=>Dn(ot));return fi.memoized.apply(null,Ri)}const Li=Bt.map(Ri=>Ri(ot,Xt));return fi.memoized.apply(null,[...Li,Xt])}function $t(ot){return Qe(Bt=>{const Xt=Bt[ot];return(0,t.X6Q)()&&!(ot in Bt)&&console.warn(`@ngrx/store: The feature name "${ot}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${ot}', ...) or StoreModule.forFeature('${ot}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),Xt},Bt=>Bt)}function at(ot){Object.freeze(ot);const Bt=ze(ot);return Object.getOwnPropertyNames(ot).forEach(Xt=>{if(!Xt.startsWith("\u0275")&&function Fe(ot,Bt){return Object.prototype.hasOwnProperty.call(ot,Bt)}(ot,Xt)&&(!Bt||"caller"!==Xt&&"callee"!==Xt&&"arguments"!==Xt)){const fi=ot[Xt];(Ct(fi)||ze(fi))&&!Object.isFrozen(fi)&&at(fi)}}),ot}function Ut(ot,Bt=[]){return(jt(ot)||hi(ot))&&0===Bt.length?{path:["root"],value:ot}:Object.keys(ot).reduce((fi,Li)=>{if(fi)return fi;const Ri=ot[Li];return function Ve(ot){return ze(ot)&&ot.hasOwnProperty("\u0275cmp")}(Ri)?fi:!(jt(Ri)||hi(Ri)||function vt(ot){return"number"==typeof ot}(Ri)||function pt(ot){return"boolean"==typeof ot}(Ri)||function Pt(ot){return"string"==typeof ot}(Ri)||yt(Ri))&&(function dt(ot){if(!function At(ot){return Ct(ot)&&!yt(ot)}(ot))return!1;const Bt=Object.getPrototypeOf(ot);return Bt===Object.prototype||null===Bt}(Ri)?Ut(Ri,[...Bt,Li]):{path:[...Bt,Li],value:Ri})},!1)}function qt(ot,Bt){if(!1===ot)return;const Xt=ot.path.join("."),fi=new Error(`Detected unserializable ${Bt} at "${Xt}". ${Rt}#strict${Bt}serializability`);throw fi.value=ot.value,fi.unserializablePath=Xt,fi}function Ii(ot){return(0,t.X6Q)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...ot}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Ei({strictActionSerializability:ot,strictStateSerializability:Bt}){return Xt=>ot||Bt?function ei(ot,Bt){return function(Xt,fi){Bt.action(fi)&&qt(Ut(fi),"action");const Li=ot(Xt,fi);return Bt.state()&&qt(Ut(Li),"state"),Li}}(Xt,{action:fi=>ot&&!Be(fi),state:()=>Bt}):Xt}function Vi({strictActionImmutability:ot,strictStateImmutability:Bt}){return Xt=>ot||Bt?function ht(ot,Bt){return function(Xt,fi){const Li=Bt.action(fi)?at(fi):fi,Ri=ot(Xt,Li);return Bt.state()?at(Ri):Ri}}(Xt,{action:fi=>ot&&!Be(fi),state:()=>Bt}):Xt}function Be(ot){return ot.type.startsWith("@ngrx")}function kt({strictActionWithinNgZone:ot}){return Bt=>ot?function Pi(ot,Bt){return function(Xt,fi){if(Bt.action(fi)&&!t.R0b.isInAngularZone())throw new Error(`Action '${fi.type}' running outside NgZone. ${Rt}#strictactionwithinngzone`);return ot(Xt,fi)}}(Bt,{action:Xt=>ot&&!Be(Xt)}):Bt}function _e(ot){return[{provide:Oe,useValue:ot},{provide:Pe,useFactory:_t,deps:[Oe]},{provide:De,deps:[Pe],useFactory:Ii},{provide:me,multi:!0,deps:[De],useFactory:Vi},{provide:me,multi:!0,deps:[De],useFactory:Ei},{provide:me,multi:!0,deps:[De],useFactory:kt}]}function Je(){return[{provide:ue,multi:!0,deps:[De],useFactory:se}]}function _t(ot){return ot}function se(ot){if(!ot.strictActionTypeUniqueness)return;const Bt=Object.entries(L).filter(([,Xt])=>Xt>1).map(([Xt])=>Xt);if(Bt.length)throw new Error(`Action types are registered more than once, ${Bt.map(Xt=>`"${Xt}"`).join(", ")}. ${Rt}#strictactiontypeuniqueness`)}let Xe=(()=>{class ot{constructor(Xt,fi,Li,Ri,Dn,Zn){}}return ot.\u0275fac=function(Xt){return new(Xt||ot)(t.LFG(le),t.LFG(Ee),t.LFG(Y),t.LFG(Le),t.LFG(pe,8),t.LFG(ue,8))},ot.\u0275mod=t.oAB({type:ot}),ot.\u0275inj=t.cJS({}),ot})(),bt=(()=>{class ot{constructor(Xt,fi,Li,Ri,Dn){this.features=Xt,this.featureReducers=fi,this.reducerManager=Li;const Zn=Xt.map((Nn,Qn)=>{const Si=fi.shift()[Qn];return{...Nn,reducers:Si,initialState:Ji(Nn.initialState)}});Li.addFeatures(Zn)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return ot.\u0275fac=function(Xt){return new(Xt||ot)(t.LFG(_),t.LFG(P),t.LFG(de),t.LFG(Xe),t.LFG(ue,8))},ot.\u0275mod=t.oAB({type:ot}),ot.\u0275inj=t.cJS({}),ot})(),Vt=(()=>{class ot{static forRoot(Xt,fi={}){return{ngModule:Xe,providers:[{provide:pe,useFactory:_n,deps:[[Le,new t.FiY,new t.tp0]]},{provide:S,useValue:fi.initialState},{provide:i,useFactory:Ji,deps:[S]},{provide:y,useValue:Xt},{provide:k,useExisting:Xt instanceof t.OlP?Xt:y},{provide:l,deps:[t.zs3,y,[new t.tBr(k)]],useFactory:mi},{provide:U,useValue:fi.metaReducers?fi.metaReducers:[]},{provide:nt,deps:[me,U],useFactory:an},{provide:u,useValue:fi.reducerFactory?fi.reducerFactory:ve},{provide:r,deps:[u,nt],useFactory:Ge},ee,we,j,Ye,gt,_e(fi.runtimeChecks),Je()]}}static forFeature(Xt,fi,Li={}){return{ngModule:bt,providers:[{provide:n,multi:!0,useValue:Xt instanceof Object?{}:Li},{provide:D,multi:!0,useValue:{key:Xt instanceof Object?Xt.name:Xt,reducerFactory:Li instanceof t.OlP||!Li.reducerFactory?ve:Li.reducerFactory,metaReducers:Li instanceof t.OlP||!Li.metaReducers?[]:Li.metaReducers,initialState:Li instanceof t.OlP||!Li.initialState?void 0:Li.initialState}},{provide:_,deps:[t.zs3,n,D],useFactory:Hi},{provide:b,multi:!0,useValue:Xt instanceof Object?Xt.reducer:fi},{provide:W,multi:!0,useExisting:fi instanceof t.OlP?fi:b},{provide:P,multi:!0,deps:[t.zs3,b,[new t.tBr(W)]],useFactory:Ui},Je()]}}}return ot.\u0275fac=function(Xt){return new(Xt||ot)},ot.\u0275mod=t.oAB({type:ot}),ot.\u0275inj=t.cJS({}),ot})();function mi(ot,Bt){return Bt instanceof t.OlP?ot.get(Bt):Bt}function Hi(ot,Bt,Xt){return Xt.map((fi,Li)=>{if(Bt[Li]instanceof t.OlP){const Ri=ot.get(Bt[Li]);return{key:fi.key,reducerFactory:Ri.reducerFactory?Ri.reducerFactory:ve,metaReducers:Ri.metaReducers?Ri.metaReducers:[],initialState:Ri.initialState}}return fi})}function Ui(ot,Bt){return Bt.map(fi=>fi instanceof t.OlP?ot.get(fi):fi)}function Ji(ot){return"function"==typeof ot?ot():ot}function an(ot,Bt){return ot.concat(Bt)}function _n(ot){if(ot)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function si(...ot){return{reducer:ot.pop(),types:ot.map(fi=>fi.type)}}function Ti(ot,...Bt){const Xt=new Map;for(const fi of Bt)for(const Li of fi.types){const Ri=Xt.get(Li);Xt.set(Li,Ri?(Zn,Nn)=>fi.reducer(Ri(Zn,Nn),Nn):fi.reducer)}return function(fi=ot,Li){const Ri=Xt.get(Li.type);return Ri?Ri(fi,Li):fi}}},6883:(ke,J,p)=>{"use strict";p.d(J,{H5:()=>_4,K$:()=>Tu,a4:()=>_f});var t=p(4650),e=p(6895),f=p(655),C=p(4080),a=p(4968),M=p(8372),d=p(7340);function R(){}function h(g){return null==g?R:function(){return this.querySelector(g)}}function E(g){return"object"==typeof g&&"length"in g?g:Array.from(g)}function L(){return[]}function T(g){return null==g?L:function(){return this.querySelectorAll(g)}}function G(g){return function(){return this.matches(g)}}function K(g){return function(O){return O.matches(g)}}var Q=Array.prototype.find;function ie(){return this.firstElementChild}var ae=Array.prototype.filter;function ne(){return this.children}function S(g){return new Array(g.length)}function r(g,O){this.ownerDocument=g.ownerDocument,this.namespaceURI=g.namespaceURI,this._next=null,this._parent=g,this.__data__=O}function u(g){return function(){return g}}function l(g,O,o,x,B,q){for(var it,Te=0,Yt=O.length,Zt=q.length;Te<Zt;++Te)(it=O[Te])?(it.__data__=q[Te],x[Te]=it):o[Te]=new r(g,q[Te]);for(;Te<Yt;++Te)(it=O[Te])&&(B[Te]=it)}function y(g,O,o,x,B,q,Te){var it,Yt,Ci,Zt=new Map,oi=O.length,pi=q.length,_i=new Array(oi);for(it=0;it<oi;++it)(Yt=O[it])&&(_i[it]=Ci=Te.call(Yt,Yt.__data__,it,O)+"",Zt.has(Ci)?B[it]=Yt:Zt.set(Ci,Yt));for(it=0;it<pi;++it)Ci=Te.call(g,q[it],it,q)+"",(Yt=Zt.get(Ci))?(x[it]=Yt,Yt.__data__=q[it],Zt.delete(Ci)):o[it]=new r(g,q[it]);for(it=0;it<oi;++it)(Yt=O[it])&&Zt.get(_i[it])===Yt&&(B[it]=Yt)}function D(g){return g.__data__}function U(g,O){return g<O?-1:g>O?1:g>=O?0:NaN}r.prototype={constructor:r,appendChild:function(g){return this._parent.insertBefore(g,this._next)},insertBefore:function(g,O){return this._parent.insertBefore(g,O)},querySelector:function(g){return this._parent.querySelector(g)},querySelectorAll:function(g){return this._parent.querySelectorAll(g)}};var ve="http://www.w3.org/1999/xhtml";const Ie={svg:"http://www.w3.org/2000/svg",xhtml:ve,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $(g){var O=g+="",o=O.indexOf(":");return o>=0&&"xmlns"!==(O=g.slice(0,o))&&(g=g.slice(o+1)),Ie.hasOwnProperty(O)?{space:Ie[O],local:g}:g}function Ge(g){return function(){this.removeAttribute(g)}}function ut(g){return function(){this.removeAttributeNS(g.space,g.local)}}function Ee(g,O){return function(){this.setAttribute(g,O)}}function ye(g,O){return function(){this.setAttributeNS(g.space,g.local,O)}}function he(g,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttribute(g):this.setAttribute(g,o)}}function de(g,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttributeNS(g.space,g.local):this.setAttributeNS(g.space,g.local,o)}}function Y(g){return g.ownerDocument&&g.ownerDocument.defaultView||g.document&&g||g.defaultView}function j(g){return function(){this.style.removeProperty(g)}}function Ce(g,O,o){return function(){this.style.setProperty(g,O,o)}}function Se(g,O,o){return function(){var x=O.apply(this,arguments);null==x?this.style.removeProperty(g):this.style.setProperty(g,x,o)}}function Ye(g,O){return g.style.getPropertyValue(O)||Y(g).getComputedStyle(g,null).getPropertyValue(O)}function Le(g){return function(){delete this[g]}}function gt(g,O){return function(){this[g]=O}}function Wt(g,O){return function(){var o=O.apply(this,arguments);null==o?delete this[g]:this[g]=o}}function jt(g){return g.trim().split(/^|\s+/)}function hi(g){return g.classList||new yt(g)}function yt(g){this._node=g,this._names=jt(g.getAttribute("class")||"")}function Pt(g,O){for(var o=hi(g),x=-1,B=O.length;++x<B;)o.add(O[x])}function pt(g,O){for(var o=hi(g),x=-1,B=O.length;++x<B;)o.remove(O[x])}function vt(g){return function(){Pt(this,g)}}function Ct(g){return function(){pt(this,g)}}function At(g,O){return function(){(O.apply(this,arguments)?Pt:pt)(this,g)}}function ze(){this.textContent=""}function Ve(g){return function(){this.textContent=g}}function Fe(g){return function(){var O=g.apply(this,arguments);this.textContent=O??""}}function xt(){this.innerHTML=""}function ct(g){return function(){this.innerHTML=g}}function Nt(g){return function(){var O=g.apply(this,arguments);this.innerHTML=O??""}}function Ae(){this.nextSibling&&this.parentNode.appendChild(this)}function Qe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function mt(g){return function(){var O=this.ownerDocument,o=this.namespaceURI;return o===ve&&O.documentElement.namespaceURI===ve?O.createElement(g):O.createElementNS(o,g)}}function $t(g){return function(){return this.ownerDocument.createElementNS(g.space,g.local)}}function Gt(g){var O=$(g);return(O.local?$t:mt)(O)}function Et(){return null}function at(){var g=this.parentNode;g&&g.removeChild(this)}function Ut(){var g=this.cloneNode(!1),O=this.parentNode;return O?O.insertBefore(g,this.nextSibling):g}function qt(){var g=this.cloneNode(!0),O=this.parentNode;return O?O.insertBefore(g,this.nextSibling):g}function Vi(g){return g.trim().split(/^|\s+/).map(function(O){var o="",x=O.indexOf(".");return x>=0&&(o=O.slice(x+1),O=O.slice(0,x)),{type:O,name:o}})}function Be(g){return function(){var O=this.__on;if(O){for(var q,o=0,x=-1,B=O.length;o<B;++o)q=O[o],g.type&&q.type!==g.type||q.name!==g.name?O[++x]=q:this.removeEventListener(q.type,q.listener,q.options);++x?O.length=x:delete this.__on}}}function kt(g,O,o){return function(){var B,x=this.__on,q=function Ei(g){return function(O){g.call(this,O,this.__data__)}}(O);if(x)for(var Te=0,it=x.length;Te<it;++Te)if((B=x[Te]).type===g.type&&B.name===g.name)return this.removeEventListener(B.type,B.listener,B.options),this.addEventListener(B.type,B.listener=q,B.options=o),void(B.value=O);this.addEventListener(g.type,q,o),B={type:g.type,name:g.name,value:O,listener:q,options:o},x?x.push(B):this.__on=[B]}}function Je(g,O,o){var x=Y(g),B=x.CustomEvent;"function"==typeof B?B=new B(O,o):(B=x.document.createEvent("Event"),o?(B.initEvent(O,o.bubbles,o.cancelable),B.detail=o.detail):B.initEvent(O,!1,!1)),g.dispatchEvent(B)}function _t(g,O){return function(){return Je(this,g,O)}}function se(g,O){return function(){return Je(this,g,O.apply(this,arguments))}}yt.prototype={add:function(g){this._names.indexOf(g)<0&&(this._names.push(g),this._node.setAttribute("class",this._names.join(" ")))},remove:function(g){var O=this._names.indexOf(g);O>=0&&(this._names.splice(O,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(g){return this._names.indexOf(g)>=0}};var Vt=[null];function mi(g,O){this._groups=g,this._parents=O}function Hi(){return new mi([[document.documentElement]],Vt)}mi.prototype=Hi.prototype={constructor:mi,select:function I(g){"function"!=typeof g&&(g=h(g));for(var O=this._groups,o=O.length,x=new Array(o),B=0;B<o;++B)for(var Yt,Zt,q=O[B],Te=q.length,it=x[B]=new Array(Te),oi=0;oi<Te;++oi)(Yt=q[oi])&&(Zt=g.call(Yt,Yt.__data__,oi,q))&&("__data__"in Yt&&(Zt.__data__=Yt.__data__),it[oi]=Zt);return new mi(x,this._parents)},selectAll:function w(g){g="function"==typeof g?function N(g){return function(){var O=g.apply(this,arguments);return null==O?[]:E(O)}}(g):T(g);for(var O=this._groups,o=O.length,x=[],B=[],q=0;q<o;++q)for(var Yt,Te=O[q],it=Te.length,Zt=0;Zt<it;++Zt)(Yt=Te[Zt])&&(x.push(g.call(Yt,Yt.__data__,Zt,Te)),B.push(Yt));return new mi(x,B)},selectChild:function ce(g){return this.select(null==g?ie:function re(g){return function(){return Q.call(this.children,g)}}("function"==typeof g?g:K(g)))},selectChildren:function ee(g){return this.selectAll(null==g?ne:function le(g){return function(){return ae.call(this.children,g)}}("function"==typeof g?g:K(g)))},filter:function pe(g){"function"!=typeof g&&(g=G(g));for(var O=this._groups,o=O.length,x=new Array(o),B=0;B<o;++B)for(var Yt,q=O[B],Te=q.length,it=x[B]=[],Zt=0;Zt<Te;++Zt)(Yt=q[Zt])&&g.call(Yt,Yt.__data__,Zt,q)&&it.push(Yt);return new mi(x,this._parents)},data:function k(g,O){if(!arguments.length)return Array.from(this,D);var o=O?y:l,x=this._parents,B=this._groups;"function"!=typeof g&&(g=u(g));for(var q=B.length,Te=new Array(q),it=new Array(q),Yt=new Array(q),Zt=0;Zt<q;++Zt){var oi=x[Zt],pi=B[Zt],_i=pi.length,Ci=E(g.call(oi,oi&&oi.__data__,Zt,x)),tn=Ci.length,vn=it[Zt]=new Array(tn),wi=Te[Zt]=new Array(tn),hn=Yt[Zt]=new Array(_i);o(oi,pi,vn,wi,hn,Ci,O);for(var Gn,kn,fn=0,pn=0;fn<tn;++fn)if(Gn=vn[fn]){for(fn>=pn&&(pn=fn+1);!(kn=wi[pn])&&++pn<tn;);Gn._next=kn||null}}return(Te=new mi(Te,x))._enter=it,Te._exit=Yt,Te},enter:function i(){return new mi(this._enter||this._groups.map(S),this._parents)},exit:function b(){return new mi(this._exit||this._groups.map(S),this._parents)},join:function n(g,O,o){var x=this.enter(),B=this,q=this.exit();return x="function"==typeof g?g(x):x.append(g+""),null!=O&&(B=O(B)),null==o?q.remove():o(q),x&&B?x.merge(B).order():B},merge:function _(g){if(!(g instanceof mi))throw new Error("invalid merge");for(var O=this._groups,o=g._groups,x=O.length,q=Math.min(x,o.length),Te=new Array(x),it=0;it<q;++it)for(var _i,Yt=O[it],Zt=o[it],oi=Yt.length,pi=Te[it]=new Array(oi),Ci=0;Ci<oi;++Ci)(_i=Yt[Ci]||Zt[Ci])&&(pi[Ci]=_i);for(;it<x;++it)Te[it]=O[it];return new mi(Te,this._parents)},selection:function Ui(){return this},order:function W(){for(var g=this._groups,O=-1,o=g.length;++O<o;)for(var Te,x=g[O],B=x.length-1,q=x[B];--B>=0;)(Te=x[B])&&(q&&4^Te.compareDocumentPosition(q)&&q.parentNode.insertBefore(Te,q),q=Te);return this},sort:function P(g){function O(pi,_i){return pi&&_i?g(pi.__data__,_i.__data__):!pi-!_i}g||(g=U);for(var o=this._groups,x=o.length,B=new Array(x),q=0;q<x;++q){for(var Zt,Te=o[q],it=Te.length,Yt=B[q]=new Array(it),oi=0;oi<it;++oi)(Zt=Te[oi])&&(Yt[oi]=Zt);Yt.sort(O)}return new mi(B,this._parents).order()},call:function me(){var g=arguments[0];return arguments[0]=this,g.apply(null,arguments),this},nodes:function nt(){return Array.from(this)},node:function Pe(){for(var g=this._groups,O=0,o=g.length;O<o;++O)for(var x=g[O],B=0,q=x.length;B<q;++B){var Te=x[B];if(Te)return Te}return null},size:function Oe(){let g=0;for(const O of this)++g;return g},empty:function De(){return!this.node()},each:function ue(g){for(var O=this._groups,o=0,x=O.length;o<x;++o)for(var it,B=O[o],q=0,Te=B.length;q<Te;++q)(it=B[q])&&g.call(it,it.__data__,q,B);return this},attr:function we(g,O){var o=$(g);if(arguments.length<2){var x=this.node();return o.local?x.getAttributeNS(o.space,o.local):x.getAttribute(o)}return this.each((null==O?o.local?ut:Ge:"function"==typeof O?o.local?de:he:o.local?ye:Ee)(o,O))},style:function X(g,O,o){return arguments.length>1?this.each((null==O?j:"function"==typeof O?Se:Ce)(g,O,o??"")):Ye(this.node(),g)},property:function Rt(g,O){return arguments.length>1?this.each((null==O?Le:"function"==typeof O?Wt:gt)(g,O)):this.node()[g]},classed:function dt(g,O){var o=jt(g+"");if(arguments.length<2){for(var x=hi(this.node()),B=-1,q=o.length;++B<q;)if(!x.contains(o[B]))return!1;return!0}return this.each(("function"==typeof O?At:O?vt:Ct)(o,O))},text:function be(g){return arguments.length?this.each(null==g?ze:("function"==typeof g?Fe:Ve)(g)):this.node().textContent},html:function et(g){return arguments.length?this.each(null==g?xt:("function"==typeof g?Nt:ct)(g)):this.node().innerHTML},raise:function rt(){return this.each(Ae)},lower:function Ke(){return this.each(Qe)},append:function zt(g){var O="function"==typeof g?g:Gt(g);return this.select(function(){return this.appendChild(O.apply(this,arguments))})},insert:function ht(g,O){var o="function"==typeof g?g:Gt(g),x=null==O?Et:"function"==typeof O?O:h(O);return this.select(function(){return this.insertBefore(o.apply(this,arguments),x.apply(this,arguments)||null)})},remove:function ei(){return this.each(at)},clone:function Pi(g){return this.select(g?qt:Ut)},datum:function Ii(g){return arguments.length?this.property("__data__",g):this.node().__data__},on:function _e(g,O,o){var B,Te,x=Vi(g+""),q=x.length;if(!(arguments.length<2)){for(it=O?kt:Be,B=0;B<q;++B)this.each(it(x[B],O,o));return this}var it=this.node().__on;if(it)for(var oi,Yt=0,Zt=it.length;Yt<Zt;++Yt)for(B=0,oi=it[Yt];B<q;++B)if((Te=x[B]).type===oi.type&&Te.name===oi.name)return oi.value},dispatch:function Xe(g,O){return this.each(("function"==typeof O?se:_t)(g,O))},[Symbol.iterator]:function*bt(){for(var g=this._groups,O=0,o=g.length;O<o;++O)for(var Te,x=g[O],B=0,q=x.length;B<q;++B)(Te=x[B])&&(yield Te)}};const Ji=Hi;var _n={value:()=>{}};function si(){for(var x,g=0,O=arguments.length,o={};g<O;++g){if(!(x=arguments[g]+"")||x in o||/[\s.]/.test(x))throw new Error("illegal type: "+x);o[x]=[]}return new Ti(o)}function Ti(g){this._=g}function ot(g,O){return g.trim().split(/^|\s+/).map(function(o){var x="",B=o.indexOf(".");if(B>=0&&(x=o.slice(B+1),o=o.slice(0,B)),o&&!O.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:x}})}function Bt(g,O){for(var B,o=0,x=g.length;o<x;++o)if((B=g[o]).name===O)return B.value}function Xt(g,O,o){for(var x=0,B=g.length;x<B;++x)if(g[x].name===O){g[x]=_n,g=g.slice(0,x).concat(g.slice(x+1));break}return null!=o&&g.push({name:O,value:o}),g}Ti.prototype=si.prototype={constructor:Ti,on:function(g,O){var B,o=this._,x=ot(g+"",o),q=-1,Te=x.length;if(!(arguments.length<2)){if(null!=O&&"function"!=typeof O)throw new Error("invalid callback: "+O);for(;++q<Te;)if(B=(g=x[q]).type)o[B]=Xt(o[B],g.name,O);else if(null==O)for(B in o)o[B]=Xt(o[B],g.name,null);return this}for(;++q<Te;)if((B=(g=x[q]).type)&&(B=Bt(o[B],g.name)))return B},copy:function(){var g={},O=this._;for(var o in O)g[o]=O[o].slice();return new Ti(g)},call:function(g,O){if((B=arguments.length-2)>0)for(var B,q,o=new Array(B),x=0;x<B;++x)o[x]=arguments[x+2];if(!this._.hasOwnProperty(g))throw new Error("unknown type: "+g);for(x=0,B=(q=this._[g]).length;x<B;++x)q[x].value.apply(O,o)},apply:function(g,O,o){if(!this._.hasOwnProperty(g))throw new Error("unknown type: "+g);for(var x=this._[g],B=0,q=x.length;B<q;++B)x[B].value.apply(O,o)}};const fi=si;function Nn(g,O,o){g.prototype=O.prototype=o,o.constructor=g}function Qn(g,O){var o=Object.create(g.prototype);for(var x in O)o[x]=O[x];return o}function An(){}var Yi=1/.7,Mn="\\s*([+-]?\\d+)\\s*",ha="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",qn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ts=/^#([0-9a-f]{3,8})$/,Fs=new RegExp("^rgb\\("+[Mn,Mn,Mn]+"\\)$"),Kr=new RegExp("^rgb\\("+[qn,qn,qn]+"\\)$"),Wa=new RegExp("^rgba\\("+[Mn,Mn,Mn,ha]+"\\)$"),Er=new RegExp("^rgba\\("+[qn,qn,qn,ha]+"\\)$"),Pa=new RegExp("^hsl\\("+[ha,qn,qn]+"\\)$"),Ya=new RegExp("^hsla\\("+[ha,qn,qn,ha]+"\\)$"),ns={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function js(){return this.rgb().formatHex()}function Ka(){return this.rgb().formatRgb()}function Ma(g){var O,o;return g=(g+"").trim().toLowerCase(),(O=Ts.exec(g))?(o=O[1].length,O=parseInt(O[1],16),6===o?rs(O):3===o?new Lr(O>>8&15|O>>4&240,O>>4&15|240&O,(15&O)<<4|15&O,1):8===o?fr(O>>24&255,O>>16&255,O>>8&255,(255&O)/255):4===o?fr(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=Fs.exec(g))?new Lr(O[1],O[2],O[3],1):(O=Kr.exec(g))?new Lr(255*O[1]/100,255*O[2]/100,255*O[3]/100,1):(O=Wa.exec(g))?fr(O[1],O[2],O[3],O[4]):(O=Er.exec(g))?fr(255*O[1]/100,255*O[2]/100,255*O[3]/100,O[4]):(O=Pa.exec(g))?As(O[1],O[2]/100,O[3]/100,1):(O=Ya.exec(g))?As(O[1],O[2]/100,O[3]/100,O[4]):ns.hasOwnProperty(g)?rs(ns[g]):"transparent"===g?new Lr(NaN,NaN,NaN,0):null}function rs(g){return new Lr(g>>16&255,g>>8&255,255&g,1)}function fr(g,O,o,x){return x<=0&&(g=O=o=NaN),new Lr(g,O,o,x)}function la(g){return g instanceof An||(g=Ma(g)),g?new Lr((g=g.rgb()).r,g.g,g.b,g.opacity):new Lr}function Gr(g,O,o,x){return 1===arguments.length?la(g):new Lr(g,O,o,x??1)}function Lr(g,O,o,x){this.r=+g,this.g=+O,this.b=+o,this.opacity=+x}function ta(){return"#"+wa(this.r)+wa(this.g)+wa(this.b)}function as(){var g=this.opacity;return(1===(g=isNaN(g)?1:Math.max(0,Math.min(1,g)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===g?")":", "+g+")")}function wa(g){return((g=Math.max(0,Math.min(255,Math.round(g)||0)))<16?"0":"")+g.toString(16)}function As(g,O,o,x){return x<=0?g=O=o=NaN:o<=0||o>=1?g=O=NaN:O<=0&&(g=NaN),new yr(g,O,o,x)}function Rr(g){if(g instanceof yr)return new yr(g.h,g.s,g.l,g.opacity);if(g instanceof An||(g=Ma(g)),!g)return new yr;if(g instanceof yr)return g;var O=(g=g.rgb()).r/255,o=g.g/255,x=g.b/255,B=Math.min(O,o,x),q=Math.max(O,o,x),Te=NaN,it=q-B,Yt=(q+B)/2;return it?(Te=O===q?(o-x)/it+6*(o<x):o===q?(x-O)/it+2:(O-o)/it+4,it/=Yt<.5?q+B:2-q-B,Te*=60):it=Yt>0&&Yt<1?0:Te,new yr(Te,it,Yt,g.opacity)}function yr(g,O,o,x){this.h=+g,this.s=+O,this.l=+o,this.opacity=+x}function _s(g,O,o){return 255*(g<60?O+(o-O)*g/60:g<180?o:g<240?O+(o-O)*(240-g)/60:O)}function ss(g,O,o,x,B){var q=g*g,Te=q*g;return((1-3*g+3*q-Te)*O+(4-6*q+3*Te)*o+(1+3*g+3*q-3*Te)*x+Te*B)/6}Nn(An,Ma,{copy:function(g){return Object.assign(new this.constructor,this,g)},displayable:function(){return this.rgb().displayable()},hex:js,formatHex:js,formatHsl:function dr(){return Rr(this).formatHsl()},formatRgb:Ka,toString:Ka}),Nn(Lr,Gr,Qn(An,{brighter:function(g){return g=null==g?Yi:Math.pow(Yi,g),new Lr(this.r*g,this.g*g,this.b*g,this.opacity)},darker:function(g){return g=null==g?.7:Math.pow(.7,g),new Lr(this.r*g,this.g*g,this.b*g,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ta,formatHex:ta,formatRgb:as,toString:as})),Nn(yr,function Sa(g,O,o,x){return 1===arguments.length?Rr(g):new yr(g,O,o,x??1)},Qn(An,{brighter:function(g){return g=null==g?Yi:Math.pow(Yi,g),new yr(this.h,this.s,this.l*g,this.opacity)},darker:function(g){return g=null==g?.7:Math.pow(.7,g),new yr(this.h,this.s,this.l*g,this.opacity)},rgb:function(){var g=this.h%360+360*(this.h<0),O=isNaN(g)||isNaN(this.s)?0:this.s,o=this.l,x=o+(o<.5?o:1-o)*O,B=2*o-x;return new Lr(_s(g>=240?g-240:g+120,B,x),_s(g,B,x),_s(g<120?g+240:g-120,B,x),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var g=this.opacity;return(1===(g=isNaN(g)?1:Math.max(0,Math.min(1,g)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===g?")":", "+g+")")}}));const ur=g=>()=>g;function os(g,O){var o=O-g;return o?function fa(g,O){return function(o){return g+o*O}}(g,o):ur(isNaN(g)?O:g)}const nr=function g(O){var o=function Na(g){return 1==(g=+g)?os:function(O,o){return o-O?function Ea(g,O,o){return g=Math.pow(g,o),O=Math.pow(O,o)-g,o=1/o,function(x){return Math.pow(g+x*O,o)}}(O,o,g):ur(isNaN(O)?o:O)}}(O);function x(B,q){var Te=o((B=Gr(B)).r,(q=Gr(q)).r),it=o(B.g,q.g),Yt=o(B.b,q.b),Zt=os(B.opacity,q.opacity);return function(oi){return B.r=Te(oi),B.g=it(oi),B.b=Yt(oi),B.opacity=Zt(oi),B+""}}return x.gamma=g,x}(1);function Hr(g){return function(O){var Te,it,o=O.length,x=new Array(o),B=new Array(o),q=new Array(o);for(Te=0;Te<o;++Te)it=Gr(O[Te]),x[Te]=it.r||0,B[Te]=it.g||0,q[Te]=it.b||0;return x=g(x),B=g(B),q=g(q),it.opacity=1,function(Yt){return it.r=x(Yt),it.g=B(Yt),it.b=q(Yt),it+""}}}function pa(g,O){var Te,o=O?O.length:0,x=g?Math.min(o,g.length):0,B=new Array(x),q=new Array(o);for(Te=0;Te<x;++Te)B[Te]=di(g[Te],O[Te]);for(;Te<o;++Te)q[Te]=O[Te];return function(it){for(Te=0;Te<x;++Te)q[Te]=B[Te](it);return q}}function Aa(g,O){var o=new Date;return g=+g,O=+O,function(x){return o.setTime(g*(1-x)+O*x),o}}function Tr(g,O){return g=+g,O=+O,function(o){return g*(1-o)+O*o}}function Jn(g,O){var B,o={},x={};for(B in(null===g||"object"!=typeof g)&&(g={}),(null===O||"object"!=typeof O)&&(O={}),O)B in g?o[B]=di(g[B],O[B]):x[B]=O[B];return function(q){for(B in o)x[B]=o[B](q);return x}}Hr(function ka(g){var O=g.length-1;return function(o){var x=o<=0?o=0:o>=1?(o=1,O-1):Math.floor(o*O),B=g[x],q=g[x+1];return ss((o-x/O)*O,x>0?g[x-1]:2*B-q,B,q,x<O-1?g[x+2]:2*q-B)}}),Hr(function Qs(g){var O=g.length;return function(o){var x=Math.floor(((o%=1)<0?++o:o)*O);return ss((o-x/O)*O,g[(x+O-1)%O],g[x%O],g[(x+1)%O],g[(x+2)%O])}});var vs=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rr=new RegExp(vs.source,"g");function ys(g,O){var x,B,q,o=vs.lastIndex=rr.lastIndex=0,Te=-1,it=[],Yt=[];for(g+="",O+="";(x=vs.exec(g))&&(B=rr.exec(O));)(q=B.index)>o&&(q=O.slice(o,q),it[Te]?it[Te]+=q:it[++Te]=q),(x=x[0])===(B=B[0])?it[Te]?it[Te]+=B:it[++Te]=B:(it[++Te]=null,Yt.push({i:Te,x:Tr(x,B)})),o=rr.lastIndex;return o<O.length&&(q=O.slice(o),it[Te]?it[Te]+=q:it[++Te]=q),it.length<2?Yt[0]?function jr(g){return function(O){return g(O)+""}}(Yt[0].x):function io(g){return function(){return g}}(O):(O=Yt.length,function(Zt){for(var pi,oi=0;oi<O;++oi)it[(pi=Yt[oi]).i]=pi.x(Zt);return it.join("")})}function ls(g,O){O||(O=[]);var B,o=g?Math.min(O.length,g.length):0,x=O.slice();return function(q){for(B=0;B<o;++B)x[B]=g[B]*(1-q)+O[B]*q;return x}}function di(g,O){var x,o=typeof O;return null==O||"boolean"===o?ur(O):("number"===o?Tr:"string"===o?(x=Ma(O))?(O=x,nr):ys:O instanceof Ma?nr:O instanceof Date?Aa:function St(g){return ArrayBuffer.isView(g)&&!(g instanceof DataView)}(O)?ls:Array.isArray(O)?pa:"function"!=typeof O.valueOf&&"function"!=typeof O.toString||isNaN(O)?Jn:Tr)(g,O)}var Fr,Di,ki=0,$i=0,Kn=0,on=0,ma=0,La=0,br="object"==typeof performance&&performance.now?performance:Date,Ze="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(g){setTimeout(g,17)};function qe(){return ma||(Ze(He),ma=br.now()+La)}function He(){ma=0}function Lt(){this._call=this._time=this._next=null}function vi(g,O,o){var x=new Lt;return x.restart(g,O,o),x}function _r(){ma=(on=br.now())+La,ki=$i=0;try{!function nn(){qe(),++ki;for(var O,g=Fr;g;)(O=ma-g._time)>=0&&g._call.call(null,O),g=g._next;--ki}()}finally{ki=0,function Qa(){for(var g,o,O=Fr,x=1/0;O;)O._call?(x>O._time&&(x=O._time),g=O,O=O._next):(o=O._next,O._next=null,O=g?g._next=o:Fr=o);Di=g,xr(x)}(),ma=0}}function Ds(){var g=br.now(),O=g-on;O>1e3&&(La-=O,on=g)}function xr(g){ki||($i&&($i=clearTimeout($i)),g-ma>24?(g<1/0&&($i=setTimeout(_r,g-br.now()-La)),Kn&&(Kn=clearInterval(Kn))):(Kn||(on=br.now(),Kn=setInterval(Ds,1e3)),ki=1,Ze(_r)))}function qa(g,O,o){var x=new Lt;return x.restart(B=>{x.stop(),g(B+O)},O=null==O?0:+O,o),x}Lt.prototype=vi.prototype={constructor:Lt,restart:function(g,O,o){if("function"!=typeof g)throw new TypeError("callback is not a function");o=(null==o?qe():+o)+(null==O?0:+O),!this._next&&Di!==this&&(Di?Di._next=this:Fr=this,Di=this),this._call=g,this._time=o,xr()},stop:function(){this._call&&(this._call=null,this._time=1/0,xr())}};var ko=fi("start","end","cancel","interrupt"),qs=[];function Xs(g,O,o,x,B,q){var Te=g.__transition;if(Te){if(o in Te)return}else g.__transition={};!function Ni(g,O,o){var B,x=g.__transition;function Te(Zt){var oi,pi,_i,Ci;if(1!==o.state)return Yt();for(oi in x)if((Ci=x[oi]).name===o.name){if(3===Ci.state)return qa(Te);4===Ci.state?(Ci.state=6,Ci.timer.stop(),Ci.on.call("interrupt",g,g.__data__,Ci.index,Ci.group),delete x[oi]):+oi<O&&(Ci.state=6,Ci.timer.stop(),Ci.on.call("cancel",g,g.__data__,Ci.index,Ci.group),delete x[oi])}if(qa(function(){3===o.state&&(o.state=4,o.timer.restart(it,o.delay,o.time),it(Zt))}),o.state=2,o.on.call("start",g,g.__data__,o.index,o.group),2===o.state){for(o.state=3,B=new Array(_i=o.tween.length),oi=0,pi=-1;oi<_i;++oi)(Ci=o.tween[oi].value.call(g,g.__data__,o.index,o.group))&&(B[++pi]=Ci);B.length=pi+1}}function it(Zt){for(var oi=Zt<o.duration?o.ease.call(null,Zt/o.duration):(o.timer.restart(Yt),o.state=5,1),pi=-1,_i=B.length;++pi<_i;)B[pi].call(g,oi);5===o.state&&(o.on.call("end",g,g.__data__,o.index,o.group),Yt())}function Yt(){for(var Zt in o.state=6,o.timer.stop(),delete x[O],x)return;delete g.__transition}x[O]=o,o.timer=vi(function q(Zt){o.state=1,o.timer.restart(Te,o.delay,o.time),o.delay<=Zt&&Te(Zt-o.delay)},0,o.time)}(g,o,{name:O,index:x,group:B,on:ko,tween:qs,time:q.time,delay:q.delay,duration:q.duration,ease:q.ease,timer:null,state:0})}function Is(g,O){var o=vr(g,O);if(o.state>0)throw new Error("too late; already scheduled");return o}function Ra(g,O){var o=vr(g,O);if(o.state>3)throw new Error("too late; already running");return o}function vr(g,O){var o=g.__transition;if(!o||!(o=o[O]))throw new Error("transition not found");return o}var We,Bi=180/Math.PI,Ne={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ft(g,O,o,x,B,q){var Te,it,Yt;return(Te=Math.sqrt(g*g+O*O))&&(g/=Te,O/=Te),(Yt=g*o+O*x)&&(o-=g*Yt,x-=O*Yt),(it=Math.sqrt(o*o+x*x))&&(o/=it,x/=it,Yt/=it),g*x<O*o&&(g=-g,O=-O,Yt=-Yt,Te=-Te),{translateX:B,translateY:q,rotate:Math.atan2(O,g)*Bi,skewX:Math.atan(Yt)*Bi,scaleX:Te,scaleY:it}}function yi(g,O,o,x){function B(Zt){return Zt.length?Zt.pop()+" ":""}return function(Zt,oi){var pi=[],_i=[];return Zt=g(Zt),oi=g(oi),function q(Zt,oi,pi,_i,Ci,tn){if(Zt!==pi||oi!==_i){var vn=Ci.push("translate(",null,O,null,o);tn.push({i:vn-4,x:Tr(Zt,pi)},{i:vn-2,x:Tr(oi,_i)})}else(pi||_i)&&Ci.push("translate("+pi+O+_i+o)}(Zt.translateX,Zt.translateY,oi.translateX,oi.translateY,pi,_i),function Te(Zt,oi,pi,_i){Zt!==oi?(Zt-oi>180?oi+=360:oi-Zt>180&&(Zt+=360),_i.push({i:pi.push(B(pi)+"rotate(",null,x)-2,x:Tr(Zt,oi)})):oi&&pi.push(B(pi)+"rotate("+oi+x)}(Zt.rotate,oi.rotate,pi,_i),function it(Zt,oi,pi,_i){Zt!==oi?_i.push({i:pi.push(B(pi)+"skewX(",null,x)-2,x:Tr(Zt,oi)}):oi&&pi.push(B(pi)+"skewX("+oi+x)}(Zt.skewX,oi.skewX,pi,_i),function Yt(Zt,oi,pi,_i,Ci,tn){if(Zt!==pi||oi!==_i){var vn=Ci.push(B(Ci)+"scale(",null,",",null,")");tn.push({i:vn-4,x:Tr(Zt,pi)},{i:vn-2,x:Tr(oi,_i)})}else(1!==pi||1!==_i)&&Ci.push(B(Ci)+"scale("+pi+","+_i+")")}(Zt.scaleX,Zt.scaleY,oi.scaleX,oi.scaleY,pi,_i),Zt=oi=null,function(Ci){for(var wi,tn=-1,vn=_i.length;++tn<vn;)pi[(wi=_i[tn]).i]=wi.x(Ci);return pi.join("")}}}var Mi=yi(function Dt(g){const O=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(g+"");return O.isIdentity?Ne:ft(O.a,O.b,O.c,O.d,O.e,O.f)},"px, ","px)","deg)"),sn=yi(function ii(g){return null!=g&&(We||(We=document.createElementNS("http://www.w3.org/2000/svg","g")),We.setAttribute("transform",g),g=We.transform.baseVal.consolidate())?ft((g=g.matrix).a,g.b,g.c,g.d,g.e,g.f):Ne},", ",")",")");function or(g,O){var o,x;return function(){var B=Ra(this,g),q=B.tween;if(q!==o)for(var Te=0,it=(x=o=q).length;Te<it;++Te)if(x[Te].name===O){(x=x.slice()).splice(Te,1);break}B.tween=x}}function ar(g,O,o){var x,B;if("function"!=typeof o)throw new Error;return function(){var q=Ra(this,g),Te=q.tween;if(Te!==x){B=(x=Te).slice();for(var it={name:O,value:o},Yt=0,Zt=B.length;Yt<Zt;++Yt)if(B[Yt].name===O){B[Yt]=it;break}Yt===Zt&&B.push(it)}q.tween=B}}function Vn(g,O,o){var x=g._id;return g.each(function(){var B=Ra(this,x);(B.value||(B.value={}))[O]=o.apply(this,arguments)}),function(B){return vr(B,x).value[O]}}function Vr(g,O){var o;return("number"==typeof O?Tr:O instanceof Ma?nr:(o=Ma(O))?(O=o,nr):ys)(g,O)}function lr(g){return function(){this.removeAttribute(g)}}function Xn(g){return function(){this.removeAttributeNS(g.space,g.local)}}function Da(g,O,o){var x,q,B=o+"";return function(){var Te=this.getAttribute(g);return Te===B?null:Te===x?q:q=O(x=Te,o)}}function ga(g,O,o){var x,q,B=o+"";return function(){var Te=this.getAttributeNS(g.space,g.local);return Te===B?null:Te===x?q:q=O(x=Te,o)}}function en(g,O,o){var x,B,q;return function(){var Te,Yt,it=o(this);return null==it?void this.removeAttribute(g):(Te=this.getAttribute(g))===(Yt=it+"")?null:Te===x&&Yt===B?q:(B=Yt,q=O(x=Te,it))}}function Cs(g,O,o){var x,B,q;return function(){var Te,Yt,it=o(this);return null==it?void this.removeAttributeNS(g.space,g.local):(Te=this.getAttributeNS(g.space,g.local))===(Yt=it+"")?null:Te===x&&Yt===B?q:(B=Yt,q=O(x=Te,it))}}function cs(g,O){return function(o){this.setAttribute(g,O.call(this,o))}}function ro(g,O){return function(o){this.setAttributeNS(g.space,g.local,O.call(this,o))}}function Fl(g,O){var o,x;function B(){var q=O.apply(this,arguments);return q!==x&&(o=(x=q)&&ro(g,q)),o}return B._value=O,B}function Co(g,O){var o,x;function B(){var q=O.apply(this,arguments);return q!==x&&(o=(x=q)&&cs(g,q)),o}return B._value=O,B}function ji(g,O){return function(){Is(this,g).delay=+O.apply(this,arguments)}}function zr(g,O){return O=+O,function(){Is(this,g).delay=O}}function Ki(g,O){return function(){Ra(this,g).duration=+O.apply(this,arguments)}}function tr(g,O){return O=+O,function(){Ra(this,g).duration=O}}function st(g,O){if("function"!=typeof O)throw new Error;return function(){Ra(this,g).ease=O}}function ri(g,O,o){var x,B,q=function ui(g){return(g+"").trim().split(/^|\s+/).every(function(O){var o=O.indexOf(".");return o>=0&&(O=O.slice(0,o)),!O||"start"===O})}(O)?Is:Ra;return function(){var Te=q(this,g),it=Te.on;it!==x&&(B=(x=it).copy()).on(O,o),Te.on=B}}var wn=Ji.prototype.constructor;function ia(g){return function(){this.style.removeProperty(g)}}function Br(g,O,o){return function(x){this.style.setProperty(g,O.call(this,x),o)}}function Os(g,O,o){var x,B;function q(){var Te=O.apply(this,arguments);return Te!==B&&(x=(B=Te)&&Br(g,Te,o)),x}return q._value=O,q}function Mo(g){return function(O){this.textContent=g.call(this,O)}}function sc(g){var O,o;function x(){var B=g.apply(this,arguments);return B!==o&&(O=(o=B)&&Mo(B)),O}return x._value=g,x}var E1=0;function $s(g,O,o,x){this._groups=g,this._parents=O,this._name=o,this._id=x}function lc(){return++E1}var Bs=Ji.prototype;$s.prototype=function Ro(g){return Ji().transition(g)}.prototype={constructor:$s,select:function ln(g){var O=this._name,o=this._id;"function"!=typeof g&&(g=h(g));for(var x=this._groups,B=x.length,q=new Array(B),Te=0;Te<B;++Te)for(var oi,pi,it=x[Te],Yt=it.length,Zt=q[Te]=new Array(Yt),_i=0;_i<Yt;++_i)(oi=it[_i])&&(pi=g.call(oi,oi.__data__,_i,it))&&("__data__"in oi&&(pi.__data__=oi.__data__),Zt[_i]=pi,Xs(Zt[_i],O,o,_i,Zt,vr(oi,o)));return new $s(q,this._parents,O,o)},selectAll:function Tn(g){var O=this._name,o=this._id;"function"!=typeof g&&(g=T(g));for(var x=this._groups,B=x.length,q=[],Te=[],it=0;it<B;++it)for(var oi,Yt=x[it],Zt=Yt.length,pi=0;pi<Zt;++pi)if(oi=Yt[pi]){for(var Ci,_i=g.call(oi,oi.__data__,pi,Yt),tn=vr(oi,o),vn=0,wi=_i.length;vn<wi;++vn)(Ci=_i[vn])&&Xs(Ci,O,o,vn,_i,tn);q.push(_i),Te.push(oi)}return new $s(q,Te,O,o)},filter:function $e(g){"function"!=typeof g&&(g=G(g));for(var O=this._groups,o=O.length,x=new Array(o),B=0;B<o;++B)for(var Yt,q=O[B],Te=q.length,it=x[B]=[],Zt=0;Zt<Te;++Zt)(Yt=q[Zt])&&g.call(Yt,Yt.__data__,Zt,q)&&it.push(Yt);return new $s(x,this._parents,this._name,this._id)},merge:function ai(g){if(g._id!==this._id)throw new Error;for(var O=this._groups,o=g._groups,x=O.length,q=Math.min(x,o.length),Te=new Array(x),it=0;it<q;++it)for(var _i,Yt=O[it],Zt=o[it],oi=Yt.length,pi=Te[it]=new Array(oi),Ci=0;Ci<oi;++Ci)(_i=Yt[Ci]||Zt[Ci])&&(pi[Ci]=_i);for(;it<x;++it)Te[it]=O[it];return new $s(Te,this._parents,this._name,this._id)},selection:function va(){return new wn(this._groups,this._parents)},transition:function oc(){for(var g=this._name,O=this._id,o=lc(),x=this._groups,B=x.length,q=0;q<B;++q)for(var Yt,Te=x[q],it=Te.length,Zt=0;Zt<it;++Zt)if(Yt=Te[Zt]){var oi=vr(Yt,O);Xs(Yt,g,o,Zt,Te,{time:oi.time+oi.delay+oi.duration,delay:0,duration:oi.duration,ease:oi.ease})}return new $s(x,this._parents,g,o)},call:Bs.call,nodes:Bs.nodes,node:Bs.node,size:Bs.size,empty:Bs.empty,each:Bs.each,on:function Ai(g,O){var o=this._id;return arguments.length<2?vr(this.node(),o).on.on(g):this.each(ri(o,g,O))},attr:function Ha(g,O){var o=$(g),x="transform"===o?sn:Vr;return this.attrTween(g,"function"==typeof O?(o.local?Cs:en)(o,x,Vn(this,"attr."+g,O)):null==O?(o.local?Xn:lr)(o):(o.local?ga:Da)(o,x,O))},attrTween:function Bn(g,O){var o="attr."+g;if(arguments.length<2)return(o=this.tween(o))&&o._value;if(null==O)return this.tween(o,null);if("function"!=typeof O)throw new Error;var x=$(g);return this.tween(o,(x.local?Fl:Co)(x,O))},style:function us(g,O,o){var x="transform"==(g+="")?Mi:Vr;return null==O?this.styleTween(g,function ya(g,O){var o,x,B;return function(){var q=Ye(this,g),Te=(this.style.removeProperty(g),Ye(this,g));return q===Te?null:q===o&&Te===x?B:B=O(o=q,x=Te)}}(g,x)).on("end.style."+g,ia(g)):"function"==typeof O?this.styleTween(g,function Wr(g,O,o){var x,B,q;return function(){var Te=Ye(this,g),it=o(this),Yt=it+"";return null==it&&(this.style.removeProperty(g),Yt=it=Ye(this,g)),Te===Yt?null:Te===x&&Yt===B?q:(B=Yt,q=O(x=Te,it))}}(g,x,Vn(this,"style."+g,O))).each(function wr(g,O){var o,x,B,it,q="style."+O,Te="end."+q;return function(){var Yt=Ra(this,g),Zt=Yt.on,oi=null==Yt.value[q]?it||(it=ia(O)):void 0;(Zt!==o||B!==oi)&&(x=(o=Zt).copy()).on(Te,B=oi),Yt.on=x}}(this._id,g)):this.styleTween(g,function na(g,O,o){var x,q,B=o+"";return function(){var Te=Ye(this,g);return Te===B?null:Te===x?q:q=O(x=Te,o)}}(g,x,O),o).on("end.style."+g,null)},styleTween:function $n(g,O,o){var x="style."+(g+="");if(arguments.length<2)return(x=this.tween(x))&&x._value;if(null==O)return this.tween(x,null);if("function"!=typeof O)throw new Error;return this.tween(x,Os(g,O,o??""))},text:function ao(g){return this.tween("text","function"==typeof g?function Ps(g){return function(){var O=g(this);this.textContent=O??""}}(Vn(this,"text",g)):function Ms(g){return function(){this.textContent=g}}(null==g?"":g+""))},textTween:function jc(g){var O="text";if(arguments.length<1)return(O=this.tween(O))&&O._value;if(null==g)return this.tween(O,null);if("function"!=typeof g)throw new Error;return this.tween(O,sc(g))},remove:function Qi(){return this.on("end.remove",function zi(g){return function(){var O=this.parentNode;for(var o in this.__transition)if(+o!==g)return;O&&O.removeChild(this)}}(this._id))},tween:function pr(g,O){var o=this._id;if(g+="",arguments.length<2){for(var Te,x=vr(this.node(),o).tween,B=0,q=x.length;B<q;++B)if((Te=x[B]).name===g)return Te.value;return null}return this.each((null==O?or:ar)(o,g,O))},delay:function _a(g){var O=this._id;return arguments.length?this.each(("function"==typeof g?ji:zr)(O,g)):vr(this.node(),O).delay},duration:function ds(g){var O=this._id;return arguments.length?this.each(("function"==typeof g?Ki:tr)(O,g)):vr(this.node(),O).duration},ease:function wt(g){var O=this._id;return arguments.length?this.each(st(O,g)):vr(this.node(),O).ease},easeVarying:function Ht(g){if("function"!=typeof g)throw new Error;return this.each(function Tt(g,O){return function(){var o=O.apply(this,arguments);if("function"!=typeof o)throw new Error;Ra(this,g).ease=o}}(this._id,g))},end:function ml(){var g,O,o=this,x=o._id,B=o.size();return new Promise(function(q,Te){var it={value:Te},Yt={value:function(){0==--B&&q()}};o.each(function(){var Zt=Ra(this,x),oi=Zt.on;oi!==g&&((O=(g=oi).copy())._.cancel.push(it),O._.interrupt.push(it),O._.end.push(Yt)),Zt.on=O}),0===B&&q()})},[Symbol.iterator]:Bs[Symbol.iterator]};var so={time:null,delay:0,duration:250,ease:function ks(g){return((g*=2)<=1?g*g*g:(g-=2)*g*g+2)/2}};function A1(g,O){for(var o;!(o=g.__transition)||!(o=o[O]);)if(!(g=g.parentNode))throw new Error(`transition ${O} not found`);return o}Ji.prototype.interrupt=function xo(g){return this.each(function(){!function xs(g,O){var x,B,Te,o=g.__transition,q=!0;if(o){for(Te in O=null==O?null:O+"",o)(x=o[Te]).name===O?(B=x.state>2&&x.state<5,x.state=6,x.timer.stop(),x.on.call(B?"interrupt":"cancel",g,g.__data__,x.index,x.group),delete o[Te]):q=!1;q&&delete g.__transition}}(this,g)})},Ji.prototype.transition=function gl(g){var O,o;g instanceof $s?(O=g._id,g=g._name):(O=lc(),(o=so).time=qe(),g=null==g?null:g+"");for(var x=this._groups,B=x.length,q=0;q<B;++q)for(var Yt,Te=x[q],it=Te.length,Zt=0;Zt<it;++Zt)(Yt=Te[Zt])&&Xs(Yt,g,O,Zt,Te,o||A1(Yt,O));return new $s(x,this._parents,g,O)};Math;function xe(g){return{type:g}}function mn(g,O){return g<O?-1:g>O?1:g>=O?0:NaN}function In(g){let O=g,o=g;function x(Te,it,Yt,Zt){for(null==Yt&&(Yt=0),null==Zt&&(Zt=Te.length);Yt<Zt;){const oi=Yt+Zt>>>1;o(Te[oi],it)<0?Yt=oi+1:Zt=oi}return Yt}return 1===g.length&&(O=(Te,it)=>g(Te)-it,o=function er(g){return(O,o)=>mn(g(O),o)}(g)),{left:x,center:function q(Te,it,Yt,Zt){null==Yt&&(Yt=0),null==Zt&&(Zt=Te.length);const oi=x(Te,it,Yt,Zt-1);return oi>Yt&&O(Te[oi-1],it)>-O(Te[oi],it)?oi-1:oi},right:function B(Te,it,Yt,Zt){for(null==Yt&&(Yt=0),null==Zt&&(Zt=Te.length);Yt<Zt;){const oi=Yt+Zt>>>1;o(Te[oi],it)>0?Zt=oi:Yt=oi+1}return Yt}}}["w","e"].map(xe),["n","s"].map(xe),["n","w","e","s","nw","ne","sw","se"].map(xe);var $r=Math.sqrt(50),Sr=Math.sqrt(10),Dr=Math.sqrt(2);function Vo(g,O,o){var x=(O-g)/Math.max(0,o),B=Math.floor(Math.log(x)/Math.LN10),q=x/Math.pow(10,B);return B>=0?(q>=$r?10:q>=Sr?5:q>=Dr?2:1)*Math.pow(10,B):-Math.pow(10,-B)/(q>=$r?10:q>=Sr?5:q>=Dr?2:1)}function zl(g,O,o){var x=Math.abs(O-g)/Math.max(0,o),B=Math.pow(10,Math.floor(Math.log(x)/Math.LN10)),q=x/B;return q>=$r?B*=10:q>=Sr?B*=5:q>=Dr&&(B*=2),O<g?-B:B}const zo=1e3,hs=6e4,uo=60*hs,So=24*uo,k1=7*So,n0=30*So,N1=365*So;var Bl=new Date,Bo=new Date;function Ur(g,O,o,x){function B(q){return g(q=0===arguments.length?new Date:new Date(+q)),q}return B.floor=function(q){return g(q=new Date(+q)),q},B.ceil=function(q){return g(q=new Date(q-1)),O(q,1),g(q),q},B.round=function(q){var Te=B(q),it=B.ceil(q);return q-Te<it-q?Te:it},B.offset=function(q,Te){return O(q=new Date(+q),null==Te?1:Math.floor(Te)),q},B.range=function(q,Te,it){var Zt,Yt=[];if(q=B.ceil(q),it=null==it?1:Math.floor(it),!(q<Te&&it>0))return Yt;do{Yt.push(Zt=new Date(+q)),O(q,it),g(q)}while(Zt<q&&q<Te);return Yt},B.filter=function(q){return Ur(function(Te){if(Te>=Te)for(;g(Te),!q(Te);)Te.setTime(Te-1)},function(Te,it){if(Te>=Te)if(it<0)for(;++it<=0;)for(;O(Te,-1),!q(Te););else for(;--it>=0;)for(;O(Te,1),!q(Te););})},o&&(B.count=function(q,Te){return Bl.setTime(+q),Bo.setTime(+Te),g(Bl),g(Bo),Math.floor(o(Bl,Bo))},B.every=function(q){return q=Math.floor(q),isFinite(q)&&q>0?q>1?B.filter(x?function(Te){return x(Te)%q==0}:function(Te){return B.count(0,Te)%q==0}):B:null}),B}var dc=Ur(function(){},function(g,O){g.setTime(+g+O)},function(g,O){return O-g});dc.every=function(g){return g=Math.floor(g),isFinite(g)&&g>0?g>1?Ur(function(O){O.setTime(Math.floor(O/g)*g)},function(O,o){O.setTime(+O+o*g)},function(O,o){return(o-O)/g}):dc:null};const Yr=dc;const ho=Ur(function(g){g.setTime(g-g.getMilliseconds())},function(g,O){g.setTime(+g+O*zo)},function(g,O){return(O-g)/zo},function(g){return g.getUTCSeconds()});const a0=Ur(function(g){g.setTime(g-g.getMilliseconds()-g.getSeconds()*zo)},function(g,O){g.setTime(+g+O*hs)},function(g,O){return(O-g)/hs},function(g){return g.getMinutes()});const _l=Ur(function(g){g.setTime(g-g.getMilliseconds()-g.getSeconds()*zo-g.getMinutes()*hs)},function(g,O){g.setTime(+g+O*uo)},function(g,O){return(O-g)/uo},function(g){return g.getHours()});const qc=Ur(g=>g.setHours(0,0,0,0),(g,O)=>g.setDate(g.getDate()+O),(g,O)=>(O-g-(O.getTimezoneOffset()-g.getTimezoneOffset())*hs)/So,g=>g.getDate()-1);function fo(g){return Ur(function(O){O.setDate(O.getDate()-(O.getDay()+7-g)%7),O.setHours(0,0,0,0)},function(O,o){O.setDate(O.getDate()+7*o)},function(O,o){return(o-O-(o.getTimezoneOffset()-O.getTimezoneOffset())*hs)/k1})}var yl=fo(0),hc=fo(1),po=(fo(2),fo(3),fo(4));const H1=(fo(5),fo(6),Ur(function(g){g.setDate(1),g.setHours(0,0,0,0)},function(g,O){g.setMonth(g.getMonth()+O)},function(g,O){return O.getMonth()-g.getMonth()+12*(O.getFullYear()-g.getFullYear())},function(g){return g.getMonth()}));var Jc=Ur(function(g){g.setMonth(0,1),g.setHours(0,0,0,0)},function(g,O){g.setFullYear(g.getFullYear()+O)},function(g,O){return O.getFullYear()-g.getFullYear()},function(g){return g.getFullYear()});Jc.every=function(g){return isFinite(g=Math.floor(g))&&g>0?Ur(function(O){O.setFullYear(Math.floor(O.getFullYear()/g)*g),O.setMonth(0,1),O.setHours(0,0,0,0)},function(O,o){O.setFullYear(O.getFullYear()+o*g)}):null};const Gl=Jc;const O3=Ur(function(g){g.setUTCSeconds(0,0)},function(g,O){g.setTime(+g+O*hs)},function(g,O){return(O-g)/hs},function(g){return g.getUTCMinutes()});const c0=Ur(function(g){g.setUTCMinutes(0,0,0)},function(g,O){g.setTime(+g+O*uo)},function(g,O){return(O-g)/uo},function(g){return g.getUTCHours()});const mr=Ur(function(g){g.setUTCHours(0,0,0,0)},function(g,O){g.setUTCDate(g.getUTCDate()+O)},function(g,O){return(O-g)/So},function(g){return g.getUTCDate()-1});function bl(g){return Ur(function(O){O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-g)%7),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCDate(O.getUTCDate()+7*o)},function(O,o){return(o-O)/k1})}var d0=bl(0),V1=bl(1),tl=(bl(2),bl(3),bl(4));const R3=(bl(5),bl(6),Ur(function(g){g.setUTCDate(1),g.setUTCHours(0,0,0,0)},function(g,O){g.setUTCMonth(g.getUTCMonth()+O)},function(g,O){return O.getUTCMonth()-g.getUTCMonth()+12*(O.getUTCFullYear()-g.getUTCFullYear())},function(g){return g.getUTCMonth()}));var mc=Ur(function(g){g.setUTCMonth(0,1),g.setUTCHours(0,0,0,0)},function(g,O){g.setUTCFullYear(g.getUTCFullYear()+O)},function(g,O){return O.getUTCFullYear()-g.getUTCFullYear()},function(g){return g.getUTCFullYear()});mc.every=function(g){return isFinite(g=Math.floor(g))&&g>0?Ur(function(O){O.setUTCFullYear(Math.floor(O.getUTCFullYear()/g)*g),O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCFullYear(O.getUTCFullYear()+o*g)}):null};const Wl=mc;function fs(g,O,o,x,B,q){const Te=[[ho,1,zo],[ho,5,5e3],[ho,15,15e3],[ho,30,3e4],[q,1,hs],[q,5,5*hs],[q,15,15*hs],[q,30,30*hs],[B,1,uo],[B,3,3*uo],[B,6,6*uo],[B,12,12*uo],[x,1,So],[x,2,2*So],[o,1,k1],[O,1,n0],[O,3,3*n0],[g,1,N1]];function Yt(Zt,oi,pi){const _i=Math.abs(oi-Zt)/pi,Ci=In(([,,wi])=>wi).right(Te,_i);if(Ci===Te.length)return g.every(zl(Zt/N1,oi/N1,pi));if(0===Ci)return Yr.every(Math.max(zl(Zt,oi,pi),1));const[tn,vn]=Te[_i/Te[Ci-1][2]<Te[Ci][2]/_i?Ci-1:Ci];return tn.every(vn)}return[function it(Zt,oi,pi){const _i=oi<Zt;_i&&([Zt,oi]=[oi,Zt]);const Ci=pi&&"function"==typeof pi.range?pi:Yt(Zt,oi,pi),tn=Ci?Ci.range(Zt,+oi+1):[];return _i?tn.reverse():tn},Yt]}const[U1,H3]=fs(Wl,R3,d0,mr,c0,O3),[G1,$a]=fs(Gl,H1,yl,qc,_l,a0);function xl(g){if(0<=g.y&&g.y<100){var O=new Date(-1,g.m,g.d,g.H,g.M,g.S,g.L);return O.setFullYear(g.y),O}return new Date(g.y,g.m,g.d,g.H,g.M,g.S,g.L)}function $c(g){if(0<=g.y&&g.y<100){var O=new Date(Date.UTC(-1,g.m,g.d,g.H,g.M,g.S,g.L));return O.setUTCFullYear(g.y),O}return new Date(Date.UTC(g.y,g.m,g.d,g.H,g.M,g.S,g.L))}function gc(g,O,o){return{y:g,m:O,d:o,H:0,M:0,S:0,L:0}}var Z1={"-":"",_:" ",0:"0"},Fa=/^\s*\d+/,W1=/^%/,V3=/[\\^$*+?|[\]().{}]/g;function gr(g,O,o){var x=g<0?"-":"",B=(x?-g:g)+"",q=B.length;return x+(q<o?new Array(o-q+1).join(O)+B:B)}function z3(g){return g.replace(V3,"\\$&")}function _c(g){return new RegExp("^(?:"+g.map(z3).join("|")+")","i")}function il(g){return new Map(g.map((O,o)=>[O.toLowerCase(),o]))}function Y1(g,O,o){var x=Fa.exec(O.slice(o,o+1));return x?(g.w=+x[0],o+x[0].length):-1}function g0(g,O,o){var x=Fa.exec(O.slice(o,o+1));return x?(g.u=+x[0],o+x[0].length):-1}function _0(g,O,o){var x=Fa.exec(O.slice(o,o+2));return x?(g.U=+x[0],o+x[0].length):-1}function vc(g,O,o){var x=Fa.exec(O.slice(o,o+2));return x?(g.V=+x[0],o+x[0].length):-1}function Va(g,O,o){var x=Fa.exec(O.slice(o,o+2));return x?(g.W=+x[0],o+x[0].length):-1}function e1(g,O,o){var x=Fa.exec(O.slice(o,o+4));return x?(g.y=+x[0],o+x[0].length):-1}function yc(g,O,o){var x=Fa.exec(O.slice(o,o+2));return x?(g.y=+x[0]+(+x[0]>68?1900:2e3),o+x[0].length):-1}function K1(g,O,o){var x=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(o,o+6));return x?(g.Z=x[1]?0:-(x[2]+(x[3]||"00")),o+x[0].length):-1}function j1(g,O,o){var x=Fa.exec(O.slice(o,o+1));return x?(g.q=3*x[0]-3,o+x[0].length):-1}function v0(g,O,o){var x=Fa.exec(O.slice(o,o+2));return x?(g.m=x[0]-1,o+x[0].length):-1}function B3(g,O,o){var x=Fa.exec(O.slice(o,o+2));return x?(g.d=+x[0],o+x[0].length):-1}function Yl(g,O,o){var x=Fa.exec(O.slice(o,o+3));return x?(g.m=0,g.d=+x[0],o+x[0].length):-1}function t1(g,O,o){var x=Fa.exec(O.slice(o,o+2));return x?(g.H=+x[0],o+x[0].length):-1}function Q1(g,O,o){var x=Fa.exec(O.slice(o,o+2));return x?(g.M=+x[0],o+x[0].length):-1}function y0(g,O,o){var x=Fa.exec(O.slice(o,o+2));return x?(g.S=+x[0],o+x[0].length):-1}function Cl(g,O,o){var x=Fa.exec(O.slice(o,o+3));return x?(g.L=+x[0],o+x[0].length):-1}function b0(g,O,o){var x=Fa.exec(O.slice(o,o+6));return x?(g.L=Math.floor(x[0]/1e3),o+x[0].length):-1}function U3(g,O,o){var x=W1.exec(O.slice(o,o+1));return x?o+x[0].length:-1}function x0(g,O,o){var x=Fa.exec(O.slice(o));return x?(g.Q=+x[0],o+x[0].length):-1}function G3(g,O,o){var x=Fa.exec(O.slice(o));return x?(g.s=+x[0],o+x[0].length):-1}function q1(g,O){return gr(g.getDate(),O,2)}function Z3(g,O){return gr(g.getHours(),O,2)}function C0(g,O){return gr(g.getHours()%12||12,O,2)}function nl(g,O){return gr(1+qc.count(Gl(g),g),O,3)}function J1(g,O){return gr(g.getMilliseconds(),O,3)}function X1(g,O){return J1(g,O)+"000"}function W3(g,O){return gr(g.getMonth()+1,O,2)}function Y3(g,O){return gr(g.getMinutes(),O,2)}function $1(g,O){return gr(g.getSeconds(),O,2)}function M0(g){var O=g.getDay();return 0===O?7:O}function Ml(g,O){return gr(yl.count(Gl(g)-1,g),O,2)}function e2(g){var O=g.getDay();return O>=4||0===O?po(g):po.ceil(g)}function t2(g,O){return g=e2(g),gr(po.count(Gl(g),g)+(4===Gl(g).getDay()),O,2)}function K3(g){return g.getDay()}function j3(g,O){return gr(hc.count(Gl(g)-1,g),O,2)}function n1(g,O){return gr(g.getFullYear()%100,O,2)}function Q3(g,O){return gr((g=e2(g)).getFullYear()%100,O,2)}function w0(g,O){return gr(g.getFullYear()%1e4,O,4)}function S0(g,O){var o=g.getDay();return gr((g=o>=4||0===o?po(g):po.ceil(g)).getFullYear()%1e4,O,4)}function E0(g){var O=g.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+gr(O/60|0,"0",2)+gr(O%60,"0",2)}function r1(g,O){return gr(g.getUTCDate(),O,2)}function T0(g,O){return gr(g.getUTCHours(),O,2)}function bc(g,O){return gr(g.getUTCHours()%12||12,O,2)}function a1(g,O){return gr(1+mr.count(Wl(g),g),O,3)}function s1(g,O){return gr(g.getUTCMilliseconds(),O,3)}function n2(g,O){return s1(g,O)+"000"}function o1(g,O){return gr(g.getUTCMonth()+1,O,2)}function r2(g,O){return gr(g.getUTCMinutes(),O,2)}function xc(g,O){return gr(g.getUTCSeconds(),O,2)}function A0(g){var O=g.getUTCDay();return 0===O?7:O}function L0(g,O){return gr(d0.count(Wl(g)-1,g),O,2)}function D0(g){var O=g.getUTCDay();return O>=4||0===O?tl(g):tl.ceil(g)}function I0(g,O){return g=D0(g),gr(tl.count(Wl(g),g)+(4===Wl(g).getUTCDay()),O,2)}function O0(g){return g.getUTCDay()}function a2(g,O){return gr(V1.count(Wl(g)-1,g),O,2)}function Cc(g,O){return gr(g.getUTCFullYear()%100,O,2)}function s2(g,O){return gr((g=D0(g)).getUTCFullYear()%100,O,2)}function wl(g,O){return gr(g.getUTCFullYear()%1e4,O,4)}function q3(g,O){var o=g.getUTCDay();return gr((g=o>=4||0===o?tl(g):tl.ceil(g)).getUTCFullYear()%1e4,O,4)}function P0(){return"+0000"}function J3(){return"%"}function o2(g){return+g}function l1(g){return Math.floor(+g/1e3)}function d1(g){return null===g?NaN:+g}!function rl(g){(function F3(g){var O=g.dateTime,o=g.date,x=g.time,B=g.periods,q=g.days,Te=g.shortDays,it=g.months,Yt=g.shortMonths,Zt=_c(B),oi=il(B),pi=_c(q),_i=il(q),Ci=_c(Te),tn=il(Te),vn=_c(it),wi=il(it),hn=_c(Yt),fn=il(Yt),pn={a:function Jr(dn){return Te[dn.getDay()]},A:function Ks(dn){return q[dn.getDay()]},b:function Or(dn){return Yt[dn.getMonth()]},B:function is(dn){return it[dn.getMonth()]},c:null,d:q1,e:q1,f:X1,g:Q3,G:S0,H:Z3,I:C0,j:nl,L:J1,m:W3,M:Y3,p:function Oa(dn){return B[+(dn.getHours()>=12)]},q:function da(dn){return 1+~~(dn.getMonth()/3)},Q:o2,s:l1,S:$1,u:M0,U:Ml,V:t2,w:K3,W:j3,x:null,X:null,y:n1,Y:w0,Z:E0,"%":J3},Gn={a:function w1(dn){return Te[dn.getUTCDay()]},A:function Gc(dn){return q[dn.getUTCDay()]},b:function rc(dn){return Yt[dn.getUTCMonth()]},B:function Zc(dn){return it[dn.getUTCMonth()]},c:null,d:r1,e:r1,f:n2,g:s2,G:q3,H:T0,I:bc,j:a1,L:s1,m:o1,M:r2,p:function Es(dn){return B[+(dn.getUTCHours()>=12)]},q:function S1(dn){return 1+~~(dn.getUTCMonth()/3)},Q:o2,s:l1,S:xc,u:A0,U:L0,V:I0,w:O0,W:a2,x:null,X:null,y:Cc,Y:wl,Z:P0,"%":J3},kn={a:function xa(dn,Wn,hr){var Gi=Ci.exec(Wn.slice(hr));return Gi?(dn.w=tn.get(Gi[0].toLowerCase()),hr+Gi[0].length):-1},A:function Ln(dn,Wn,hr){var Gi=pi.exec(Wn.slice(hr));return Gi?(dn.w=_i.get(Gi[0].toLowerCase()),hr+Gi[0].length):-1},b:function gs(dn,Wn,hr){var Gi=hn.exec(Wn.slice(hr));return Gi?(dn.m=fn.get(Gi[0].toLowerCase()),hr+Gi[0].length):-1},B:function Mr(dn,Wn,hr){var Gi=vn.exec(Wn.slice(hr));return Gi?(dn.m=wi.get(Gi[0].toLowerCase()),hr+Gi[0].length):-1},c:function qr(dn,Wn,hr){return Ir(dn,O,Wn,hr)},d:B3,e:B3,f:b0,g:yc,G:e1,H:t1,I:t1,j:Yl,L:Cl,m:v0,M:Q1,p:function Ys(dn,Wn,hr){var Gi=Zt.exec(Wn.slice(hr));return Gi?(dn.p=oi.get(Gi[0].toLowerCase()),hr+Gi[0].length):-1},q:j1,Q:x0,s:G3,S:y0,u:g0,U:_0,V:vc,w:Y1,W:Va,x:function yo(dn,Wn,hr){return Ir(dn,o,Wn,hr)},X:function sa(dn,Wn,hr){return Ir(dn,x,Wn,hr)},y:yc,Y:e1,Z:K1,"%":U3};function xn(dn,Wn){return function(hr){var Za,Yn,oa,Gi=[],Pr=-1,kr=0,Hs=dn.length;for(hr instanceof Date||(hr=new Date(+hr));++Pr<Hs;)37===dn.charCodeAt(Pr)&&(Gi.push(dn.slice(kr,Pr)),null!=(Yn=Z1[Za=dn.charAt(++Pr)])?Za=dn.charAt(++Pr):Yn="e"===Za?" ":"0",(oa=Wn[Za])&&(Za=oa(hr,Yn)),Gi.push(Za),kr=Pr+1);return Gi.push(dn.slice(kr,Pr)),Gi.join("")}}function aa(dn,Wn){return function(hr){var kr,Hs,Gi=gc(1900,void 0,1);if(Ir(Gi,dn,hr+="",0)!=hr.length)return null;if("Q"in Gi)return new Date(Gi.Q);if("s"in Gi)return new Date(1e3*Gi.s+("L"in Gi?Gi.L:0));if(Wn&&!("Z"in Gi)&&(Gi.Z=0),"p"in Gi&&(Gi.H=Gi.H%12+12*Gi.p),void 0===Gi.m&&(Gi.m="q"in Gi?Gi.q:0),"V"in Gi){if(Gi.V<1||Gi.V>53)return null;"w"in Gi||(Gi.w=1),"Z"in Gi?(Hs=(kr=$c(gc(Gi.y,0,1))).getUTCDay(),kr=Hs>4||0===Hs?V1.ceil(kr):V1(kr),kr=mr.offset(kr,7*(Gi.V-1)),Gi.y=kr.getUTCFullYear(),Gi.m=kr.getUTCMonth(),Gi.d=kr.getUTCDate()+(Gi.w+6)%7):(Hs=(kr=xl(gc(Gi.y,0,1))).getDay(),kr=Hs>4||0===Hs?hc.ceil(kr):hc(kr),kr=qc.offset(kr,7*(Gi.V-1)),Gi.y=kr.getFullYear(),Gi.m=kr.getMonth(),Gi.d=kr.getDate()+(Gi.w+6)%7)}else("W"in Gi||"U"in Gi)&&("w"in Gi||(Gi.w="u"in Gi?Gi.u%7:"W"in Gi?1:0),Hs="Z"in Gi?$c(gc(Gi.y,0,1)).getUTCDay():xl(gc(Gi.y,0,1)).getDay(),Gi.m=0,Gi.d="W"in Gi?(Gi.w+6)%7+7*Gi.W-(Hs+5)%7:Gi.w+7*Gi.U-(Hs+6)%7);return"Z"in Gi?(Gi.H+=Gi.Z/100|0,Gi.M+=Gi.Z%100,$c(Gi)):xl(Gi)}}function Ir(dn,Wn,hr,Gi){for(var Za,Yn,Pr=0,kr=Wn.length,Hs=hr.length;Pr<kr;){if(Gi>=Hs)return-1;if(37===(Za=Wn.charCodeAt(Pr++))){if(Za=Wn.charAt(Pr++),!(Yn=kn[Za in Z1?Wn.charAt(Pr++):Za])||(Gi=Yn(dn,hr,Gi))<0)return-1}else if(Za!=hr.charCodeAt(Gi++))return-1}return Gi}return pn.x=xn(o,pn),pn.X=xn(x,pn),pn.c=xn(O,pn),Gn.x=xn(o,Gn),Gn.X=xn(x,Gn),Gn.c=xn(O,Gn),{format:function(dn){var Wn=xn(dn+="",pn);return Wn.toString=function(){return dn},Wn},parse:function(dn){var Wn=aa(dn+="",!1);return Wn.toString=function(){return dn},Wn},utcFormat:function(dn){var Wn=xn(dn+="",Gn);return Wn.toString=function(){return dn},Wn},utcParse:function(dn){var Wn=aa(dn+="",!0);return Wn.toString=function(){return dn},Wn}}})(g)}({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 X3=In(mn).right,R0=(In(d1),X3);function Zo(g,O){return g=+g,O=+O,function(o){return Math.round(g*(1-o)+O*o)}}function H0(g){return+g}var F0=[0,1];function El(g){return g}function d2(g,O){return(O-=g=+g)?function(o){return(o-g)/O}:function jl(g){return function(){return g}}(isNaN(O)?NaN:.5)}function ed(g,O,o){var x=g[0],B=g[1],q=O[0],Te=O[1];return B<x?(x=d2(B,x),q=o(Te,q)):(x=d2(x,B),q=o(q,Te)),function(it){return q(x(it))}}function u2(g,O,o){var x=Math.min(g.length,O.length)-1,B=new Array(x),q=new Array(x),Te=-1;for(g[x]<g[0]&&(g=g.slice().reverse(),O=O.slice().reverse());++Te<x;)B[Te]=d2(g[Te],g[Te+1]),q[Te]=o(O[Te],O[Te+1]);return function(it){var Yt=R0(g,it,1,x)-1;return q[Yt](B[Yt](it))}}function V0(g,O){return O.domain(g.domain()).range(g.range()).interpolate(g.interpolate()).clamp(g.clamp()).unknown(g.unknown())}function z0(){return function h2(){var x,B,q,it,Yt,Zt,g=F0,O=F0,o=di,Te=El;function oi(){var _i=Math.min(g.length,O.length);return Te!==El&&(Te=function $3(g,O){var o;return g>O&&(o=g,g=O,O=o),function(x){return Math.max(g,Math.min(O,x))}}(g[0],g[_i-1])),it=_i>2?u2:ed,Yt=Zt=null,pi}function pi(_i){return null==_i||isNaN(_i=+_i)?q:(Yt||(Yt=it(g.map(x),O,o)))(x(Te(_i)))}return pi.invert=function(_i){return Te(B((Zt||(Zt=it(O,g.map(x),Tr)))(_i)))},pi.domain=function(_i){return arguments.length?(g=Array.from(_i,H0),oi()):g.slice()},pi.range=function(_i){return arguments.length?(O=Array.from(_i),oi()):O.slice()},pi.rangeRound=function(_i){return O=Array.from(_i),o=Zo,oi()},pi.clamp=function(_i){return arguments.length?(Te=!!_i||El,oi()):Te!==El},pi.interpolate=function(_i){return arguments.length?(o=_i,oi()):o},pi.unknown=function(_i){return arguments.length?(q=_i,pi):q},function(_i,Ci){return x=_i,B=Ci,oi()}}()(El,El)}function Mc(g,O){switch(arguments.length){case 0:break;case 1:this.range(g);break;default:this.range(O).domain(g)}return this}var W0,K4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function m2(g){if(!(O=K4.exec(g)))throw new Error("invalid format: "+g);var O;return new U0({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 U0(g){this.fill=void 0===g.fill?" ":g.fill+"",this.align=void 0===g.align?">":g.align+"",this.sign=void 0===g.sign?"-":g.sign+"",this.symbol=void 0===g.symbol?"":g.symbol+"",this.zero=!!g.zero,this.width=void 0===g.width?void 0:+g.width,this.comma=!!g.comma,this.precision=void 0===g.precision?void 0:+g.precision,this.trim=!!g.trim,this.type=void 0===g.type?"":g.type+""}function Ql(g,O){if((o=(g=O?g.toExponential(O-1):g.toExponential()).indexOf("e"))<0)return null;var o,x=g.slice(0,o);return[x.length>1?x[0]+x.slice(2):x,+g.slice(o+1)]}function Sc(g){return(g=Ql(Math.abs(g)))?g[1]:NaN}function _2(g,O){var o=Ql(g,O);if(!o)return g+"";var x=o[0],B=o[1];return B<0?"0."+new Array(-B).join("0")+x:x.length>B+1?x.slice(0,B+1)+"."+x.slice(B+1):x+new Array(B-x.length+2).join("0")}m2.prototype=U0.prototype,U0.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 Ec={"%":(g,O)=>(100*g).toFixed(O),b:g=>Math.round(g).toString(2),c:g=>g+"",d:function g2(g){return Math.abs(g=Math.round(g))>=1e21?g.toLocaleString("en").replace(/,/g,""):g.toString(10)},e:(g,O)=>g.toExponential(O),f:(g,O)=>g.toFixed(O),g:(g,O)=>g.toPrecision(O),o:g=>Math.round(g).toString(8),p:(g,O)=>_2(100*g,O),r:_2,s:function Y0(g,O){var o=Ql(g,O);if(!o)return g+"";var x=o[0],B=o[1],q=B-(W0=3*Math.max(-8,Math.min(8,Math.floor(B/3))))+1,Te=x.length;return q===Te?x:q>Te?x+new Array(q-Te+1).join("0"):q>0?x.slice(0,q)+"."+x.slice(q):"0."+new Array(1-q).join("0")+Ql(g,Math.max(0,O+q-1))[0]},X:g=>Math.round(g).toString(16).toUpperCase(),x:g=>Math.round(g).toString(16)};function v2(g){return g}var h1,Ia,f1,y2=Array.prototype.map,nd=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Q0(g){var O=g.domain;return g.ticks=function(o){var x=O();return function wo(g,O,o){var x,q,Te,it,B=-1;if(o=+o,(g=+g)==(O=+O)&&o>0)return[g];if((x=O<g)&&(q=g,g=O,O=q),0===(it=Vo(g,O,o))||!isFinite(it))return[];if(it>0){let Yt=Math.round(g/it),Zt=Math.round(O/it);for(Yt*it<g&&++Yt,Zt*it>O&&--Zt,Te=new Array(q=Zt-Yt+1);++B<q;)Te[B]=(Yt+B)*it}else{it=-it;let Yt=Math.round(g*it),Zt=Math.round(O*it);for(Yt/it<g&&++Yt,Zt/it>O&&--Zt,Te=new Array(q=Zt-Yt+1);++B<q;)Te[B]=(Yt+B)/it}return x&&Te.reverse(),Te}(x[0],x[x.length-1],o??10)},g.tickFormat=function(o,x){var B=O();return function ad(g,O,o,x){var q,B=zl(g,O,o);switch((x=m2(x??",f")).type){case"s":var Te=Math.max(Math.abs(g),Math.abs(O));return null==x.precision&&!isNaN(q=function td(g,O){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Sc(O)/3)))-Sc(Math.abs(g)))}(B,Te))&&(x.precision=q),f1(x,Te);case"":case"e":case"g":case"p":case"r":null==x.precision&&!isNaN(q=function rd(g,O){return g=Math.abs(g),O=Math.abs(O)-g,Math.max(0,Sc(O)-Sc(g))+1}(B,Math.max(Math.abs(g),Math.abs(O))))&&(x.precision=q-("e"===x.type));break;case"f":case"%":null==x.precision&&!isNaN(q=function j0(g){return Math.max(0,-Sc(Math.abs(g)))}(B))&&(x.precision=q-2*("%"===x.type))}return Ia(x)}(B[0],B[B.length-1],o??10,x)},g.nice=function(o){null==o&&(o=10);var Yt,Zt,x=O(),B=0,q=x.length-1,Te=x[B],it=x[q],oi=10;for(it<Te&&(Zt=Te,Te=it,it=Zt,Zt=B,B=q,q=Zt);oi-- >0;){if((Zt=Vo(Te,it,o))===Yt)return x[B]=Te,x[q]=it,O(x);if(Zt>0)Te=Math.floor(Te/Zt)*Zt,it=Math.ceil(it/Zt)*Zt;else{if(!(Zt<0))break;Te=Math.ceil(Te*Zt)/Zt,it=Math.floor(it*Zt)/Zt}Yt=Zt}return g},g}function Tl(){var g=z0();return g.copy=function(){return V0(g,Tl())},Mc.apply(g,arguments),Q0(g)}function q0(g,O,o){g=+g,O=+O,o=(B=arguments.length)<2?(O=g,g=0,1):B<3?1:+o;for(var x=-1,B=0|Math.max(0,Math.ceil((O-g)/o)),q=new Array(B);++x<B;)q[x]=g+x*o;return q}!function K0(g){h1=function ba(g){var O=void 0===g.grouping||void 0===g.thousands?v2:function G0(g,O){return function(o,x){for(var B=o.length,q=[],Te=0,it=g[0],Yt=0;B>0&&it>0&&(Yt+it+1>x&&(it=Math.max(1,x-Yt)),q.push(o.substring(B-=it,B+it)),!((Yt+=it+1)>x));)it=g[Te=(Te+1)%g.length];return q.reverse().join(O)}}(y2.call(g.grouping,Number),g.thousands+""),o=void 0===g.currency?"":g.currency[0]+"",x=void 0===g.currency?"":g.currency[1]+"",B=void 0===g.decimal?".":g.decimal+"",q=void 0===g.numerals?v2:function Z0(g){return function(O){return O.replace(/[0-9]/g,function(o){return g[+o]})}}(y2.call(g.numerals,String)),Te=void 0===g.percent?"%":g.percent+"",it=void 0===g.minus?"\u2212":g.minus+"",Yt=void 0===g.nan?"NaN":g.nan+"";function Zt(pi){var _i=(pi=m2(pi)).fill,Ci=pi.align,tn=pi.sign,vn=pi.symbol,wi=pi.zero,hn=pi.width,fn=pi.comma,pn=pi.precision,Gn=pi.trim,kn=pi.type;"n"===kn?(fn=!0,kn="g"):Ec[kn]||(void 0===pn&&(pn=12),Gn=!0,kn="g"),(wi||"0"===_i&&"="===Ci)&&(wi=!0,_i="0",Ci="=");var xn="$"===vn?o:"#"===vn&&/[boxX]/.test(kn)?"0"+kn.toLowerCase():"",aa="$"===vn?x:/[%p]/.test(kn)?Te:"",Ir=Ec[kn],Ys=/[defgprs%]/.test(kn);function xa(Ln){var qr,yo,sa,gs=xn,Mr=aa;if("c"===kn)Mr=Ir(Ln)+Mr,Ln="";else{var Jr=(Ln=+Ln)<0||1/Ln<0;if(Ln=isNaN(Ln)?Yt:Ir(Math.abs(Ln),pn),Gn&&(Ln=function id(g){e:for(var B,O=g.length,o=1,x=-1;o<O;++o)switch(g[o]){case".":x=B=o;break;case"0":0===x&&(x=o),B=o;break;default:if(!+g[o])break e;x>0&&(x=0)}return x>0?g.slice(0,x)+g.slice(B+1):g}(Ln)),Jr&&0==+Ln&&"+"!==tn&&(Jr=!1),gs=(Jr?"("===tn?tn:it:"-"===tn||"("===tn?"":tn)+gs,Mr=("s"===kn?nd[8+W0/3]:"")+Mr+(Jr&&"("===tn?")":""),Ys)for(qr=-1,yo=Ln.length;++qr<yo;)if(48>(sa=Ln.charCodeAt(qr))||sa>57){Mr=(46===sa?B+Ln.slice(qr+1):Ln.slice(qr))+Mr,Ln=Ln.slice(0,qr);break}}fn&&!wi&&(Ln=O(Ln,1/0));var Ks=gs.length+Ln.length+Mr.length,Or=Ks<hn?new Array(hn-Ks+1).join(_i):"";switch(fn&&wi&&(Ln=O(Or+Ln,Or.length?hn-Mr.length:1/0),Or=""),Ci){case"<":Ln=gs+Ln+Mr+Or;break;case"=":Ln=gs+Or+Ln+Mr;break;case"^":Ln=Or.slice(0,Ks=Or.length>>1)+gs+Ln+Mr+Or.slice(Ks);break;default:Ln=Or+gs+Ln+Mr}return q(Ln)}return pn=void 0===pn?6:/[gprs]/.test(kn)?Math.max(1,Math.min(21,pn)):Math.max(0,Math.min(20,pn)),xa.toString=function(){return pi+""},xa}return{format:Zt,formatPrefix:function oi(pi,_i){var Ci=Zt(((pi=m2(pi)).type="f",pi)),tn=3*Math.max(-8,Math.min(8,Math.floor(Sc(_i)/3))),vn=Math.pow(10,-tn),wi=nd[8+tn/3];return function(hn){return Ci(vn*hn)+wi}}}}(g),Ia=h1.format,f1=h1.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const sd=Symbol("implicit");function Al(){var g=new Map,O=[],o=[],x=sd;function B(q){var Te=q+"",it=g.get(Te);if(!it){if(x!==sd)return x;g.set(Te,it=O.push(q))}return o[(it-1)%o.length]}return B.domain=function(q){if(!arguments.length)return O.slice();O=[],g=new Map;for(const Te of q){const it=Te+"";g.has(it)||g.set(it,O.push(Te))}return B},B.range=function(q){return arguments.length?(o=Array.from(q),B):o.slice()},B.unknown=function(q){return arguments.length?(x=q,B):x},B.copy=function(){return Al(O,o).unknown(x)},Mc.apply(B,arguments),B}function Eo(){var q,Te,g=Al().unknown(void 0),O=g.domain,o=g.range,x=0,B=1,it=!1,Yt=0,Zt=0,oi=.5;function pi(){var _i=O().length,Ci=B<x,tn=Ci?B:x,vn=Ci?x:B;q=(vn-tn)/Math.max(1,_i-Yt+2*Zt),it&&(q=Math.floor(q)),tn+=(vn-tn-q*(_i-Yt))*oi,Te=q*(1-Yt),it&&(tn=Math.round(tn),Te=Math.round(Te));var wi=q0(_i).map(function(hn){return tn+q*hn});return o(Ci?wi.reverse():wi)}return delete g.unknown,g.domain=function(_i){return arguments.length?(O(_i),pi()):O()},g.range=function(_i){return arguments.length?([x,B]=_i,x=+x,B=+B,pi()):[x,B]},g.rangeRound=function(_i){return[x,B]=_i,x=+x,B=+B,it=!0,pi()},g.bandwidth=function(){return Te},g.step=function(){return q},g.round=function(_i){return arguments.length?(it=!!_i,pi()):it},g.padding=function(_i){return arguments.length?(Yt=Math.min(1,Zt=+_i),pi()):Yt},g.paddingInner=function(_i){return arguments.length?(Yt=Math.min(1,_i),pi()):Yt},g.paddingOuter=function(_i){return arguments.length?(Zt=+_i,pi()):Zt},g.align=function(_i){return arguments.length?(oi=Math.max(0,Math.min(1,_i)),pi()):oi},g.copy=function(){return Eo(O(),[x,B]).round(it).paddingInner(Yt).paddingOuter(Zt).align(oi)},Mc.apply(pi(),arguments)}function J0(g,O,o=d1){if(x=g.length){if((O=+O)<=0||x<2)return+o(g[0],0,g);if(O>=1)return+o(g[x-1],x-1,g);var x,B=(x-1)*O,q=Math.floor(B),Te=+o(g[q],q,g);return Te+(+o(g[q+1],q+1,g)-Te)*(B-q)}}function C2(){var x,g=[],O=[],o=[];function B(){var Te=0,it=Math.max(1,O.length);for(o=new Array(it-1);++Te<it;)o[Te-1]=J0(g,Te/it);return q}function q(Te){return null==Te||isNaN(Te=+Te)?x:O[R0(o,Te)]}return q.invertExtent=function(Te){var it=O.indexOf(Te);return it<0?[NaN,NaN]:[it>0?o[it-1]:g[0],it<o.length?o[it]:g[g.length-1]]},q.domain=function(Te){if(!arguments.length)return g.slice();g=[];for(let it of Te)null!=it&&!isNaN(it=+it)&&g.push(it);return g.sort(mn),B()},q.range=function(Te){return arguments.length?(O=Array.from(Te),B()):O.slice()},q.unknown=function(Te){return arguments.length?(x=Te,q):x},q.quantiles=function(){return o.slice()},q.copy=function(){return C2().domain(g).range(O).unknown(x)},Mc.apply(q,arguments)}p(6087);const M2=["caretElm"];function j4(g,O){}const od=function(g){return{model:g}};function p1(g,O){if(1&g&&(t.TgZ(0,"span"),t.YNc(1,j4,0,0,"ng-template",5),t.qZA()),2&g){const o=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",o.template)("ngTemplateOutletContext",t.VKq(2,od,o.context))}}function w2(g,O){if(1&g&&t._UZ(0,"span",6),2&g){const o=t.oxw();t.Q6J("innerHTML",o.title,t.oJD)}}function $0(g,O){if(1&g&&(t.TgZ(0,"header",4)(1,"span",5),t._uU(2),t.qZA()()),2&g){const o=t.oxw();t.xp6(2),t.Oqu(o.title)}}function Ll(g,O){if(1&g){const o=t.EpF();t.TgZ(0,"li",6)(1,"ngx-charts-legend-entry",7),t.NdJ("select",function(B){t.CHM(o);const q=t.oxw();return t.KtG(q.labelClick.emit(B))})("activate",function(B){t.CHM(o);const q=t.oxw();return t.KtG(q.activate(B))})("deactivate",function(B){t.CHM(o);const q=t.oxw();return t.KtG(q.deactivate(B))}),t.qZA()()}if(2&g){const o=O.$implicit,x=t.oxw();t.xp6(1),t.Q6J("label",o.label)("formattedLabel",o.formattedLabel)("color",o.color)("isActive",x.isActive(o))}}function ld(g,O){if(1&g&&(t.O4$(),t.kcU(),t._UZ(0,"ngx-charts-scale-legend",4)),2&g){const o=t.oxw();t.Q6J("horizontal",o.legendOptions&&o.legendOptions.position===o.LegendPosition.Below)("valueRange",o.legendOptions.domain)("colors",o.legendOptions.colors)("height",o.view[1])("width",o.legendWidth)}}function S2(g,O){if(1&g){const o=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"ngx-charts-legend",5),t.NdJ("labelClick",function(B){t.CHM(o);const q=t.oxw();return t.KtG(q.legendLabelClick.emit(B))})("labelActivate",function(B){t.CHM(o);const q=t.oxw();return t.KtG(q.legendLabelActivate.emit(B))})("labelDeactivate",function(B){t.CHM(o);const q=t.oxw();return t.KtG(q.legendLabelDeactivate.emit(B))}),t.qZA()}if(2&g){const o=t.oxw();t.Q6J("horizontal",o.legendOptions&&o.legendOptions.position===o.LegendPosition.Below)("data",o.legendOptions.domain)("title",o.legendOptions.title)("colors",o.legendOptions.colors)("height",o.view[1])("width",o.legendWidth)("activeEntries",o.activeEntries)}}const Tc=["*"],cd=["ngx-charts-axis-label",""],m1=["ticksel"],g1=["ngx-charts-x-axis-ticks",""];function Dl(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"g",3)(1,"title"),t._uU(2),t.qZA(),t.TgZ(3,"text",4),t._uU(4),t.qZA()()),2&g){const o=O.$implicit,x=t.oxw();t.uIk("transform",x.tickTransform(o)),t.xp6(2),t.Oqu(x.tickFormat(o)),t.xp6(1),t.Udp("font-size","12px"),t.uIk("text-anchor",x.textAnchor)("transform",x.textTransform),t.xp6(1),t.hij(" ",x.tickTrim(x.tickFormat(o))," ")}}function e3(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"g"),t._UZ(1,"line",6),t.qZA()),2&g){const o=t.oxw(2);t.uIk("transform",o.gridLineTransform()),t.xp6(1),t.uIk("y1",-o.gridLineHeight)}}function E2(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,e3,2,2,"g",5),t.qZA()),2&g){const o=O.$implicit,x=t.oxw();t.uIk("transform",x.tickTransform(o)),t.xp6(1),t.Q6J("ngIf",x.showGridLines)}}const dd=["ngx-charts-x-axis",""];function ud(g,O){if(1&g){const o=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("dimensionsChanged",function(B){t.CHM(o);const q=t.oxw();return t.KtG(q.emitTicksHeight(B))}),t.qZA()}if(2&g){const o=t.oxw();t.Q6J("trimTicks",o.trimTicks)("rotateTicks",o.rotateTicks)("maxTickLength",o.maxTickLength)("tickFormatting",o.tickFormatting)("tickArguments",o.tickArguments)("tickStroke",o.tickStroke)("scale",o.xScale)("orient",o.xOrient)("showGridLines",o.showGridLines)("gridLineHeight",o.dims.height)("width",o.dims.width)("tickValues",o.ticks)}}function T2(g,O){if(1&g&&(t.O4$(),t._UZ(0,"g",3)),2&g){const o=t.oxw();t.Q6J("label",o.labelText)("offset",o.labelOffset)("orient",o.orientation.Bottom)("height",o.dims.height)("width",o.dims.width)}}const ql=["ngx-charts-y-axis-ticks",""];function _1(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"g",4)(1,"title"),t._uU(2),t.qZA(),t.TgZ(3,"text",5),t._uU(4),t.qZA()()),2&g){const o=O.$implicit,x=t.oxw();t.uIk("transform",x.transform(o)),t.xp6(2),t.Oqu(x.tickFormat(o)),t.xp6(1),t.Udp("font-size","12px"),t.uIk("dy",x.dy)("x",x.x1)("y",x.y1)("text-anchor",x.textAnchor),t.xp6(1),t.hij(" ",x.tickTrim(x.tickFormat(o))," ")}}function hd(g,O){if(1&g&&(t.O4$(),t._UZ(0,"path",6)),2&g){const o=t.oxw();t.uIk("d",o.referenceAreaPath)("transform",o.gridLineTransform())}}function fd(g,O){if(1&g&&(t.O4$(),t._UZ(0,"line",9)),2&g){const o=t.oxw(3);t.uIk("x2",o.gridLineWidth)}}function A2(g,O){if(1&g&&(t.O4$(),t._UZ(0,"line",9)),2&g){const o=t.oxw(3);t.uIk("x2",-o.gridLineWidth)}}function v1(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,fd,1,1,"line",8),t.YNc(2,A2,1,1,"line",8),t.qZA()),2&g){const o=t.oxw(2);t.uIk("transform",o.gridLineTransform()),t.xp6(1),t.Q6J("ngIf",o.orient===o.Orientation.Left),t.xp6(1),t.Q6J("ngIf",o.orient===o.Orientation.Right)}}function L2(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,v1,3,3,"g",7),t.qZA()),2&g){const o=O.$implicit,x=t.oxw();t.uIk("transform",x.transform(o)),t.xp6(1),t.Q6J("ngIf",x.showGridLines)}}function mo(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"g")(1,"title"),t._uU(2),t.qZA(),t.TgZ(3,"text",11),t._uU(4),t.qZA()()),2&g){const o=t.oxw(2).$implicit,x=t.oxw();t.xp6(2),t.Oqu(x.tickTrim(x.tickFormat(o.value))),t.xp6(1),t.uIk("dy",x.dy)("y",-6)("x",x.gridLineWidth)("text-anchor",x.textAnchor),t.xp6(1),t.hij(" ",o.name," ")}}function Q4(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"g"),t._UZ(1,"line",10),t.YNc(2,mo,5,6,"g",7),t.qZA()),2&g){const o=t.oxw().$implicit,x=t.oxw();t.uIk("transform",x.transform(o.value)),t.xp6(1),t.uIk("x2",x.gridLineWidth)("transform",x.gridLineTransform()),t.xp6(1),t.Q6J("ngIf",x.showRefLabels)}}function pd(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Q4,3,4,"g",7),t.qZA()),2&g){const o=t.oxw();t.xp6(1),t.Q6J("ngIf",o.showRefLines)}}const Il=["ngx-charts-y-axis",""];function t3(g,O){if(1&g){const o=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("dimensionsChanged",function(B){t.CHM(o);const q=t.oxw();return t.KtG(q.emitTicksWidth(B))}),t.qZA()}if(2&g){const o=t.oxw();t.Q6J("trimTicks",o.trimTicks)("maxTickLength",o.maxTickLength)("tickFormatting",o.tickFormatting)("tickArguments",o.tickArguments)("tickValues",o.ticks)("tickStroke",o.tickStroke)("scale",o.yScale)("orient",o.yOrient)("showGridLines",o.showGridLines)("gridLineWidth",o.dims.width)("referenceLines",o.referenceLines)("showRefLines",o.showRefLines)("showRefLabels",o.showRefLabels)("height",o.dims.height)}}function Ac(g,O){if(1&g&&(t.O4$(),t._UZ(0,"g",3)),2&g){const o=t.oxw();t.Q6J("label",o.labelText)("offset",o.labelOffset)("orient",o.yOrient)("height",o.dims.height)("width",o.dims.width)}}const md=["ngx-charts-svg-linear-gradient",""];function Ol(g,O){if(1&g&&(t.O4$(),t._UZ(0,"stop")),2&g){const o=O.$implicit;t.Udp("stop-color",o.color)("stop-opacity",o.opacity),t.uIk("offset",o.offset+"%")}}const i3=["ngx-charts-grid-panel",""],n3=["ngx-charts-grid-panel-series",""];function yd(g,O){if(1&g&&(t.O4$(),t._UZ(0,"g",1)),2&g){const o=O.$implicit;t.ekj("grid-panel",!0)("odd","odd"===o.class)("even","even"===o.class),t.Q6J("height",o.height)("width",o.width)("x",o.x)("y",o.y)}}const N2=["tooltipTemplate"],al=function(g,O){return[g,O]},R2=".ngx-charts-outer{-webkit-animation:chartFadeIn linear .6s;animation:chartFadeIn linear .6s}@-webkit-keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}@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 .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 .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 .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.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",Rd=["ngx-charts-bar",""];function b1(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"defs"),t._UZ(1,"g",2),t.qZA()),2&g){const o=t.oxw();t.xp6(1),t.Q6J("orientation",o.orientation)("name",o.gradientId)("stops",o.gradientStops)}}const Hd=["ngx-charts-bar-label",""],Ao=["ngx-charts-series-vertical",""];function Lo(g,O){if(1&g){const o=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("select",function(B){t.CHM(o);const q=t.oxw(2);return t.KtG(q.onClick(B))})("activate",function(B){t.CHM(o);const q=t.oxw(2);return t.KtG(q.activate.emit(B))})("deactivate",function(B){t.CHM(o);const q=t.oxw(2);return t.KtG(q.deactivate.emit(B))}),t.qZA()}if(2&g){const o=O.$implicit,x=t.oxw(2);t.Q6J("@animationState","active")("@.disabled",!x.animations)("width",o.width)("height",o.height)("x",o.x)("y",o.y)("fill",o.color)("stops",o.gradientStops)("data",o.data)("orientation",x.barOrientation.Vertical)("roundEdges",o.roundEdges)("gradient",x.gradient)("ariaLabel",o.ariaLabel)("isActive",x.isActive(o.data))("tooltipDisabled",x.tooltipDisabled)("tooltipPlacement",x.tooltipPlacement)("tooltipType",x.tooltipType)("tooltipTitle",x.tooltipTemplate?void 0:o.tooltipText)("tooltipTemplate",x.tooltipTemplate)("tooltipContext",o.data)("noBarWhenZero",x.noBarWhenZero)("animations",x.animations)}}function Ko(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Lo,1,22,"g",1),t.qZA()),2&g){const o=t.oxw();t.xp6(1),t.Q6J("ngForOf",o.bars)("ngForTrackBy",o.trackBy)}}function F2(g,O){if(1&g){const o=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("select",function(B){t.CHM(o);const q=t.oxw(2);return t.KtG(q.onClick(B))})("activate",function(B){t.CHM(o);const q=t.oxw(2);return t.KtG(q.activate.emit(B))})("deactivate",function(B){t.CHM(o);const q=t.oxw(2);return t.KtG(q.deactivate.emit(B))}),t.qZA()}if(2&g){const o=O.$implicit,x=t.oxw(2);t.Q6J("width",o.width)("height",o.height)("x",o.x)("y",o.y)("fill",o.color)("stops",o.gradientStops)("data",o.data)("orientation",x.barOrientation.Vertical)("roundEdges",o.roundEdges)("gradient",x.gradient)("ariaLabel",o.ariaLabel)("isActive",x.isActive(o.data))("tooltipDisabled",x.tooltipDisabled)("tooltipPlacement",x.tooltipPlacement)("tooltipType",x.tooltipType)("tooltipTitle",x.tooltipTemplate?void 0:o.tooltipText)("tooltipTemplate",x.tooltipTemplate)("tooltipContext",o.data)("noBarWhenZero",x.noBarWhenZero)("animations",x.animations)}}function Oc(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,F2,1,20,"g",1),t.qZA()),2&g){const o=t.oxw();t.xp6(1),t.Q6J("ngForOf",o.bars)("ngForTrackBy",o.trackBy)}}function ol(g,O){if(1&g){const o=t.EpF();t.O4$(),t.TgZ(0,"g",4),t.NdJ("dimensionsChanged",function(B){const Te=t.CHM(o).index,it=t.oxw(2);return t.KtG(it.dataLabelHeightChanged.emit({size:B,index:Te}))}),t.qZA()}if(2&g){const o=O.$implicit,x=t.oxw(2);t.Q6J("barX",o.x)("barY",o.y)("barWidth",o.width)("barHeight",o.height)("value",o.total)("valueFormatting",x.dataLabelFormatting)("orientation",x.barOrientation.Vertical)}}function d3(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,ol,1,7,"g",3),t.qZA()),2&g){const o=t.oxw();t.xp6(1),t.Q6J("ngForOf",o.barsForDataLabels)("ngForTrackBy",o.trackDataLabelBy)}}function V2(g,O){if(1&g){const o=t.EpF();t.O4$(),t.TgZ(0,"g",5),t.NdJ("dimensionsChanged",function(B){t.CHM(o);const q=t.oxw();return t.KtG(q.updateXAxisHeight(B))}),t.qZA()}if(2&g){const o=t.oxw();t.Q6J("xScale",o.xScale)("dims",o.dims)("showGridLines",o.showGridLines)("showLabel",o.showXAxisLabel)("labelText",o.xAxisLabel)("trimTicks",o.trimXAxisTicks)("rotateTicks",o.rotateXAxisTicks)("maxTickLength",o.maxXAxisTickLength)("tickFormatting",o.xAxisTickFormatting)("ticks",o.xAxisTicks)("xAxisOffset",o.dataLabelMaxHeight.negative)}}function un(g,O){if(1&g){const o=t.EpF();t.O4$(),t.TgZ(0,"g",6),t.NdJ("dimensionsChanged",function(B){t.CHM(o);const q=t.oxw();return t.KtG(q.updateYAxisWidth(B))}),t.qZA()}if(2&g){const o=t.oxw();t.Q6J("yScale",o.yScale)("dims",o.dims)("showGridLines",o.showGridLines)("showLabel",o.showYAxisLabel)("labelText",o.yAxisLabel)("trimTicks",o.trimYAxisTicks)("maxTickLength",o.maxYAxisTickLength)("tickFormatting",o.yAxisTickFormatting)("ticks",o.yAxisTicks)}}function Cn(g,O){if(1&g){const o=t.EpF();t.O4$(),t.TgZ(0,"g",6),t.NdJ("dimensionsChanged",function(B){t.CHM(o);const q=t.oxw();return t.KtG(q.updateXAxisHeight(B))}),t.qZA()}if(2&g){const o=t.oxw();t.Q6J("xScale",o.groupScale)("dims",o.dims)("showLabel",o.showXAxisLabel)("labelText",o.xAxisLabel)("trimTicks",o.trimXAxisTicks)("rotateTicks",o.rotateXAxisTicks)("maxTickLength",o.maxXAxisTickLength)("tickFormatting",o.xAxisTickFormatting)("ticks",o.xAxisTicks)("xAxisOffset",o.dataLabelMaxHeight.negative)}}function Pn(g,O){if(1&g){const o=t.EpF();t.O4$(),t.TgZ(0,"g",7),t.NdJ("dimensionsChanged",function(B){t.CHM(o);const q=t.oxw();return t.KtG(q.updateYAxisWidth(B))}),t.qZA()}if(2&g){const o=t.oxw();t.Q6J("yScale",o.valueScale)("dims",o.dims)("showGridLines",o.showGridLines)("showLabel",o.showYAxisLabel)("labelText",o.yAxisLabel)("trimTicks",o.trimYAxisTicks)("maxTickLength",o.maxYAxisTickLength)("tickFormatting",o.yAxisTickFormatting)("ticks",o.yAxisTicks)}}function sr(g,O){if(1&g){const o=t.EpF();t.O4$(),t.TgZ(0,"g",9),t.NdJ("select",function(B){const Te=t.CHM(o).$implicit,it=t.oxw(2);return t.KtG(it.onClick(B,Te))})("activate",function(B){const Te=t.CHM(o).$implicit,it=t.oxw(2);return t.KtG(it.onActivate(B,Te))})("deactivate",function(B){const Te=t.CHM(o).$implicit,it=t.oxw(2);return t.KtG(it.onDeactivate(B,Te))})("dataLabelHeightChanged",function(B){const Te=t.CHM(o).index,it=t.oxw(2);return t.KtG(it.onDataLabelMaxHeightChanged(B,Te))}),t.qZA()}if(2&g){const o=O.$implicit,x=t.oxw(2);t.Q6J("@animationState","active")("activeEntries",x.activeEntries)("xScale",x.innerScale)("yScale",x.valueScale)("colors",x.colors)("series",o.series)("dims",x.dims)("gradient",x.gradient)("tooltipDisabled",x.tooltipDisabled)("tooltipTemplate",x.tooltipTemplate)("showDataLabel",x.showDataLabel)("dataLabelFormatting",x.dataLabelFormatting)("seriesName",o.name)("roundEdges",x.roundEdges)("animations",x.animations)("noBarWhenZero",x.noBarWhenZero),t.uIk("transform",x.groupTransform(o))}}function Ba(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,sr,1,17,"g",8),t.qZA()),2&g){const o=t.oxw();t.xp6(1),t.Q6J("ngForOf",o.results)("ngForTrackBy",o.trackBy)}}function jo(g,O){if(1&g){const o=t.EpF();t.O4$(),t.TgZ(0,"g",9),t.NdJ("select",function(B){const Te=t.CHM(o).$implicit,it=t.oxw(2);return t.KtG(it.onClick(B,Te))})("activate",function(B){const Te=t.CHM(o).$implicit,it=t.oxw(2);return t.KtG(it.onActivate(B,Te))})("deactivate",function(B){const Te=t.CHM(o).$implicit,it=t.oxw(2);return t.KtG(it.onDeactivate(B,Te))})("dataLabelHeightChanged",function(B){const Te=t.CHM(o).index,it=t.oxw(2);return t.KtG(it.onDataLabelMaxHeightChanged(B,Te))}),t.qZA()}if(2&g){const o=O.$implicit,x=t.oxw(2);t.Q6J("activeEntries",x.activeEntries)("xScale",x.innerScale)("yScale",x.valueScale)("colors",x.colors)("series",o.series)("dims",x.dims)("gradient",x.gradient)("tooltipDisabled",x.tooltipDisabled)("tooltipTemplate",x.tooltipTemplate)("showDataLabel",x.showDataLabel)("dataLabelFormatting",x.dataLabelFormatting)("seriesName",o.name)("roundEdges",x.roundEdges)("animations",x.animations)("noBarWhenZero",x.noBarWhenZero),t.uIk("transform",x.groupTransform(o))}}function Ua(g,O){if(1&g&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,jo,1,16,"g",8),t.qZA()),2&g){const o=t.oxw();t.xp6(1),t.Q6J("ngForOf",o.results)("ngForTrackBy",o.trackBy)}}function Vh(g,O,o){o=o||{};let x,B,q,Te=null,it=0;function Yt(){it=!1===o.leading?0:+new Date,Te=null,q=g.apply(x,B)}return function(){const Zt=+new Date;!it&&!1===o.leading&&(it=Zt);const oi=O-(Zt-it);return x=this,B=arguments,oi<=0?(clearTimeout(Te),Te=null,it=Zt,q=g.apply(x,B)):!Te&&!1!==o.trailing&&(Te=setTimeout(Yt,oi)),q}}function zh(g,O){return function(x,B,q){return{configurable:!0,enumerable:q.enumerable,get:function(){return Object.defineProperty(this,B,{configurable:!0,enumerable:q.enumerable,value:Vh(q.value,g,O)}),this[B]}}}}var jn=(()=>{return(g=jn||(jn={})).Top="top",g.Bottom="bottom",g.Left="left",g.Right="right",g.Center="center",jn;var g})();function Z2(g,O,o){return o===jn.Top?g.top-7:o===jn.Bottom?g.top+g.height-O.height+7:o===jn.Center?g.top+g.height/2-O.height/2:void 0}function _u(g,O,o){return o===jn.Left?g.left-7:o===jn.Right?g.left+g.width-O.width+7:o===jn.Center?g.left+g.width/2-O.width/2:void 0}class Gs{static calculateVerticalAlignment(O,o,x){let B=Z2(O,o,x);return B+o.height>window.innerHeight&&(B=window.innerHeight-o.height),B}static calculateVerticalCaret(O,o,x,B){let q;B===jn.Top&&(q=O.height/2-x.height/2+7),B===jn.Bottom&&(q=o.height-O.height/2-x.height/2-7),B===jn.Center&&(q=o.height/2-x.height/2);const Te=Z2(O,o,B);return Te+o.height>window.innerHeight&&(q+=Te+o.height-window.innerHeight),q}static calculateHorizontalAlignment(O,o,x){let B=_u(O,o,x);return B+o.width>window.innerWidth&&(B=window.innerWidth-o.width),B}static calculateHorizontalCaret(O,o,x,B){let q;B===jn.Left&&(q=O.width/2-x.width/2+7),B===jn.Right&&(q=o.width-O.width/2-x.width/2-7),B===jn.Center&&(q=o.width/2-x.width/2);const Te=_u(O,o,B);return Te+o.width>window.innerWidth&&(q+=Te+o.width-window.innerWidth),q}static shouldFlip(O,o,x,B){let q=!1;return x===jn.Right&&O.left+O.width+o.width+B>window.innerWidth&&(q=!0),x===jn.Left&&O.left-o.width-B<0&&(q=!0),x===jn.Top&&O.top-o.height-B<0&&(q=!0),x===jn.Bottom&&O.top+O.height+o.height+B>window.innerHeight&&(q=!0),q}static positionCaret(O,o,x,B,q){let Te=0,it=0;return O===jn.Right?(it=-7,Te=Gs.calculateVerticalCaret(x,o,B,q)):O===jn.Left?(it=o.width,Te=Gs.calculateVerticalCaret(x,o,B,q)):O===jn.Top?(Te=o.height,it=Gs.calculateHorizontalCaret(x,o,B,q)):O===jn.Bottom&&(Te=-7,it=Gs.calculateHorizontalCaret(x,o,B,q)),{top:Te,left:it}}static positionContent(O,o,x,B,q){let Te=0,it=0;return O===jn.Right?(it=x.left+x.width+B,Te=Gs.calculateVerticalAlignment(x,o,q)):O===jn.Left?(it=x.left-o.width-B,Te=Gs.calculateVerticalAlignment(x,o,q)):O===jn.Top?(Te=x.top-o.height-B,it=Gs.calculateHorizontalAlignment(x,o,q)):O===jn.Bottom&&(Te=x.top+x.height+B,it=Gs.calculateHorizontalAlignment(x,o,q)),{top:Te,left:it}}static determinePlacement(O,o,x,B){if(Gs.shouldFlip(x,o,O,B)){if(O===jn.Right)return jn.Left;if(O===jn.Left)return jn.Right;if(O===jn.Top)return jn.Bottom;if(O===jn.Bottom)return jn.Top}return O}}let Bh=(()=>{class g{constructor(o,x,B){this.element=o,this.renderer=x,this.platformId=B}get cssClasses(){let o="ngx-charts-tooltip-content";return o+=` position-${this.placement}`,o+=` type-${this.type}`,o+=` ${this.cssClass}`,o}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,e.NF)(this.platformId))return;const o=this.element.nativeElement,x=this.host.nativeElement.getBoundingClientRect();if(!x.height&&!x.width)return;const B=o.getBoundingClientRect();this.checkFlip(x,B),this.positionContent(o,x,B),this.showCaret&&this.positionCaret(x,B),setTimeout(()=>this.renderer.addClass(o,"animate"),1)}positionContent(o,x,B){const{top:q,left:Te}=Gs.positionContent(this.placement,B,x,this.spacing,this.alignment);this.renderer.setStyle(o,"top",`${q}px`),this.renderer.setStyle(o,"left",`${Te}px`)}positionCaret(o,x){const B=this.caretElm.nativeElement,q=B.getBoundingClientRect(),{top:Te,left:it}=Gs.positionCaret(this.placement,x,o,q,this.alignment);this.renderer.setStyle(B,"top",`${Te}px`),this.renderer.setStyle(B,"left",`${it}px`)}checkFlip(o,x){this.placement=Gs.determinePlacement(this.placement,x,o,this.spacing)}onWindowResize(){this.position()}}return g.\u0275fac=function(o){return new(o||g)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},g.\u0275cmp=t.Xpm({type:g,selectors:[["ngx-tooltip-content"]],viewQuery:function(o,x){if(1&o&&t.Gf(M2,5),2&o){let B;t.iGM(B=t.CRH())&&(x.caretElm=B.first)}},hostVars:2,hostBindings:function(o,x){1&o&&t.NdJ("resize",function(){return x.onWindowResize()},!1,t.Jf7),2&o&&t.Tol(x.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(o,x){1&o&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,p1,2,4,"span",3),t.YNc(5,w2,1,1,"span",4),t.qZA()()),2&o&&(t.xp6(1),t.Gre("tooltip-caret position-",x.placement,""),t.Q6J("hidden",!x.showCaret),t.xp6(3),t.Q6J("ngIf",!x.title),t.xp6(1),t.Q6J("ngIf",x.title))},dependencies:[e.O5,e.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,f.gn)([zh(100)],g.prototype,"onWindowResize",null),g})(),Xd=(()=>{class g{constructor(o,x,B){this.applicationRef=o,this.componentFactoryResolver=x,this.injector=B}static setGlobalRootViewContainer(o){g.globalRootViewContainer=o}getRootViewContainer(){if(this._container)return this._container;if(g.globalRootViewContainer)return g.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(o){this._container=o}getComponentRootNode(o){return function vu(g){return g.element}(o)?o.element.nativeElement:o.hostView&&o.hostView.rootNodes.length>0?o.hostView.rootNodes[0]:o.location.nativeElement}getRootViewContainerNode(o){return this.getComponentRootNode(o)}projectComponentBindings(o,x){if(x){if(void 0!==x.inputs){const B=Object.getOwnPropertyNames(x.inputs);for(const q of B)o.instance[q]=x.inputs[q]}if(void 0!==x.outputs){const B=Object.getOwnPropertyNames(x.outputs);for(const q of B)o.instance[q]=x.outputs[q]}}return o}appendComponent(o,x={},B){B||(B=this.getRootViewContainer());const q=this.getComponentRootNode(B),Te=new C.u0(q,this.componentFactoryResolver,this.applicationRef,this.injector),it=new C.C5(o),Yt=Te.attach(it);return this.projectComponentBindings(Yt,x),Yt}}return g.globalRootViewContainer=null,g.\u0275fac=function(o){return new(o||g)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},g.\u0275prov=t.Yz7({token:g,factory:g.\u0275fac}),g})(),h3=(()=>{class g extends class Jd{constructor(O){this.injectionService=O,this.defaults={},this.components=new Map}getByType(O=this.type){return this.components.get(O)}create(O){return this.createByType(this.type,O)}createByType(O,o){o=this.assignDefaults(o);const x=this.injectComponent(O,o);return this.register(O,x),x}destroy(O){const o=this.components.get(O.componentType);if(o&&o.length){const x=o.indexOf(O);x>-1&&(o[x].destroy(),o.splice(x,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(O){const o=this.components.get(O);if(o&&o.length){let x=o.length-1;for(;x>=0;)this.destroy(o[x--])}}injectComponent(O,o){return this.injectionService.appendComponent(O,o)}assignDefaults(O){const o={...this.defaults.inputs},x={...this.defaults.outputs};return!O.inputs&&!O.outputs&&(O={inputs:O}),o&&(O.inputs={...o,...O.inputs}),x&&(O.outputs={...x,...O.outputs}),O}register(O,o){this.components.has(O)||this.components.set(O,[]),this.components.get(O).push(o)}}{constructor(o){super(o),this.type=Bh}}return g.\u0275fac=function(o){return new(o||g)(t.LFG(Xd))},g.\u0275prov=t.Yz7({token:g,factory:g.\u0275fac}),g})();var vo=(()=>{return(g=vo||(vo={})).Right="right",g.Below="below",vo;var g})(),Zs=(()=>{return(g=Zs||(Zs={})).ScaleLegend="scaleLegend",g.Legend="legend",Zs;var g})(),bn=(()=>{return(g=bn||(bn={})).Time="time",g.Linear="linear",g.Ordinal="ordinal",g.Quantile="quantile",bn;var g})();let Hc=(()=>{class g{constructor(){this.horizontal=!1}ngOnChanges(o){const x=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${x})`}gradientString(o,x){x.push(1);const B=[];return o.reverse().forEach((q,Te)=>{B.push(`${q} ${Math.round(100*x[Te])}%`)}),B.join(", ")}}return g.\u0275fac=function(o){return new(o||g)},g.\u0275cmp=t.Xpm({type:g,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[t.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(o,x){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._uU(3),t.qZA()(),t._UZ(4,"div",2),t.TgZ(5,"div",1)(6,"span"),t._uU(7),t.qZA()()()),2&o&&(t.Udp("height",x.horizontal?void 0:x.height,"px")("width",x.width,"px"),t.ekj("horizontal-legend",x.horizontal),t.xp6(3),t.Oqu(x.valueRange[1].toLocaleString()),t.xp6(1),t.Udp("background",x.gradient),t.xp6(3),t.Oqu(x.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}),g})();function kl(g){return g instanceof Date?g.toLocaleDateString():g.toLocaleString()}let f3=(()=>{class g{constructor(){this.isActive=!1,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.toggle=new t.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return g.\u0275fac=function(o){return new(o||g)},g.\u0275cmp=t.Xpm({type:g,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(o,x){1&o&&t.NdJ("mouseenter",function(){return x.onMouseEnter()})("mouseleave",function(){return x.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(o,x){1&o&&(t.TgZ(0,"span",0),t.NdJ("click",function(){return x.select.emit(x.formattedLabel)}),t.TgZ(1,"span",1),t.NdJ("click",function(){return x.toggle.emit(x.formattedLabel)}),t.qZA(),t.TgZ(2,"span",2),t._uU(3),t.qZA()()),2&o&&(t.ekj("active",x.isActive),t.Q6J("title",x.formattedLabel),t.xp6(1),t.Udp("background-color",x.color),t.xp6(2),t.hij(" ",x.trimmedLabel," "))},encapsulation:2,changeDetection:0}),g})(),e4=(()=>{class g{constructor(o){this.cd=o,this.horizontal=!1,this.labelClick=new t.vpe,this.labelActivate=new t.vpe,this.labelDeactivate=new t.vpe,this.legendEntries=[]}ngOnChanges(o){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const o=[];for(const x of this.data){const B=kl(x);-1===o.findIndex(Te=>Te.label===B)&&o.push({label:x,formattedLabel:B,color:this.colors.getColor(x)})}return o}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(B=>o.label===B.name)}activate(o){this.labelActivate.emit(o)}deactivate(o){this.labelDeactivate.emit(o)}trackBy(o,x){return x.label}}return g.\u0275fac=function(o){return new(o||g)(t.Y36(t.sBO))},g.\u0275cmp=t.Xpm({type:g,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[t.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(o,x){1&o&&(t.TgZ(0,"div"),t.YNc(1,$0,3,1,"header",0),t.TgZ(2,"div",1)(3,"ul",2),t.YNc(4,Ll,2,4,"li",3),t.qZA()()()),2&o&&(t.Udp("width",x.width,"px"),t.xp6(1),t.Q6J("ngIf",(null==x.title?null:x.title.length)>0),t.xp6(2),t.Udp("max-height",x.height-45,"px"),t.ekj("horizontal-legend",x.horizontal),t.xp6(1),t.Q6J("ngForOf",x.legendEntries)("ngForTrackBy",x.trackBy))},dependencies:[f3,e.O5,e.sg],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),g})(),t4=(()=>{class g{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new t.vpe,this.legendLabelActivate=new t.vpe,this.legendLabelDeactivate=new t.vpe,this.LegendPosition=vo,this.LegendType=Zs}ngOnChanges(o){this.update()}update(){let o=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===vo.Right)&&(o=this.legendType===Zs.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-o)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==vo.Right?this.chartWidth:Math.floor(this.view[0]*o/12)}getLegendType(){return this.legendOptions.scaleType===bn.Linear?Zs.ScaleLegend:Zs.Legend}}return g.\u0275fac=function(o){return new(o||g)},g.\u0275cmp=t.Xpm({type:g,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[t._Bn([h3]),t.TTD],ngContentSelectors:Tc,decls:5,vars:6,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(o,x){1&o&&(t.F$t(),t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.Hsn(2),t.qZA(),t.YNc(3,ld,1,5,"ngx-charts-scale-legend",2),t.YNc(4,S2,1,7,"ngx-charts-legend",3),t.qZA()),2&o&&(t.Udp("width",x.view[0],"px"),t.xp6(1),t.uIk("width",x.chartWidth)("height",x.view[1]),t.xp6(2),t.Q6J("ngIf",x.showLegend&&x.legendType===x.LegendType.ScaleLegend),t.xp6(1),t.Q6J("ngIf",x.showLegend&&x.legendType===x.LegendType.Legend))},dependencies:[Hc,e4,e.O5],encapsulation:2,changeDetection:0}),g})(),Uh=(()=>{class g{constructor(o,x){this.element=o,this.zone=x,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const o=()=>{if(!this.element)return;const{offsetHeight:x,offsetWidth:B}=this.element.nativeElement;x&&B?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o())})}}return g.\u0275fac=function(o){return new(o||g)(t.Y36(t.SBq),t.Y36(t.R0b))},g.\u0275dir=t.lG2({type:g,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),g})();function x1(g){return"[object Date]"===toString.call(g)}let yu=(()=>{class g{constructor(o,x,B,q){this.chartElement=o,this.zone=x,this.cd=B,this.platformId=q,this.scheme="cool",this.schemeType=bn.Ordinal,this.animations=!0,this.select=new t.vpe}ngOnInit(){(0,e.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Uh(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(o){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const o=this.getContainerDims();o&&(this.width=o.width,this.height=o.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let o,x;const B=this.chartElement.nativeElement;if((0,e.NF)(this.platformId)&&null!==B.parentNode){const q=B.parentNode.getBoundingClientRect();o=q.width,x=q.height}return o&&x?{width:o,height:x}:null}formatDates(){for(let o=0;o<this.results.length;o++){const x=this.results[o];if(x.label=x.name,x1(x.label)&&(x.label=x.label.toLocaleDateString()),x.series)for(let B=0;B<x.series.length;B++){const q=x.series[B];q.label=q.name,x1(q.label)&&(q.label=q.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){if(!(0,e.NF)(this.platformId))return;const x=(0,a.R)(window,"resize").pipe((0,M.b)(200)).subscribe(B=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=x}cloneData(o){const x=[];for(const B of o){const q={name:B.name};if(void 0!==B.value&&(q.value=B.value),void 0!==B.series){q.series=[];for(const Te of B.series){const it=Object.assign({},Te);q.series.push(it)}}void 0!==B.extra&&(q.extra=JSON.parse(JSON.stringify(B.extra))),x.push(q)}return x}}return g.\u0275fac=function(o){return new(o||g)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.Lbi))},g.\u0275cmp=t.Xpm({type:g,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[t.TTD],decls:1,vars:0,template:function(o,x){1&o&&t._UZ(0,"div")},encapsulation:2}),g})();var ts=(()=>{return(g=ts||(ts={})).Top="top",g.Bottom="bottom",g.Left="left",g.Right="right",ts;var g})();let i4=(()=>{class g{constructor(o){this.textHeight=25,this.margin=5,this.element=o.nativeElement}ngOnChanges(o){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case ts.Top:case ts.Bottom:this.y=this.offset,this.x=this.width/2;break;case ts.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case ts.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return g.\u0275fac=function(o){return new(o||g)(t.Y36(t.SBq))},g.\u0275cmp=t.Xpm({type:g,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[t.TTD],attrs:cd,decls:2,vars:6,template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"text"),t._uU(1),t.qZA()),2&o&&(t.uIk("stroke-width",x.strokeWidth)("x",x.x)("y",x.y)("text-anchor",x.textAnchor)("transform",x.transform),t.xp6(1),t.hij(" ",x.label," "))},encapsulation:2,changeDetection:0}),g})();function n4(g,O=16){return"string"!=typeof g?"number"==typeof g?g+"":"":(g=g.trim()).length<=O?g:`${g.slice(0,O)}...`}function bu(g,O){if(g.length>O){const o=[],x=Math.floor(g.length/O);for(let B=0;B<g.length;B++)B%x==0&&o.push(g[B]);g=o}return g}var qo=(()=>{return(g=qo||(qo={})).Start="start",g.Middle="middle",g.End="end",qo;var g})();let r4=(()=>{class g{constructor(o){this.platformId=o,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new t.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=qo.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const o=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);o!==this.height&&(this.height=o,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const o=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:o.tickFormat?o.tickFormat.apply(o,this.tickArguments):function(B){return"Date"===B.constructor.name?B.toLocaleDateString():B.toLocaleString()};const x=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(B){return this.scale(B)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",x&&0!==x?(this.textTransform=`rotate(${x})`,this.textAnchor=qo.End,this.verticalSpacing=10):this.textAnchor=qo.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(o){let x=0;this.maxTicksLength=0;for(let Zt=0;Zt<o.length;Zt++){const oi=this.tickFormat(o[Zt]).toString();let pi=oi.length;this.trimTicks&&(pi=this.tickTrim(oi).length),pi>this.maxTicksLength&&(this.maxTicksLength=pi)}const Te=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let it=Te;const Yt=Math.floor(this.width/o.length);for(;it>Yt&&x>-90;)x-=30,it=Math.cos(x*(Math.PI/180))*Te;return this.approxHeight=Math.max(Math.abs(Math.sin(x*(Math.PI/180))*Te),10),x}getTicks(){let o;const x=this.getMaxTicks(20),B=this.getMaxTicks(100);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[B]):(o=this.scale.domain(),o=bu(o,x)),o}getMaxTicks(o){return Math.floor(this.width/o)}tickTransform(o){return"translate("+this.adjustedScale(o)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(o){return this.trimTicks?n4(o,this.maxTickLength):o}}return g.\u0275fac=function(o){return new(o||g)(t.Y36(t.Lbi))},g.\u0275cmp=t.Xpm({type:g,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(o,x){if(1&o&&t.Gf(m1,5),2&o){let B;t.iGM(B=t.CRH())&&(x.ticksElement=B.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineHeight:"gridLineHeight",width:"width",rotateTicks:"rotateTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:g1,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,Dl,5,7,"g",1),t.qZA(),t.YNc(3,E2,2,2,"g",2)),2&o&&(t.xp6(2),t.Q6J("ngForOf",x.ticks),t.xp6(1),t.Q6J("ngForOf",x.ticks))},dependencies:[e.sg,e.O5],encapsulation:2,changeDetection:0}),g})(),p3=(()=>{class g{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=ts.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new t.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=ts}ngOnChanges(o){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:o}){const x=o+25+5;x!==this.labelOffset&&(this.labelOffset=x,setTimeout(()=>{this.dimensionsChanged.emit({height:o})},0))}}return g.\u0275fac=function(o){return new(o||g)},g.\u0275cmp=t.Xpm({type:g,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(o,x){if(1&o&&t.Gf(r4,5),2&o){let B;t.iGM(B=t.CRH())&&(x.ticksComponent=B.first)}},inputs:{xScale:"xScale",dims:"dims",trimTicks:"trimTicks",rotateTicks:"rotateTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount",xOrient:"xOrient",xAxisOffset:"xAxisOffset"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:dd,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,ud,1,12,"g",0),t.YNc(2,T2,1,5,"g",1),t.qZA()),2&o&&(t.uIk("class",x.xAxisClassName)("transform",x.transform),t.xp6(1),t.Q6J("ngIf",x.xScale),t.xp6(1),t.Q6J("ngIf",x.showLabel))},dependencies:[r4,i4,e.O5],encapsulation:2,changeDetection:0}),g})();function $l(g,O,o,x,B,[q,Te,it,Yt]){let Zt="";return Zt=`M${[g+B,O]}`,Zt+="h"+((o=0===(o=Math.floor(o))?1:o)-2*B),Zt+=Te?`a${[B,B]} 0 0 1 ${[B,B]}`:`h${B}v${B}`,Zt+="v"+((x=0===(x=Math.floor(x))?1:x)-2*B),Zt+=Yt?`a${[B,B]} 0 0 1 ${[-B,B]}`:`v${B}h${-B}`,Zt+="h"+(2*B-o),Zt+=it?`a${[B,B]} 0 0 1 ${[-B,-B]}`:`h${-B}v${-B}`,Zt+="v"+(2*B-x),Zt+=q?`a${[B,B]} 0 0 1 ${[B,-B]}`:`v${-B}h${B}`,Zt+="z",Zt}let m3=(()=>{class g{constructor(o){this.platformId=o,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new t.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=qo.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=ts}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const o=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);o!==this.width&&(this.width=o,this.dimensionsChanged.emit({width:o}),setTimeout(()=>this.updateDims()))}update(){let o;const x=this.orient===ts.Top||this.orient===ts.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,o=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:o.tickFormat?o.tickFormat.apply(o,this.tickArguments):function(B){return"Date"===B.constructor.name?B.toLocaleDateString():B.toLocaleString()},this.adjustedScale=o.bandwidth?function(B){return o(B)+.5*o.bandwidth()}:o,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case ts.Top:case ts.Bottom:this.transform=function(B){return"translate("+this.adjustedScale(B)+",0)"},this.textAnchor=qo.Middle,this.y2=this.innerTickSize*x,this.y1=this.tickSpacing*x,this.dy=x<0?"0em":".71em";break;case ts.Left:this.transform=function(B){return"translate(0,"+this.adjustedScale(B)+")"},this.textAnchor=qo.End,this.x2=this.innerTickSize*-x,this.x1=this.tickSpacing*-x,this.dy=".32em";break;case ts.Right:this.transform=function(B){return"translate(0,"+this.adjustedScale(B)+")"},this.textAnchor=qo.Start,this.x2=this.innerTickSize*-x,this.x1=this.tickSpacing*-x,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(o=>o.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(o=>o.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=$l(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let o;const x=this.getMaxTicks(20),B=this.getMaxTicks(50);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[B]):(o=this.scale.domain(),o=bu(o,x)),o}getMaxTicks(o){return Math.floor(this.height/o)}tickTransform(o){return`translate(${this.adjustedScale(o)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(o){return this.trimTicks?n4(o,this.maxTickLength):o}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(B=>this.tickTrim(this.tickFormat(B)).length))}}return g.\u0275fac=function(o){return new(o||g)(t.Y36(t.Lbi))},g.\u0275cmp=t.Xpm({type:g,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(o,x){if(1&o&&t.Gf(m1,5),2&o){let B;t.iGM(B=t.CRH())&&(x.ticksElement=B.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:ql,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,_1,5,9,"g",1),t.qZA(),t.YNc(3,hd,1,2,"path",2),t.YNc(4,L2,2,2,"g",3),t.YNc(5,pd,2,1,"g",3)),2&o&&(t.xp6(2),t.Q6J("ngForOf",x.ticks),t.xp6(1),t.Q6J("ngIf",x.referenceLineLength>1&&x.refMax&&x.refMin&&x.showRefLines),t.xp6(1),t.Q6J("ngForOf",x.ticks),t.xp6(1),t.Q6J("ngForOf",x.referenceLines))},dependencies:[e.sg,e.O5],encapsulation:2,changeDetection:0}),g})(),a4=(()=>{class g{constructor(){this.showGridLines=!1,this.yOrient=ts.Left,this.yAxisOffset=0,this.dimensionsChanged=new t.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(o){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===ts.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:o}){o!==this.labelOffset&&this.yOrient===ts.Right?(this.labelOffset=o+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:o})},0)):o!==this.labelOffset&&(this.labelOffset=o,setTimeout(()=>{this.dimensionsChanged.emit({width:o})},0))}}return g.\u0275fac=function(o){return new(o||g)},g.\u0275cmp=t.Xpm({type:g,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(o,x){if(1&o&&t.Gf(m3,5),2&o){let B;t.iGM(B=t.CRH())&&(x.ticksComponent=B.first)}},inputs:{yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",yOrient:"yOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",yAxisOffset:"yAxisOffset"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:Il,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,t3,1,14,"g",0),t.YNc(2,Ac,1,5,"g",1),t.qZA()),2&o&&(t.uIk("class",x.yAxisClassName)("transform",x.transform),t.xp6(1),t.Q6J("ngIf",x.yScale),t.xp6(1),t.Q6J("ngIf",x.showLabel))},dependencies:[m3,i4,e.O5],encapsulation:2,changeDetection:0}),g})(),xu=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[e.ez]]}),g})();var Fc=(()=>{return(g=Fc||(Fc={})).popover="popover",g.tooltip="tooltip",Fc;var g})(),ec=(()=>{return(g=ec||(ec={}))[g.all="all"]="all",g[g.focus="focus"]="focus",g[g.mouseover="mouseover"]="mouseover",ec;var g})();let g3=(()=>{class g{constructor(o,x,B){this.tooltipService=o,this.viewContainerRef=x,this.renderer=B,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=jn.Top,this.tooltipAlignment=jn.Center,this.tooltipType=Fc.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=ec.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===ec.all||this.tooltipShowEvent===ec.focus}get listensForHover(){return this.tooltipShowEvent===ec.all||this.tooltipShowEvent===ec.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(o){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(o))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(o){if(this.component||this.tooltipDisabled)return;const x=o?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const B=this.createBoundOptions();this.component=this.tooltipService.create(B),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},x)}addHideListeners(o){this.mouseEnterContentEvent=this.renderer.listen(o,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(o,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",x=>{o.contains(x.target)||this.hideTooltip()}))}hideTooltip(o=!1){if(!this.component)return;const x=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),o?x():this.timeout=setTimeout(x,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return g.\u0275fac=function(o){return new(o||g)(t.Y36(h3),t.Y36(t.s_b),t.Y36(t.Qsj))},g.\u0275dir=t.lG2({type:g,selectors:[["","ngx-tooltip",""]],hostBindings:function(o,x){1&o&&t.NdJ("focusin",function(){return x.onFocus()})("blur",function(){return x.onBlur()})("mouseenter",function(){return x.onMouseEnter()})("mouseleave",function(q){return x.onMouseLeave(q.target)})("click",function(){return x.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"}}),g})(),Cu=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({providers:[Xd,h3],imports:[[e.ez]]}),g})();const W2={};function Jo(){let g=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return g=`a${g}`,W2[g]?Jo():(W2[g]=!0,g)}var ca=(()=>{return(g=ca||(ca={})).Vertical="vertical",g.Horizontal="horizontal",ca;var g})();let tc=(()=>{class g{constructor(){this.orientation=ca.Vertical}ngOnChanges(o){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===ca.Horizontal?this.x2="100%":this.orientation===ca.Vertical&&(this.y1="100%")}}return g.\u0275fac=function(o){return new(o||g)},g.\u0275cmp=t.Xpm({type:g,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[t.TTD],attrs:md,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"linearGradient",0),t.YNc(1,Ol,1,5,"stop",1),t.qZA()),2&o&&(t.Q6J("id",x.name),t.uIk("x1",x.x1)("y1",x.y1)("x2",x.x2)("y2",x.y2),t.xp6(1),t.Q6J("ngForOf",x.stops))},dependencies:[e.sg],encapsulation:2,changeDetection:0}),g})(),wu=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275cmp=t.Xpm({type:g,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:i3,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(o,x){1&o&&(t.O4$(),t._UZ(0,"rect",0)),2&o&&t.uIk("height",x.height)("width",x.width)("x",x.x)("y",x.y)},encapsulation:2,changeDetection:0}),g})();var Ws=(()=>{return(g=Ws||(Ws={})).Odd="odd",g.Even="even",Ws;var g})();let Nl,zc=(()=>{class g{ngOnChanges(o){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(o=>{let x,B,q,Te,it,Yt=Ws.Odd;if(this.orient===ca.Vertical){const Zt=this.xScale(o.name);Number.parseInt((Zt/this.xScale.step()).toString(),10)%2==1&&(Yt=Ws.Even),x=this.xScale.bandwidth()*this.xScale.paddingInner(),B=this.xScale.bandwidth()+x,q=this.dims.height,Te=this.xScale(o.name)-x/2,it=0}else if(this.orient===ca.Horizontal){const Zt=this.yScale(o.name);Number.parseInt((Zt/this.yScale.step()).toString(),10)%2==1&&(Yt=Ws.Even),x=this.yScale.bandwidth()*this.yScale.paddingInner(),B=this.dims.width,q=this.yScale.bandwidth()+x,Te=0,it=this.yScale(o.name)-x/2}return{name:o.name,class:Yt,height:q,width:B,x:Te,y:it}})}}return g.\u0275fac=function(o){return new(o||g)},g.\u0275cmp=t.Xpm({type:g,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[t.TTD],attrs:n3,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(o,x){1&o&&t.YNc(0,yd,1,10,"g",0),2&o&&t.Q6J("ngForOf",x.gridPanels)},dependencies:[wu,e.sg],encapsulation:2,changeDetection:0}),g})();typeof window<"u"?Nl=window:typeof global<"u"&&(Nl=global);let ps=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[e.ez,xu,Cu],e.ez,xu,Cu]}),g})();function o4({width:g,height:O,margins:o,showXAxis:x=!1,showYAxis:B=!1,xAxisHeight:q=0,yAxisWidth:Te=0,showXLabel:it=!1,showYLabel:Yt=!1,showLegend:Zt=!1,legendType:oi=bn.Ordinal,legendPosition:pi=vo.Right,columns:_i=12}){let Ci=o[3],tn=g,vn=O-o[0]-o[2];return Zt&&pi===vo.Right&&(_i-=oi===bn.Ordinal?2:1),tn=tn*_i/12,tn=tn-o[1]-o[3],x&&(vn-=5,vn-=q,it&&(vn-=30)),B&&(tn-=5,tn-=Te,Ci+=Te,Ci+=10,Yt&&(tn-=30,Ci+=30)),tn=Math.max(0,tn),vn=Math.max(0,vn),{width:Math.floor(tn),height:Math.floor(vn),xOffset:Math.floor(Ci)}}let l4=[{name:"vivid",selectable:!0,group:bn.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:bn.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:bn.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:bn.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:bn.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:bn.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:bn.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:bn.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:bn.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:bn.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:bn.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:bn.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:bn.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:bn.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:bn.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class c4{constructor(O,o,x,B){"string"==typeof O&&(O=l4.find(q=>q.name===O)),this.colorDomain=O.domain,this.scaleType=o,this.domain=x,this.customColors=B,this.scale=this.generateColorScheme(O,o,this.domain)}generateColorScheme(O,o,x){let B;switch("string"==typeof O&&(O=l4.find(q=>q.name===O)),o){case bn.Quantile:B=C2().range(O.domain).domain(x);break;case bn.Ordinal:B=Al().range(O.domain).domain(x);break;case bn.Linear:{const q=[...O.domain];1===q.length&&(q.push(q[0]),this.colorDomain=q);const Te=q0(0,1,1/q.length);B=Tl().range(q).domain(Te)}}return B}getColor(O){if(null==O)throw new Error("Value can not be null");if(this.scaleType===bn.Linear){const o=Tl().domain(this.domain).range([0,1]);return this.scale(o(O))}{if("function"==typeof this.customColors)return this.customColors(O);const o=O.toString();let x;return this.customColors&&this.customColors.length>0&&(x=this.customColors.find(B=>B.name.toLowerCase()===o.toLowerCase())),x?x.value:this.scale(O)}}getLinearGradientStops(O,o){void 0===o&&(o=this.domain[0]);const x=Tl().domain(this.domain).range([0,1]),B=Eo().domain(this.colorDomain).range([0,1]),q=this.getColor(O),Te=x(o),it=this.getColor(o),Yt=x(O);let Zt=1,oi=Te;const pi=[];for(pi.push({color:it,offset:Te,originalOffset:Te,opacity:1});oi<Yt&&Zt<this.colorDomain.length;){const _i=this.colorDomain[Zt],Ci=B(_i);if(Ci<=Te)Zt++;else{if(Ci.toFixed(4)>=(Yt-B.bandwidth()).toFixed(4))break;pi.push({color:_i,offset:Ci,opacity:1}),oi=Ci,Zt++}}if(pi[pi.length-1].offset<100&&pi.push({color:q,offset:Yt,opacity:1}),Yt===Te)pi[0].offset=0,pi[1].offset=100;else if(100!==pi[pi.length-1].offset)for(const _i of pi)_i.offset=(_i.offset-Te)/(Yt-Te)*100;return pi}}let u4=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[ps]]}),g})(),h4=(()=>{class g{constructor(o){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=o.nativeElement}ngOnChanges(o){o.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+Jo().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const o=function an(g){return"string"==typeof g?new mi([[document.querySelector(g)]],[document.documentElement]):new mi([[g]],Vt)}(this.element).select(".bar"),x=this.getPath();this.animations?o.transition().duration(500).attr("d",x):o.attr("d",x)}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 x,o=this.getRadius();return this.roundEdges?this.orientation===ca.Vertical?(o=Math.min(this.height,o),x=$l(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===ca.Horizontal&&(o=Math.min(this.width,o),x=$l(this.x,this.y,1,this.height,0,this.edges)):this.orientation===ca.Vertical?x=$l(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===ca.Horizontal&&(x=$l(this.x,this.y,1,this.height,0,this.edges)),x}getPath(){let x,o=this.getRadius();return this.roundEdges?this.orientation===ca.Vertical?(o=Math.min(this.height,o),x=$l(this.x,this.y,this.width,this.height,o,this.edges)):this.orientation===ca.Horizontal&&(o=Math.min(this.width,o),x=$l(this.x,this.y,this.width,this.height,o,this.edges)):x=$l(this.x,this.y,this.width,this.height,o,this.edges),x}getRadius(){let o=0;return this.roundEdges&&this.height>5&&this.width>5&&(o=Math.floor(Math.min(5,this.height/2,this.width/2))),o}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let o=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===ca.Vertical?o=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===ca.Horizontal&&(o=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),o}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===ca.Vertical&&0===this.height||this.orientation===ca.Horizontal&&0===this.width)}}return g.\u0275fac=function(o){return new(o||g)(t.Y36(t.SBq))},g.\u0275cmp=t.Xpm({type:g,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(o,x){1&o&&t.NdJ("mouseenter",function(){return x.onMouseEnter()})("mouseleave",function(){return x.onMouseLeave()})},inputs:{fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",stops:"stops",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[t.TTD],attrs:Rd,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(o,x){1&o&&(t.YNc(0,b1,2,3,"defs",0),t.O4$(),t.TgZ(1,"path",1),t.NdJ("click",function(){return x.select.emit(x.data)}),t.qZA()),2&o&&(t.Q6J("ngIf",x.hasGradient),t.xp6(1),t.ekj("active",x.isActive)("hidden",x.hideBar),t.uIk("d",x.path)("aria-label",x.ariaLabel)("fill",x.hasGradient?x.gradientFill:x.fill))},dependencies:[tc,e.O5],encapsulation:2,changeDetection:0}),g})();var Oo=(()=>{return(g=Oo||(Oo={})).Standard="standard",g.Normalized="normalized",g.Stacked="stacked",Oo;var g})(),Rl=(()=>{return(g=Rl||(Rl={})).positive="positive",g.negative="negative",Rl;var g})();let v3=(()=>{class g{constructor(o){this.dimensionsChanged=new t.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=o.nativeElement}ngOnChanges(o){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):kl(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return g.\u0275fac=function(o){return new(o||g)(t.Y36(t.SBq))},g.\u0275cmp=t.Xpm({type:g,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:Hd,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"text",0),t._uU(1),t.qZA()),2&o&&(t.uIk("text-anchor",x.textAnchor)("transform",x.transform)("x",x.x)("y",x.y),t.xp6(1),t.hij(" ",x.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),g})(),y3=(()=>{class g{constructor(o){this.platformId=o,this.type=Oo.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.dataLabelHeightChanged=new t.vpe,this.barsForDataLabels=[],this.barOrientation=ca,this.isSSR=!1}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(o){this.update()}update(){let o;this.updateTooltipSettings(),this.series.length&&(o=this.xScale.bandwidth()),o=Math.round(o);const x=Math.max(this.yScale.domain()[0],0),B={[Rl.positive]:0,[Rl.negative]:0};let Te,q=Rl.positive;this.type===Oo.Normalized&&(Te=this.series.map(it=>it.value).reduce((it,Yt)=>it+Yt,0)),this.bars=this.series.map((it,Yt)=>{let Zt=it.value;const oi=this.getLabel(it),pi=kl(oi);q=Zt>0?Rl.positive:Rl.negative;const Ci={value:Zt,label:oi,roundEdges:this.roundEdges,data:it,width:o,formattedLabel:pi,height:0,x:0,y:0};if(this.type===Oo.Standard)Ci.height=Math.abs(this.yScale(Zt)-this.yScale(x)),Ci.x=this.xScale(oi),Ci.y=this.yScale(Zt<0?0:Zt);else if(this.type===Oo.Stacked){const vn=B[q],wi=vn+Zt;B[q]+=Zt,Ci.height=this.yScale(vn)-this.yScale(wi),Ci.x=0,Ci.y=this.yScale(wi),Ci.offset0=vn,Ci.offset1=wi}else if(this.type===Oo.Normalized){let vn=B[q],wi=vn+Zt;B[q]+=Zt,Te>0?(vn=100*vn/Te,wi=100*wi/Te):(vn=0,wi=0),Ci.height=this.yScale(vn)-this.yScale(wi),Ci.x=0,Ci.y=this.yScale(wi),Ci.offset0=vn,Ci.offset1=wi,Zt=(wi-vn).toFixed(2)+"%"}this.colors.scaleType===bn.Ordinal?Ci.color=this.colors.getColor(oi):this.type===Oo.Standard?(Ci.color=this.colors.getColor(Zt),Ci.gradientStops=this.colors.getLinearGradientStops(Zt)):(Ci.color=this.colors.getColor(Ci.offset1),Ci.gradientStops=this.colors.getLinearGradientStops(Ci.offset1,Ci.offset0));let tn=pi;return Ci.ariaLabel=pi+" "+Zt.toLocaleString(),null!=this.seriesName&&(tn=`${this.seriesName} \u2022 ${pi}`,Ci.data.series=this.seriesName,Ci.ariaLabel=this.seriesName+" "+Ci.ariaLabel),Ci.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${function $d(g){return g.toLocaleString().replace(/[&'`"<>]/g,O=>({"&":"&amp;","'":"&#x27;","`":"&#x60;",'"':"&quot;","<":"&lt;",">":"&gt;"}[O]))}(tn)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(Zt):Zt.toLocaleString()}</span>\n `,Ci}),this.updateDataLabels()}updateDataLabels(){if(this.type===Oo.Stacked){this.barsForDataLabels=[];const o={};o.series=this.seriesName;const x=this.series.map(q=>q.value).reduce((q,Te)=>Te>0?q+Te:q,0),B=this.series.map(q=>q.value).reduce((q,Te)=>Te<0?q+Te:q,0);o.total=x+B,o.x=0,o.y=0,o.height=this.yScale(o.total>0?x:B),o.width=this.xScale.bandwidth(),this.barsForDataLabels.push(o)}else this.barsForDataLabels=this.series.map(o=>{const x={};return x.series=this.seriesName??o.label,x.total=o.value,x.x=this.xScale(o.label),x.y=this.yScale(0),x.height=this.yScale(x.total)-this.yScale(0),x.width=this.xScale.bandwidth(),x})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:jn.Top,this.tooltipType=this.tooltipDisabled?void 0:Fc.tooltip}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(B=>o.name===B.name&&o.value===B.value)}onClick(o){this.select.emit(o)}getLabel(o){return o.label?o.label:o.name}trackBy(o,x){return x.label}trackDataLabelBy(o,x){return o+"#"+x.series+"#"+x.total}}return g.\u0275fac=function(o){return new(o||g)(t.Y36(t.Lbi))},g.\u0275cmp=t.Xpm({type:g,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[t.TTD],attrs:Ao,decls:3,vars:3,consts:[[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(o,x){1&o&&(t.YNc(0,Ko,2,2,"g",0),t.YNc(1,Oc,2,2,"g",0),t.YNc(2,d3,2,2,"g",0)),2&o&&(t.Q6J("ngIf",!x.isSSR),t.xp6(1),t.Q6J("ngIf",x.isSSR),t.xp6(1),t.Q6J("ngIf",x.showDataLabel))},dependencies:[h4,v3,e.O5,e.sg,g3],encapsulation:2,data:{animation:[(0,d.X$)("animationState",[(0,d.eR)(":leave",[(0,d.oB)({opacity:1}),(0,d.jt)(500,(0,d.oB)({opacity:0}))])])]},changeDetection:0}),g})(),Tu=(()=>{class g extends yu{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=vo.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new t.vpe,this.deactivate=new t.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=o4({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const o=this.xDomain.length/(this.dims.width/this.barPadding+1);return Eo().range([0,this.dims.width]).paddingInner(o).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const o=Tl().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?o.nice():o}getXDomain(){return this.results.map(o=>o.label)}getYDomain(){const o=this.results.map(q=>q.value);let x=this.yScaleMin?Math.min(this.yScaleMin,...o):Math.min(0,...o);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(x=Math.min(x,...this.yAxisTicks));let B=this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(B=Math.max(B,...this.yAxisTicks)),[x,B]}onClick(o){this.select.emit(o)}setColors(){let o;o=this.schemeType===bn.Ordinal?this.xDomain:this.yDomain,this.colors=new c4(this.scheme,this.schemeType,o,this.customColors)}getLegendOptions(){const o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return o.scaleType===bn.Ordinal?(o.domain=this.xDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.yDomain,o.colors=this.colors.scale),o}updateYAxisWidth({width:o}){this.yAxisWidth=o,this.update()}updateXAxisHeight({height:o}){this.xAxisHeight=o,this.update()}onDataLabelMaxHeightChanged(o){o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),o.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(o,x=!1){o=this.results.find(q=>x?q.label===o.name:q.name===o.name),!(this.activeEntries.findIndex(q=>q.name===o.name&&q.value===o.value&&q.series===o.series)>-1)&&(this.activeEntries=[o,...this.activeEntries],this.activate.emit({value:o,entries:this.activeEntries}))}onDeactivate(o,x=!1){o=this.results.find(q=>x?q.label===o.name:q.name===o.name);const B=this.activeEntries.findIndex(q=>q.name===o.name&&q.value===o.value&&q.series===o.series);this.activeEntries.splice(B,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:o,entries:this.activeEntries})}}return g.\u0275fac=function(){let O;return function(x){return(O||(O=t.n5z(g)))(x||g)}}(),g.\u0275cmp=t.Xpm({type:g,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(o,x,B){if(1&o&&t.Suo(B,N2,5),2&o){let q;t.iGM(q=t.CRH())&&(x.tooltipTemplate=q.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(o,x){1&o&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelClick",function(q){return x.onClick(q)})("legendLabelActivate",function(q){return x.onActivate(q,!0)})("legendLabelDeactivate",function(q){return x.onDeactivate(q,!0)}),t.O4$(),t.TgZ(1,"g",1),t.YNc(2,V2,1,11,"g",2),t.YNc(3,un,1,9,"g",3),t.TgZ(4,"g",4),t.NdJ("activate",function(q){return x.onActivate(q)})("deactivate",function(q){return x.onDeactivate(q)})("select",function(q){return x.onClick(q)})("dataLabelHeightChanged",function(q){return x.onDataLabelMaxHeightChanged(q)}),t.qZA()()()),2&o&&(t.Q6J("view",t.WLB(22,al,x.width,x.height))("showLegend",x.legend)("legendOptions",x.legendOptions)("activeEntries",x.activeEntries)("animations",x.animations),t.xp6(1),t.uIk("transform",x.transform),t.xp6(1),t.Q6J("ngIf",x.xAxis),t.xp6(1),t.Q6J("ngIf",x.yAxis),t.xp6(1),t.Q6J("xScale",x.xScale)("yScale",x.yScale)("colors",x.colors)("series",x.results)("dims",x.dims)("gradient",x.gradient)("tooltipDisabled",x.tooltipDisabled)("tooltipTemplate",x.tooltipTemplate)("showDataLabel",x.showDataLabel)("dataLabelFormatting",x.dataLabelFormatting)("activeEntries",x.activeEntries)("roundEdges",x.roundEdges)("animations",x.animations)("noBarWhenZero",x.noBarWhenZero))},dependencies:[t4,p3,a4,y3,e.O5],styles:[R2],encapsulation:2,changeDetection:0}),g})(),_4=(()=>{class g extends yu{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=vo.Right,this.tooltipDisabled=!1,this.scaleType=bn.Ordinal,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new t.vpe,this.deactivate=new t.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=ca,this.trackBy=(o,x)=>x.name}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=o4({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(o,x){o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),x===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const o=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Eo().rangeRound([0,this.dims.width]).paddingInner(o).paddingOuter(o/2).domain(this.groupDomain)}getInnerScale(){const o=this.groupScale.bandwidth(),x=this.innerDomain.length/(o/this.barPadding+1);return Eo().rangeRound([0,o]).paddingInner(x).domain(this.innerDomain)}getValueScale(){const o=Tl().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?o.nice():o}getGroupDomain(){const o=[];for(const x of this.results)o.includes(x.label)||o.push(x.label);return o}getInnerDomain(){const o=[];for(const x of this.results)for(const B of x.series)o.includes(B.label)||o.push(B.label);return o}getValueDomain(){const o=[];for(const q of this.results)for(const Te of q.series)o.includes(Te.value)||o.push(Te.value);return[Math.min(0,...o),this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o)]}groupTransform(o){return`translate(${this.groupScale(o.label)}, 0)`}onClick(o,x){x&&(o.series=x.name),this.select.emit(o)}setColors(){let o;o=this.schemeType===bn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new c4(this.scheme,this.schemeType,o,this.customColors)}getLegendOptions(){const o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return o.scaleType===bn.Ordinal?(o.domain=this.innerDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.valueDomain,o.colors=this.colors.scale),o}updateYAxisWidth({width:o}){this.yAxisWidth=o,this.update()}updateXAxisHeight({height:o}){this.xAxisHeight=o,this.update()}onActivate(o,x,B=!1){const q=Object.assign({},o);x&&(q.series=x.name);const Te=this.results.map(it=>it.series).flat().filter(it=>B?it.label===q.name:it.name===q.name&&it.series===q.series);this.activeEntries=[...Te],this.activate.emit({value:q,entries:this.activeEntries})}onDeactivate(o,x,B=!1){const q=Object.assign({},o);x&&(q.series=x.name),this.activeEntries=this.activeEntries.filter(Te=>B?Te.label!==q.name:!(Te.name===q.name&&Te.series===q.series)),this.deactivate.emit({value:q,entries:this.activeEntries})}}return g.\u0275fac=function(){let O;return function(x){return(O||(O=t.n5z(g)))(x||g)}}(),g.\u0275cmp=t.Xpm({type:g,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(o,x,B){if(1&o&&t.Suo(B,N2,5),2&o){let q;t.iGM(q=t.CRH())&&(x.tooltipTemplate=q.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.qOj],decls:7,vars:18,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","",3,"xScale","yScale","data","dims","orient"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(o,x){1&o&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelActivate",function(q){return x.onActivate(q,void 0,!0)})("legendLabelDeactivate",function(q){return x.onDeactivate(q,void 0,!0)})("legendLabelClick",function(q){return x.onClick(q)}),t.O4$(),t.TgZ(1,"g",1),t._UZ(2,"g",2),t.YNc(3,Cn,1,10,"g",3),t.YNc(4,Pn,1,9,"g",4),t.YNc(5,Ba,2,2,"g",5),t.qZA(),t.YNc(6,Ua,2,2,"g",5),t.qZA()),2&o&&(t.Q6J("view",t.WLB(15,al,x.width,x.height))("showLegend",x.legend)("legendOptions",x.legendOptions)("activeEntries",x.activeEntries)("animations",x.animations),t.xp6(1),t.uIk("transform",x.transform),t.xp6(1),t.Q6J("xScale",x.groupScale)("yScale",x.valueScale)("data",x.results)("dims",x.dims)("orient",x.barOrientation.Vertical),t.xp6(1),t.Q6J("ngIf",x.xAxis),t.xp6(1),t.Q6J("ngIf",x.yAxis),t.xp6(1),t.Q6J("ngIf",!x.isSSR),t.xp6(1),t.Q6J("ngIf",x.isSSR))},dependencies:[t4,zc,p3,a4,y3,e.O5,e.sg],styles:[R2],encapsulation:2,data:{animation:[(0,d.X$)("animationState",[(0,d.eR)(":leave",[(0,d.oB)({opacity:1,transform:"*"}),(0,d.jt)(500,(0,d.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),g})(),b3=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[ps]]}),g})(),Lu=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[ps]]}),g})(),Ou=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[ps]]}),g})(),Nu=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[ps]]}),g})(),x3=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[ps]]}),g})();Math;let Q2=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[ps]]}),g})(),Vu=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[ps,Q2,x3]]}),g})(),y4=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[ps]]}),g})(),dl=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[ps]]}),g})(),mf=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[ps,Q2,b3]]}),g})(),_f=(()=>{class g{constructor(){!function gf(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[ps,u4,b3,Lu,Ou,Nu,x3,Vu,y4,Q2,dl,mf]}),g})()},658:(ke,J,p)=>{"use strict";function t(L,T,N,w,G,K,Q){try{var re=L[K](Q),ie=re.value}catch(ce){return void N(ce)}re.done?T(ie):Promise.resolve(ie).then(w,G)}p.d(J,{uU:()=>I,OF:()=>E});var f=p(4650),C=p(6895),a=p(3259);function M(L,T){if(1&L&&f._UZ(0,"canvas",1),2&L){const N=f.oxw();f.Q6J("qrCode",N.value)("qrCodeErrorCorrectionLevel",N.errorCorrectionLevel)("qrCodeCenterImageSrc",N.centerImageSrc)("qrCodeCenterImageWidth",N.centerImageSize)("qrCodeCenterImageHeight",N.centerImageSize)("qrCodeMargin",N.margin)("width",N.size)("height",N.size)("darkColor",N.darkColor)("lightColor",N.lightColor)}}const d=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let R=(()=>{class L{constructor(N){this.viewContainerRef=N,this.errorCorrectionLevel=L.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var N=this;return function e(L){return function(){var T=this,N=arguments;return new Promise(function(w,G){var K=L.apply(T,N);function Q(ie){t(K,w,G,Q,re,"next",ie)}function re(ie){t(K,w,G,Q,re,"throw",ie)}Q(void 0)})}}(function*(){if(!N.value)return;N.version&&N.version>40?(console.warn("[qrCode] max version is 40, clamping"),N.version=40):N.version&&N.version<1?(console.warn("[qrCode] min version is 1, clamping"),N.version=1):void 0!==N.version&&isNaN(N.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),N.version=void 0);const w=N.viewContainerRef.element.nativeElement;if(!w)return;const G=w.getContext("2d");G&&G.clearRect(0,0,G.canvas.width,G.canvas.height);const K=N.errorCorrectionLevel??L.DEFAULT_ERROR_CORRECTION_LEVEL,Q=d.test(N.darkColor)?N.darkColor:void 0,re=d.test(N.lightColor)?N.lightColor:void 0;(0,f.X6Q)()&&(!Q&&N.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!re&&N.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield a.toCanvas(w,N.value,{version:N.version,errorCorrectionLevel:K,width:N.width,margin:N.margin,color:{dark:Q,light:re}});const ie=N.centerImageSrc,ce=h(N.centerImageWidth,L.DEFAULT_CENTER_IMAGE_SIZE),ae=h(N.centerImageHeight,L.DEFAULT_CENTER_IMAGE_SIZE);if(ie&&G){N.centerImage||(N.centerImage=new Image(ce,ae)),ie!==N.centerImage?.src&&(N.centerImage.src=ie),ce!==N.centerImage.width&&(N.centerImage.width=ce),ae!==N.centerImage.height&&(N.centerImage.height=ae);const ne=N.centerImage;ne.onload=()=>{G.drawImage(ne,w.width/2-ce/2,w.height/2-ae/2,ce,ae)}}})()}}return L.DEFAULT_ERROR_CORRECTION_LEVEL="M",L.DEFAULT_CENTER_IMAGE_SIZE=40,L.\u0275fac=function(N){return new(N||L)(f.Y36(f.s_b))},L.\u0275dir=f.lG2({type:L,selectors:[["canvas","qrCode",""]],inputs:{value:["qrCode","value"],version:["qrCodeVersion","version"],errorCorrectionLevel:["qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:["qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:["qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:["qrCodeCenterImageHeight","centerImageHeight"],margin:["qrCodeMargin","margin"]},features:[f.TTD]}),L})();function h(L,T){return void 0===L||""===L?T:"string"==typeof L?parseInt(L,10):L}let I=(()=>{class L{}return L.\u0275fac=function(N){return new(N||L)},L.\u0275cmp=f.Xpm({type:L,selectors:[["qr-code"]],inputs:{value:"value",size:"size",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor",4,"ngIf"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor"]],template:function(N,w){1&N&&f.YNc(0,M,1,10,"canvas",0),2&N&&f.Q6J("ngIf",w.value)},dependencies:[C.O5,R],encapsulation:2}),L})(),E=(()=>{class L{}return L.\u0275fac=function(N){return new(N||L)},L.\u0275mod=f.oAB({type:L}),L.\u0275inj=f.cJS({imports:[[C.ez]]}),L})()},6839:(ke,J,p)=>{"use strict";p.d(J,{op:()=>At,$V:()=>be,Xd:()=>Nt});var t=p(7579),e=p(4968),f=p(3601),C=p(2722),a=p(4650),M=p(6895);function d(et){return getComputedStyle(et)}function R(et,Ae){for(var rt in Ae){var Qe=Ae[rt];"number"==typeof Qe&&(Qe+="px"),et.style[rt]=Qe}return et}function h(et){var Ae=document.createElement("div");return Ae.className=et,Ae}var I=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function E(et,Ae){if(!I)throw new Error("No element matching method supported");return I.call(et,Ae)}function L(et){et.remove?et.remove():et.parentNode&&et.parentNode.removeChild(et)}function T(et,Ae){return Array.prototype.filter.call(et.children,function(rt){return E(rt,Ae)})}var N_element_thumb=function(et){return"ps__thumb-"+et},N_element_rail=function(et){return"ps__rail-"+et},N_element_consuming="ps__child--consume",N_state_focus="ps--focus",N_state_clicking="ps--clicking",N_state_active=function(et){return"ps--active-"+et},N_state_scrolling=function(et){return"ps--scrolling-"+et},w={x:null,y:null};function G(et,Ae){var rt=et.element.classList,Qe=N_state_scrolling(Ae);rt.contains(Qe)?clearTimeout(w[Ae]):rt.add(Qe)}function K(et,Ae){w[Ae]=setTimeout(function(){return et.isAlive&&et.element.classList.remove(N_state_scrolling(Ae))},et.settings.scrollingThreshold)}var re=function(Ae){this.element=Ae,this.handlers={}},ie={isEmpty:{configurable:!0}};re.prototype.bind=function(Ae,rt){typeof this.handlers[Ae]>"u"&&(this.handlers[Ae]=[]),this.handlers[Ae].push(rt),this.element.addEventListener(Ae,rt,!1)},re.prototype.unbind=function(Ae,rt){var Qe=this;this.handlers[Ae]=this.handlers[Ae].filter(function(Ke){return!(!rt||Ke===rt)||(Qe.element.removeEventListener(Ae,Ke,!1),!1)})},re.prototype.unbindAll=function(){for(var Ae in this.handlers)this.unbind(Ae)},ie.isEmpty.get=function(){var et=this;return Object.keys(this.handlers).every(function(Ae){return 0===et.handlers[Ae].length})},Object.defineProperties(re.prototype,ie);var ce=function(){this.eventElements=[]};function ae(et){if("function"==typeof window.CustomEvent)return new CustomEvent(et);var Ae=document.createEvent("CustomEvent");return Ae.initCustomEvent(et,!1,!1,void 0),Ae}function ne(et,Ae,rt,Qe,Ke){var mt;if(void 0===Qe&&(Qe=!0),void 0===Ke&&(Ke=!1),"top"===Ae)mt=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==Ae)throw new Error("A proper axis should be provided");mt=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function le(et,Ae,rt,Qe,Ke){var mt=rt[0],$t=rt[1],Gt=rt[2],zt=rt[3],Et=rt[4],ht=rt[5];void 0===Qe&&(Qe=!0),void 0===Ke&&(Ke=!1);var at=et.element;et.reach[zt]=null,at[Gt]<1&&(et.reach[zt]="start"),at[Gt]>et[mt]-et[$t]-1&&(et.reach[zt]="end"),Ae&&(at.dispatchEvent(ae("ps-scroll-"+zt)),Ae<0?at.dispatchEvent(ae("ps-scroll-"+Et)):Ae>0&&at.dispatchEvent(ae("ps-scroll-"+ht)),Qe&&function Q(et,Ae){G(et,Ae),K(et,Ae)}(et,zt)),et.reach[zt]&&(Ae||Ke)&&at.dispatchEvent(ae("ps-"+zt+"-reach-"+et.reach[zt]))}(et,rt,mt,Qe,Ke)}function ee(et){return parseInt(et,10)||0}ce.prototype.eventElement=function(Ae){var rt=this.eventElements.filter(function(Qe){return Qe.element===Ae})[0];return rt||(rt=new re(Ae),this.eventElements.push(rt)),rt},ce.prototype.bind=function(Ae,rt,Qe){this.eventElement(Ae).bind(rt,Qe)},ce.prototype.unbind=function(Ae,rt,Qe){var Ke=this.eventElement(Ae);Ke.unbind(rt,Qe),Ke.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Ke),1)},ce.prototype.unbindAll=function(){this.eventElements.forEach(function(Ae){return Ae.unbindAll()}),this.eventElements=[]},ce.prototype.once=function(Ae,rt,Qe){var Ke=this.eventElement(Ae),mt=function($t){Ke.unbind(rt,mt),Qe($t)};Ke.bind(rt,mt)};var i={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 r(et){var Ae=et.element,rt=Math.floor(Ae.scrollTop),Qe=Ae.getBoundingClientRect();et.containerWidth=Math.round(Qe.width),et.containerHeight=Math.round(Qe.height),et.contentWidth=Ae.scrollWidth,et.contentHeight=Ae.scrollHeight,Ae.contains(et.scrollbarXRail)||(T(Ae,N_element_rail("x")).forEach(function(Ke){return L(Ke)}),Ae.appendChild(et.scrollbarXRail)),Ae.contains(et.scrollbarYRail)||(T(Ae,N_element_rail("y")).forEach(function(Ke){return L(Ke)}),Ae.appendChild(et.scrollbarYRail)),!et.settings.suppressScrollX&&et.containerWidth+et.settings.scrollXMarginOffset<et.contentWidth?(et.scrollbarXActive=!0,et.railXWidth=et.containerWidth-et.railXMarginWidth,et.railXRatio=et.containerWidth/et.railXWidth,et.scrollbarXWidth=u(et,ee(et.railXWidth*et.containerWidth/et.contentWidth)),et.scrollbarXLeft=ee((et.negativeScrollAdjustment+Ae.scrollLeft)*(et.railXWidth-et.scrollbarXWidth)/(et.contentWidth-et.containerWidth))):et.scrollbarXActive=!1,!et.settings.suppressScrollY&&et.containerHeight+et.settings.scrollYMarginOffset<et.contentHeight?(et.scrollbarYActive=!0,et.railYHeight=et.containerHeight-et.railYMarginHeight,et.railYRatio=et.containerHeight/et.railYHeight,et.scrollbarYHeight=u(et,ee(et.railYHeight*et.containerHeight/et.contentHeight)),et.scrollbarYTop=ee(rt*(et.railYHeight-et.scrollbarYHeight)/(et.contentHeight-et.containerHeight))):et.scrollbarYActive=!1,et.scrollbarXLeft>=et.railXWidth-et.scrollbarXWidth&&(et.scrollbarXLeft=et.railXWidth-et.scrollbarXWidth),et.scrollbarYTop>=et.railYHeight-et.scrollbarYHeight&&(et.scrollbarYTop=et.railYHeight-et.scrollbarYHeight),function l(et,Ae){var rt={width:Ae.railXWidth},Qe=Math.floor(et.scrollTop);rt.left=Ae.isRtl?Ae.negativeScrollAdjustment+et.scrollLeft+Ae.containerWidth-Ae.contentWidth:et.scrollLeft,Ae.isScrollbarXUsingBottom?rt.bottom=Ae.scrollbarXBottom-Qe:rt.top=Ae.scrollbarXTop+Qe,R(Ae.scrollbarXRail,rt);var Ke={top:Qe,height:Ae.railYHeight};Ae.isScrollbarYUsingRight?Ke.right=Ae.isRtl?Ae.contentWidth-(Ae.negativeScrollAdjustment+et.scrollLeft)-Ae.scrollbarYRight-Ae.scrollbarYOuterWidth-9:Ae.scrollbarYRight-et.scrollLeft:Ke.left=Ae.isRtl?Ae.negativeScrollAdjustment+et.scrollLeft+2*Ae.containerWidth-Ae.contentWidth-Ae.scrollbarYLeft-Ae.scrollbarYOuterWidth:Ae.scrollbarYLeft+et.scrollLeft,R(Ae.scrollbarYRail,Ke),R(Ae.scrollbarX,{left:Ae.scrollbarXLeft,width:Ae.scrollbarXWidth-Ae.railBorderXWidth}),R(Ae.scrollbarY,{top:Ae.scrollbarYTop,height:Ae.scrollbarYHeight-Ae.railBorderYWidth})}(Ae,et),et.scrollbarXActive?Ae.classList.add(N_state_active("x")):(Ae.classList.remove(N_state_active("x")),et.scrollbarXWidth=0,et.scrollbarXLeft=0,Ae.scrollLeft=!0===et.isRtl?et.contentWidth:0),et.scrollbarYActive?Ae.classList.add(N_state_active("y")):(Ae.classList.remove(N_state_active("y")),et.scrollbarYHeight=0,et.scrollbarYTop=0,Ae.scrollTop=0)}function u(et,Ae){return et.settings.minScrollbarLength&&(Ae=Math.max(Ae,et.settings.minScrollbarLength)),et.settings.maxScrollbarLength&&(Ae=Math.min(Ae,et.settings.maxScrollbarLength)),Ae}function k(et,Ae){var rt=Ae[0],Qe=Ae[1],Ke=Ae[2],mt=Ae[3],$t=Ae[4],Gt=Ae[5],zt=Ae[6],Et=Ae[7],ht=Ae[8],at=et.element,ei=null,Ut=null,qt=null;function Pi(Vi){Vi.touches&&Vi.touches[0]&&(Vi[Ke]=Vi.touches[0].pageY),at[zt]=ei+qt*(Vi[Ke]-Ut),G(et,Et),r(et),Vi.stopPropagation(),Vi.type.startsWith("touch")&&Vi.changedTouches.length>1&&Vi.preventDefault()}function Ii(){K(et,Et),et[ht].classList.remove(N_state_clicking),et.event.unbind(et.ownerDocument,"mousemove",Pi)}function Ei(Vi,Be){ei=at[zt],Be&&Vi.touches&&(Vi[Ke]=Vi.touches[0].pageY),Ut=Vi[Ke],qt=(et[Qe]-et[rt])/(et[mt]-et[Gt]),Be?et.event.bind(et.ownerDocument,"touchmove",Pi):(et.event.bind(et.ownerDocument,"mousemove",Pi),et.event.once(et.ownerDocument,"mouseup",Ii),Vi.preventDefault()),et[ht].classList.add(N_state_clicking),Vi.stopPropagation()}et.event.bind(et[$t],"mousedown",function(Vi){Ei(Vi)}),et.event.bind(et[$t],"touchstart",function(Vi){Ei(Vi,!0)})}var P={"click-rail":function y(et){et.event.bind(et.scrollbarY,"mousedown",function(rt){return rt.stopPropagation()}),et.event.bind(et.scrollbarYRail,"mousedown",function(rt){var Qe=rt.pageY-window.pageYOffset-et.scrollbarYRail.getBoundingClientRect().top;et.element.scrollTop+=(Qe>et.scrollbarYTop?1:-1)*et.containerHeight,r(et),rt.stopPropagation()}),et.event.bind(et.scrollbarX,"mousedown",function(rt){return rt.stopPropagation()}),et.event.bind(et.scrollbarXRail,"mousedown",function(rt){var Qe=rt.pageX-window.pageXOffset-et.scrollbarXRail.getBoundingClientRect().left;et.element.scrollLeft+=(Qe>et.scrollbarXLeft?1:-1)*et.containerWidth,r(et),rt.stopPropagation()})},"drag-thumb":function D(et){k(et,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),k(et,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function b(et){var Ae=et.element;et.event.bind(et.ownerDocument,"keydown",function(mt){if(!(mt.isDefaultPrevented&&mt.isDefaultPrevented()||mt.defaultPrevented)&&(E(Ae,":hover")||E(et.scrollbarX,":focus")||E(et.scrollbarY,":focus"))){var $t=document.activeElement?document.activeElement:et.ownerDocument.activeElement;if($t){if("IFRAME"===$t.tagName)$t=$t.contentDocument.activeElement;else for(;$t.shadowRoot;)$t=$t.shadowRoot.activeElement;if(function pe(et){return E(et,"input,[contenteditable]")||E(et,"select,[contenteditable]")||E(et,"textarea,[contenteditable]")||E(et,"button,[contenteditable]")}($t))return}var Gt=0,zt=0;switch(mt.which){case 37:Gt=mt.metaKey?-et.contentWidth:mt.altKey?-et.containerWidth:-30;break;case 38:zt=mt.metaKey?et.contentHeight:mt.altKey?et.containerHeight:30;break;case 39:Gt=mt.metaKey?et.contentWidth:mt.altKey?et.containerWidth:30;break;case 40:zt=mt.metaKey?-et.contentHeight:mt.altKey?-et.containerHeight:-30;break;case 32:zt=mt.shiftKey?et.containerHeight:-et.containerHeight;break;case 33:zt=et.containerHeight;break;case 34:zt=-et.containerHeight;break;case 36:zt=et.contentHeight;break;case 35:zt=-et.contentHeight;break;default:return}et.settings.suppressScrollX&&0!==Gt||et.settings.suppressScrollY&&0!==zt||(Ae.scrollTop-=zt,Ae.scrollLeft+=Gt,r(et),function Ke(mt,$t){var Gt=Math.floor(Ae.scrollTop);if(0===mt){if(!et.scrollbarYActive)return!1;if(0===Gt&&$t>0||Gt>=et.contentHeight-et.containerHeight&&$t<0)return!et.settings.wheelPropagation}var zt=Ae.scrollLeft;if(0===$t){if(!et.scrollbarXActive)return!1;if(0===zt&&mt<0||zt>=et.contentWidth-et.containerWidth&&mt>0)return!et.settings.wheelPropagation}return!0}(Gt,zt)&&mt.preventDefault())}})},wheel:function n(et){var Ae=et.element;function mt($t){var Gt=function Qe($t){var Gt=$t.deltaX,zt=-1*$t.deltaY;return(typeof Gt>"u"||typeof zt>"u")&&(Gt=-1*$t.wheelDeltaX/6,zt=$t.wheelDeltaY/6),$t.deltaMode&&1===$t.deltaMode&&(Gt*=10,zt*=10),Gt!=Gt&&zt!=zt&&(Gt=0,zt=$t.wheelDelta),$t.shiftKey?[-zt,-Gt]:[Gt,zt]}($t),zt=Gt[0],Et=Gt[1];if(!function Ke($t,Gt,zt){if(!i.isWebKit&&Ae.querySelector("select:focus"))return!0;if(!Ae.contains($t))return!1;for(var Et=$t;Et&&Et!==Ae;){if(Et.classList.contains(N_element_consuming))return!0;var ht=d(Et);if(zt&&ht.overflowY.match(/(scroll|auto)/)){var at=Et.scrollHeight-Et.clientHeight;if(at>0&&(Et.scrollTop>0&&zt<0||Et.scrollTop<at&&zt>0))return!0}if(Gt&&ht.overflowX.match(/(scroll|auto)/)){var ei=Et.scrollWidth-Et.clientWidth;if(ei>0&&(Et.scrollLeft>0&&Gt<0||Et.scrollLeft<ei&&Gt>0))return!0}Et=Et.parentNode}return!1}($t.target,zt,Et)){var ht=!1;et.settings.useBothWheelAxes?et.scrollbarYActive&&!et.scrollbarXActive?(Et?Ae.scrollTop-=Et*et.settings.wheelSpeed:Ae.scrollTop+=zt*et.settings.wheelSpeed,ht=!0):et.scrollbarXActive&&!et.scrollbarYActive&&(zt?Ae.scrollLeft+=zt*et.settings.wheelSpeed:Ae.scrollLeft-=Et*et.settings.wheelSpeed,ht=!0):(Ae.scrollTop-=Et*et.settings.wheelSpeed,Ae.scrollLeft+=zt*et.settings.wheelSpeed),r(et),ht=ht||function rt($t,Gt){var zt=Math.floor(Ae.scrollTop),Et=0===Ae.scrollTop,ht=zt+Ae.offsetHeight===Ae.scrollHeight,at=0===Ae.scrollLeft,ei=Ae.scrollLeft+Ae.offsetWidth===Ae.scrollWidth;return!(Math.abs(Gt)>Math.abs($t)?Et||ht:at||ei)||!et.settings.wheelPropagation}(zt,Et),ht&&!$t.ctrlKey&&($t.stopPropagation(),$t.preventDefault())}}typeof window.onwheel<"u"?et.event.bind(Ae,"wheel",mt):typeof window.onmousewheel<"u"&&et.event.bind(Ae,"mousewheel",mt)},touch:function _(et){if(i.supportsTouch||i.supportsIePointer){var Ae=et.element,Ke={},mt=0,$t={},Gt=null;i.supportsTouch?(et.event.bind(Ae,"touchstart",ht),et.event.bind(Ae,"touchmove",ei),et.event.bind(Ae,"touchend",Ut)):i.supportsIePointer&&(window.PointerEvent?(et.event.bind(Ae,"pointerdown",ht),et.event.bind(Ae,"pointermove",ei),et.event.bind(Ae,"pointerup",Ut)):window.MSPointerEvent&&(et.event.bind(Ae,"MSPointerDown",ht),et.event.bind(Ae,"MSPointerMove",ei),et.event.bind(Ae,"MSPointerUp",Ut)))}function Qe(qt,Pi){Ae.scrollTop-=Pi,Ae.scrollLeft-=qt,r(et)}function zt(qt){return qt.targetTouches?qt.targetTouches[0]:qt}function Et(qt){return!(qt.pointerType&&"pen"===qt.pointerType&&0===qt.buttons||!(qt.targetTouches&&1===qt.targetTouches.length||qt.pointerType&&"mouse"!==qt.pointerType&&qt.pointerType!==qt.MSPOINTER_TYPE_MOUSE))}function ht(qt){if(Et(qt)){var Pi=zt(qt);Ke.pageX=Pi.pageX,Ke.pageY=Pi.pageY,mt=(new Date).getTime(),null!==Gt&&clearInterval(Gt)}}function ei(qt){if(Et(qt)){var Pi=zt(qt),Ii={pageX:Pi.pageX,pageY:Pi.pageY},Ei=Ii.pageX-Ke.pageX,Vi=Ii.pageY-Ke.pageY;if(function at(qt,Pi,Ii){if(!Ae.contains(qt))return!1;for(var Ei=qt;Ei&&Ei!==Ae;){if(Ei.classList.contains(N_element_consuming))return!0;var Vi=d(Ei);if(Ii&&Vi.overflowY.match(/(scroll|auto)/)){var Be=Ei.scrollHeight-Ei.clientHeight;if(Be>0&&(Ei.scrollTop>0&&Ii<0||Ei.scrollTop<Be&&Ii>0))return!0}if(Pi&&Vi.overflowX.match(/(scroll|auto)/)){var kt=Ei.scrollWidth-Ei.clientWidth;if(kt>0&&(Ei.scrollLeft>0&&Pi<0||Ei.scrollLeft<kt&&Pi>0))return!0}Ei=Ei.parentNode}return!1}(qt.target,Ei,Vi))return;Qe(Ei,Vi),Ke=Ii;var Be=(new Date).getTime(),kt=Be-mt;kt>0&&($t.x=Ei/kt,$t.y=Vi/kt,mt=Be),function rt(qt,Pi){var Ii=Math.floor(Ae.scrollTop),Ei=Ae.scrollLeft,Vi=Math.abs(qt),Be=Math.abs(Pi);if(Be>Vi){if(Pi<0&&Ii===et.contentHeight-et.containerHeight||Pi>0&&0===Ii)return 0===window.scrollY&&Pi>0&&i.isChrome}else if(Vi>Be&&(qt<0&&Ei===et.contentWidth-et.containerWidth||qt>0&&0===Ei))return!0;return!0}(Ei,Vi)&&qt.preventDefault()}}function Ut(){et.settings.swipeEasing&&(clearInterval(Gt),Gt=setInterval(function(){et.isInitialized?clearInterval(Gt):$t.x||$t.y?Math.abs($t.x)<.01&&Math.abs($t.y)<.01?clearInterval(Gt):et.element?(Qe(30*$t.x,30*$t.y),$t.x*=.8,$t.y*=.8):clearInterval(Gt):clearInterval(Gt)},10))}}},U=function(Ae,rt){var Qe=this;if(void 0===rt&&(rt={}),"string"==typeof Ae&&(Ae=document.querySelector(Ae)),!Ae||!Ae.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Ke in this.element=Ae,Ae.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},rt)this.settings[Ke]=rt[Ke];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var ht,Et,mt=function(){return Ae.classList.add(N_state_focus)},$t=function(){return Ae.classList.remove(N_state_focus)};this.isRtl="rtl"===d(Ae).direction,!0===this.isRtl&&Ae.classList.add("ps__rtl"),this.isNegativeScroll=(Et=Ae.scrollLeft,Ae.scrollLeft=-1,ht=Ae.scrollLeft<0,Ae.scrollLeft=Et,ht),this.negativeScrollAdjustment=this.isNegativeScroll?Ae.scrollWidth-Ae.clientWidth:0,this.event=new ce,this.ownerDocument=Ae.ownerDocument||document,this.scrollbarXRail=h(N_element_rail("x")),Ae.appendChild(this.scrollbarXRail),this.scrollbarX=h(N_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",mt),this.event.bind(this.scrollbarX,"blur",$t),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var Gt=d(this.scrollbarXRail);this.scrollbarXBottom=parseInt(Gt.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=ee(Gt.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=ee(Gt.borderLeftWidth)+ee(Gt.borderRightWidth),R(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ee(Gt.marginLeft)+ee(Gt.marginRight),R(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=h(N_element_rail("y")),Ae.appendChild(this.scrollbarYRail),this.scrollbarY=h(N_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",mt),this.event.bind(this.scrollbarY,"blur",$t),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var zt=d(this.scrollbarYRail);this.scrollbarYRight=parseInt(zt.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=ee(zt.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function S(et){var Ae=d(et);return ee(Ae.width)+ee(Ae.paddingLeft)+ee(Ae.paddingRight)+ee(Ae.borderLeftWidth)+ee(Ae.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=ee(zt.borderTopWidth)+ee(zt.borderBottomWidth),R(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ee(zt.marginTop)+ee(zt.marginBottom),R(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:Ae.scrollLeft<=0?"start":Ae.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:Ae.scrollTop<=0?"start":Ae.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Et){return P[Et](Qe)}),this.lastScrollTop=Math.floor(Ae.scrollTop),this.lastScrollLeft=Ae.scrollLeft,this.event.bind(this.element,"scroll",function(Et){return Qe.onScroll(Et)}),r(this)};U.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,R(this.scrollbarXRail,{display:"block"}),R(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=ee(d(this.scrollbarXRail).marginLeft)+ee(d(this.scrollbarXRail).marginRight),this.railYMarginHeight=ee(d(this.scrollbarYRail).marginTop)+ee(d(this.scrollbarYRail).marginBottom),R(this.scrollbarXRail,{display:"none"}),R(this.scrollbarYRail,{display:"none"}),r(this),ne(this,"top",0,!1,!0),ne(this,"left",0,!1,!0),R(this.scrollbarXRail,{display:""}),R(this.scrollbarYRail,{display:""}))},U.prototype.onScroll=function(Ae){!this.isAlive||(r(this),ne(this,"top",this.element.scrollTop-this.lastScrollTop),ne(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},U.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),L(this.scrollbarX),L(this.scrollbarY),L(this.scrollbarXRail),L(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},U.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Ae){return!Ae.match(/^ps([-_].+|)$/)}).join(" ")};const me=U;var nt=function(){if(typeof Map<"u")return Map;function et(Ae,rt){var Qe=-1;return Ae.some(function(Ke,mt){return Ke[0]===rt&&(Qe=mt,!0)}),Qe}return function(){function Ae(){this.__entries__=[]}return Object.defineProperty(Ae.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Ae.prototype.get=function(rt){var Qe=et(this.__entries__,rt),Ke=this.__entries__[Qe];return Ke&&Ke[1]},Ae.prototype.set=function(rt,Qe){var Ke=et(this.__entries__,rt);~Ke?this.__entries__[Ke][1]=Qe:this.__entries__.push([rt,Qe])},Ae.prototype.delete=function(rt){var Qe=this.__entries__,Ke=et(Qe,rt);~Ke&&Qe.splice(Ke,1)},Ae.prototype.has=function(rt){return!!~et(this.__entries__,rt)},Ae.prototype.clear=function(){this.__entries__.splice(0)},Ae.prototype.forEach=function(rt,Qe){void 0===Qe&&(Qe=null);for(var Ke=0,mt=this.__entries__;Ke<mt.length;Ke++){var $t=mt[Ke];rt.call(Qe,$t[1],$t[0])}},Ae}()}(),Pe=typeof window<"u"&&typeof document<"u"&&window.document===document,Oe=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),De="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Oe):function(et){return setTimeout(function(){return et(Date.now())},1e3/60)},$=["top","right","bottom","left","width","height","size","weight"],Ge=typeof MutationObserver<"u",ut=function(){function et(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function ve(et,Ae){var rt=!1,Qe=!1,Ke=0;function mt(){rt&&(rt=!1,et()),Qe&&Gt()}function $t(){De(mt)}function Gt(){var zt=Date.now();if(rt){if(zt-Ke<2)return;Qe=!0}else rt=!0,Qe=!1,setTimeout($t,Ae);Ke=zt}return Gt}(this.refresh.bind(this),20)}return et.prototype.addObserver=function(Ae){~this.observers_.indexOf(Ae)||this.observers_.push(Ae),this.connected_||this.connect_()},et.prototype.removeObserver=function(Ae){var rt=this.observers_,Qe=rt.indexOf(Ae);~Qe&&rt.splice(Qe,1),!rt.length&&this.connected_&&this.disconnect_()},et.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},et.prototype.updateObservers_=function(){var Ae=this.observers_.filter(function(rt){return rt.gatherActive(),rt.hasActive()});return Ae.forEach(function(rt){return rt.broadcastActive()}),Ae.length>0},et.prototype.connect_=function(){!Pe||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ge?(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)},et.prototype.disconnect_=function(){!Pe||!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)},et.prototype.onTransitionEnd_=function(Ae){var rt=Ae.propertyName,Qe=void 0===rt?"":rt;$.some(function(mt){return!!~Qe.indexOf(mt)})&&this.refresh()},et.getInstance=function(){return this.instance_||(this.instance_=new et),this.instance_},et.instance_=null,et}(),Ee=function(et,Ae){for(var rt=0,Qe=Object.keys(Ae);rt<Qe.length;rt++){var Ke=Qe[rt];Object.defineProperty(et,Ke,{value:Ae[Ke],enumerable:!1,writable:!1,configurable:!0})}return et},ye=function(et){return et&&et.ownerDocument&&et.ownerDocument.defaultView||Oe},he=gt(0,0,0,0);function de(et){return parseFloat(et)||0}function we(et){for(var Ae=[],rt=1;rt<arguments.length;rt++)Ae[rt-1]=arguments[rt];return Ae.reduce(function(Qe,Ke){return Qe+de(et["border-"+Ke+"-width"])},0)}var Se=typeof SVGGraphicsElement<"u"?function(et){return et instanceof ye(et).SVGGraphicsElement}:function(et){return et instanceof ye(et).SVGElement&&"function"==typeof et.getBBox};function Ye(et){return Pe?Se(et)?function j(et){var Ae=et.getBBox();return gt(0,0,Ae.width,Ae.height)}(et):function Ce(et){var Ae=et.clientWidth,rt=et.clientHeight;if(!Ae&&!rt)return he;var Qe=ye(et).getComputedStyle(et),Ke=function Y(et){for(var rt={},Qe=0,Ke=["top","right","bottom","left"];Qe<Ke.length;Qe++){var mt=Ke[Qe];rt[mt]=de(et["padding-"+mt])}return rt}(Qe),mt=Ke.left+Ke.right,$t=Ke.top+Ke.bottom,Gt=de(Qe.width),zt=de(Qe.height);if("border-box"===Qe.boxSizing&&(Math.round(Gt+mt)!==Ae&&(Gt-=we(Qe,"left","right")+mt),Math.round(zt+$t)!==rt&&(zt-=we(Qe,"top","bottom")+$t)),!function X(et){return et===ye(et).document.documentElement}(et)){var Et=Math.round(Gt+mt)-Ae,ht=Math.round(zt+$t)-rt;1!==Math.abs(Et)&&(Gt-=Et),1!==Math.abs(ht)&&(zt-=ht)}return gt(Ke.left,Ke.top,Gt,zt)}(et):he}function gt(et,Ae,rt,Qe){return{x:et,y:Ae,width:rt,height:Qe}}var Wt=function(){function et(Ae){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=gt(0,0,0,0),this.target=Ae}return et.prototype.isActive=function(){var Ae=Ye(this.target);return this.contentRect_=Ae,Ae.width!==this.broadcastWidth||Ae.height!==this.broadcastHeight},et.prototype.broadcastRect=function(){var Ae=this.contentRect_;return this.broadcastWidth=Ae.width,this.broadcastHeight=Ae.height,Ae},et}(),Rt=function et(Ae,rt){var Qe=function Le(et){var Ae=et.x,rt=et.y,Qe=et.width,Ke=et.height,mt=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,$t=Object.create(mt.prototype);return Ee($t,{x:Ae,y:rt,width:Qe,height:Ke,top:rt,right:Ae+Qe,bottom:Ke+rt,left:Ae}),$t}(rt);Ee(this,{target:Ae,contentRect:Qe})},jt=function(){function et(Ae,rt,Qe){if(this.activeObservations_=[],this.observations_=new nt,"function"!=typeof Ae)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=Ae,this.controller_=rt,this.callbackCtx_=Qe}return et.prototype.observe=function(Ae){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(Ae instanceof ye(Ae).Element))throw new TypeError('parameter 1 is not of type "Element".');var rt=this.observations_;rt.has(Ae)||(rt.set(Ae,new Wt(Ae)),this.controller_.addObserver(this),this.controller_.refresh())}},et.prototype.unobserve=function(Ae){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(Ae instanceof ye(Ae).Element))throw new TypeError('parameter 1 is not of type "Element".');var rt=this.observations_;!rt.has(Ae)||(rt.delete(Ae),rt.size||this.controller_.removeObserver(this))}},et.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},et.prototype.gatherActive=function(){var Ae=this;this.clearActive(),this.observations_.forEach(function(rt){rt.isActive()&&Ae.activeObservations_.push(rt)})},et.prototype.broadcastActive=function(){if(this.hasActive()){var Ae=this.callbackCtx_,rt=this.activeObservations_.map(function(Qe){return new Rt(Qe.target,Qe.broadcastRect())});this.callback_.call(Ae,rt,Ae),this.clearActive()}},et.prototype.clearActive=function(){this.activeObservations_.splice(0)},et.prototype.hasActive=function(){return this.activeObservations_.length>0},et}(),hi=typeof WeakMap<"u"?new WeakMap:new nt,yt=function et(Ae){if(!(this instanceof et))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var rt=ut.getInstance(),Qe=new jt(Ae,rt,this);hi.set(this,Qe)};["observe","unobserve","disconnect"].forEach(function(et){yt.prototype[et]=function(){var Ae;return(Ae=hi.get(this))[et].apply(Ae,arguments)}});const pt=typeof Oe.ResizeObserver<"u"?Oe.ResizeObserver:yt,At=new a.OlP("PERFECT_SCROLLBAR_CONFIG");class dt{constructor(Ae,rt,Qe,Ke){this.x=Ae,this.y=rt,this.w=Qe,this.h=Ke}}class ze{constructor(Ae,rt){this.x=Ae,this.y=rt}}const Ve=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class Fe{constructor(Ae={}){this.assign(Ae)}assign(Ae={}){for(const rt in Ae)this[rt]=Ae[rt]}}let be=(()=>{class et{constructor(rt,Qe,Ke,mt,$t){this.zone=rt,this.differs=Qe,this.elementRef=Ke,this.platformId=mt,this.defaults=$t,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new t.x,this.disabled=!1,this.psScrollY=new a.vpe,this.psScrollX=new a.vpe,this.psScrollUp=new a.vpe,this.psScrollDown=new a.vpe,this.psScrollLeft=new a.vpe,this.psScrollRight=new a.vpe,this.psYReachEnd=new a.vpe,this.psYReachStart=new a.vpe,this.psXReachEnd=new a.vpe,this.psXReachStart=new a.vpe}ngOnInit(){if(!this.disabled&&(0,M.NF)(this.platformId)){const rt=new Fe(this.defaults);rt.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new me(this.elementRef.nativeElement,rt)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new pt(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{Ve.forEach(Qe=>{const Ke=Qe.replace(/([A-Z])/g,mt=>`-${mt.toLowerCase()}`);(0,e.R)(this.elementRef.nativeElement,Ke).pipe((0,f.e)(20),(0,C.R)(this.ngDestroy)).subscribe(mt=>{this[Qe].emit(mt)})})})}}ngOnDestroy(){(0,M.NF)(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,M.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(rt){rt.disabled&&!rt.disabled.isFirstChange()&&(0,M.NF)(this.platformId)&&rt.disabled.currentValue!==rt.disabled.previousValue&&(!0===rt.disabled.currentValue?this.ngOnDestroy():!1===rt.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){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(rt="scroll"){return new dt(this.elementRef.nativeElement[rt+"Left"],this.elementRef.nativeElement[rt+"Top"],this.elementRef.nativeElement[rt+"Width"],this.elementRef.nativeElement[rt+"Height"])}position(rt=!1){return!rt&&this.instance?new ze(this.instance.reach.x||0,this.instance.reach.y||0):new ze(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(rt="any"){const Qe=this.elementRef.nativeElement;return"any"===rt?Qe.classList.contains("ps--active-x")||Qe.classList.contains("ps--active-y"):"both"===rt?Qe.classList.contains("ps--active-x")&&Qe.classList.contains("ps--active-y"):Qe.classList.contains("ps--active-"+rt)}scrollTo(rt,Qe,Ke){this.disabled||(null==Qe&&null==Ke?this.animateScrolling("scrollTop",rt,Ke):(null!=rt&&this.animateScrolling("scrollLeft",rt,Ke),null!=Qe&&this.animateScrolling("scrollTop",Qe,Ke)))}scrollToX(rt,Qe){this.animateScrolling("scrollLeft",rt,Qe)}scrollToY(rt,Qe){this.animateScrolling("scrollTop",rt,Qe)}scrollToTop(rt,Qe){this.animateScrolling("scrollTop",rt||0,Qe)}scrollToLeft(rt,Qe){this.animateScrolling("scrollLeft",rt||0,Qe)}scrollToRight(rt,Qe){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(rt||0),Qe)}scrollToBottom(rt,Qe){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(rt||0),Qe)}scrollToElement(rt,Qe,Ke){if("string"==typeof rt&&(rt=this.elementRef.nativeElement.querySelector(rt)),rt){const mt=rt.getBoundingClientRect(),$t=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",mt.left-$t.left+this.elementRef.nativeElement.scrollLeft+(Qe||0),Ke),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",mt.top-$t.top+this.elementRef.nativeElement.scrollTop+(Qe||0),Ke)}}animateScrolling(rt,Qe,Ke){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),!Ke||typeof window>"u")this.elementRef.nativeElement[rt]=Qe;else if(Qe!==this.elementRef.nativeElement[rt]){let mt=0,$t=0,Gt=performance.now(),zt=this.elementRef.nativeElement[rt];const Et=(zt-Qe)/2,ht=at=>{$t+=Math.PI/(Ke/(at-Gt)),mt=Math.round(Qe+Et+Et*Math.cos($t)),this.elementRef.nativeElement[rt]===zt&&($t>=Math.PI?this.animateScrolling(rt,Qe,0):(this.elementRef.nativeElement[rt]=mt,zt=this.elementRef.nativeElement[rt],Gt=at,this.animation=window.requestAnimationFrame(ht)))};window.requestAnimationFrame(ht)}}}return et.\u0275fac=function(rt){return new(rt||et)(a.Y36(a.R0b),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Lbi),a.Y36(At,8))},et.\u0275dir=a.lG2({type:et,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[a.TTD]}),et})(),Nt=(()=>{class et{}return et.\u0275fac=function(rt){return new(rt||et)},et.\u0275mod=a.oAB({type:et}),et.\u0275inj=a.cJS({imports:[[M.ez],M.ez]}),et})()},4946: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"}}')},5207: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","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},1308: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"}')},9799: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"}}')},8597:ke=>{"use strict";ke.exports={i8:"6.5.4"}},2562: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=5415)}]);